Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: Gary C. on February 21, 2010, 04:46:24 pm



Title: How to determine current folder page
Post by: Gary C. on February 21, 2010, 04:46:24 pm
Hi

Is it possible to find out which page (or tab) of a folder is that which is current. I have read the examples where the hidden attribute is used but this literally does make the tab disappear and moving from one tab to another does not affect this value.

Is there a "iscurrent" or similar attribute?

Thanks

Gary


Title: Re: How to determine current folder page
Post by: . on February 21, 2010, 08:24:44 pm
Actually there is no attribute for that. Our folder api is very weak and we've postponed improvement for a long time :(.

There is one way to know which item is on top, not as simple as it should be but at least this works:
- set an action on each page
- in your 4GL code add ON ACTION pageX LET currentPage = "pageX"
Front-ends will trigger the given action when the user clicks on a page.
you can also mix BEFORE field xx where xx is the first field on the page.

Not straightforward, but should mostly do the job.


Title: Re: How to determine current folder page
Post by: Gary C. on February 21, 2010, 09:07:10 pm
Hi

Thanks for the fast response. I had implemented a solution along the lines you outlined but wondered if there was a more "elegant" solution.

No matter - it does work and I am able to achieve exactly what I want.