Tools
Sign in
Login
Forum
How to create multiple tabs in screen?
Forum
>
Ask Anything
>
How to create multiple tabs in screen?
n/A
posted
on April 9, 2014
at 12:41 PM
n/A
posted
on April 9, 2014
at 12:41 PM
How to create multiple tabs in screen?
I have seen all the details mentioned in tutorial but was not able to create screen with muitiple tab.
Also was not able to display the content in those tab.
Please let me knoe the solution to go ahead.
Emilie Boillat
replied
on April 9, 2014
at 1:51 PM
Emilie Boillat
replied
on April 9, 2014
at 1:51 PM
Hi,
Is this the document you are referring to:
Screen Component: Tab Structure
?
Are you using the "Tab Box" screen component? Which version of Appway are you using?
Emilie
n/A
replied
on April 9, 2014
at 3:44 PM
n/A
replied
on April 9, 2014
at 3:44 PM
I have refereed to this link :
https://developer.appway.com/screen/ViewDocument/bookId/1d165408-5afb-4a8a-a9cc-dfccdbe0e05e
Yes I am using Tab Box screen component.
I am using standalone 5.3.5 version of appway.
Simon Umbricht
replied
on April 9, 2014
at 5:29 PM
Simon Umbricht
replied
on April 9, 2014
at 5:29 PM
Hi Piyush,
Could you please provide a couple of screenshots from the screen editor so that I can see how you configured the components? You can upload images through the tree-like icon above the reply field.
Thanks,
Simon
n/A
replied
on April 11, 2014
at 7:57 AM
n/A
replied
on April 11, 2014
at 7:57 AM
I have uploaded my screen view for tab box. Please let me know if you need more info.
Simon Umbricht
replied
on April 11, 2014
at 10:27 AM
Simon Umbricht
replied
on April 11, 2014
at 10:27 AM
Hi Piyush,
The way the tab boxes work is that you have one TabBox with multiple TabContents inside. Each TabContent represents one tab displayed to the user (unless you put TabContents inside of a loop, which would also be possible).
In order to make this work, you'll have to do the following:
- Create a TabBox with multiple TabContents inside
- give the TabBox a unique htmlId
- give each of the TabContents a unique Id
- create a String variable $selectedTab and put that as the "Selected Tab ID Expression" on the TabBox
In general you shouldn't need any actions on the TabBox or TabContent unless you want to create some more advanced functionality, so best remove the ones you already have.
How this all ties together: to determine the currently selected tab, the TabBox will evaluate the value of $selectedTab and compare it against the Ids of all TabContents. The first matching one will be the selected tab. When you click a tab title, $selectedTab will automatically be updated to the Id of that tab.
Let me know if it's still not working.
Regards,
Simon
n/A
replied
on April 12, 2014
at 7:46 AM
n/A
replied
on April 12, 2014
at 7:46 AM
Hi Simon,
I have followed the steps you have mentioned
I have created selectedTab as a string variable, given unique html id to each of the tab content under tab box.
And I am able to see the tab contents of first tab.
But the moment I click on another tab it gives me "Ajax updare area error:403 forbidden".
Also on server I got following error:
2014-04-12 11:07:00,746 WARN com.nm.security.AccessControlHandler - Access Token parameter not found: accessToken [ url=/admin/screens/jsp/preview.jsp, referer=http://localhost:8080/admin/screens/jsp/preview.jsp?id=HomeScreen&show_tabindex=false&show_spaces=false&adminMode=false&helpername=screenEditorHelper-HomeScreen-null-1397280311818-false&versionFilter=HeadFilter-permanent&forcereload=1397280986243&accessToken=FE7500DC ]
Could you please answer that how should I resolve the issue?
Simon Umbricht
replied
on April 15, 2014
at 11:51 AM
Simon Umbricht
replied
on April 15, 2014
at 11:51 AM
Hi Piyush,
The TabBox does not work in preview mode. The preview mode should be used only for visual checking whether the screen looks as expected or checking the contents of simple input fields, etc.
Please try running the TabBox integrated into a process; also make sure that the validation of your screen shows no errors.
Regards,
Simon
n/A
replied
on April 15, 2014
at 12:07 PM
n/A
replied
on April 15, 2014
at 12:07 PM
Thanks Simon.
Tabs are working fine now!
Thanks for your helpful suggestions.
Please
sign in
to add a reply
About this site
|
Terms of use
|
Privacy statement
|
Contact us
© 2025 Appway AG. All Rights Reserved.
I have seen all the details mentioned in tutorial but was not able to create screen with muitiple tab.
Also was not able to display the content in those tab.
Please let me knoe the solution to go ahead.