Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: How to determine current folder page  (Read 6750 times)
Gary C.
Posts: 109


« 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
.
Four Js
Posts: 115


« Reply #1 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.
Gary C.
Posts: 109


« Reply #2 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.
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines