How to access page heading text from progress tracker JSP?

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

lyw
Ebase User
Posts: 4
Joined: Fri Dec 14, 2007 10:36 am

How to access page heading text from progress tracker JSP?

#1

Postby lyw » Mon Dec 17, 2007 11:41 am

I use the default naming rule in Ebase, so my page names are "PAGE_1", "PAGE_2", "PAGE_3" etc for every form, in which case lots of the scripts like "goto PAGE_1" are reusable.

But in the progress tracker, the navigation texts are names of the pages, like "PAGE_1","PAGE_2", which look kind of ugly at the left hand side, and won't make sense to the user.

the jsp code to get the page name value is

//------------start-----

Object[] pages= form.getPages(showUnchainedPages);
for(...)
{
String pageName = (String) pages;
}

//-------------end----

Is there anyway to access the page header text value in the left hand side JSP, so the I can keep my default naming rules, and have a user-friendly progress tracker at the sometime?

Thanks
0 x

User avatar
Wai
Moderator
Moderator
Posts: 165
Joined: Wed Sep 12, 2007 9:04 am
Location: Sandy, UK
Contact:

#2

Postby Wai » Thu Dec 20, 2007 10:51 am

Unfortunately there is currently no option to get the page header text using the UFSFormInterface.

However, you can have a form field (e.g. PAGE_NAME) on every form where you set the page name in a before-page event script. You can then get the value of this form field in your JSP using getFieldValue(fieldName).

You can also then just substitute this field into the page header text as well.

Hope that helps.
Last edited by Wai on Thu Dec 20, 2007 12:41 pm, edited 1 time in total.
0 x

lyw
Ebase User
Posts: 4
Joined: Fri Dec 14, 2007 10:36 am

Thank you!

#3

Postby lyw » Thu Dec 20, 2007 12:04 pm

That Works!!Excellent way round to solve this. Thanks a lot!
0 x


Who is online

Users browsing this forum: No registered users and 9 guests