Bringing a folder tab into focus

Started by Andy J., May 28, 2008, 12:56:08 PM

Previous topic - Next topic

Andy J.

Hi,

Is there a command to bring a folder tab into focus?  I am using a number of folders in a "DIALOG / END DIALOG" block.  I am unable to find anything in the documentation.

Many thanks in advance

Reuben B.

Quote from: Jones Andrew on May 28, 2008, 12:56:08 PM
Hi,

Is there a command to bring a folder tab into focus?  I am using a number of folders in a "DIALOG / END DIALOG" block.  I am unable to find anything in the documentation.

Many thanks in advance

Does this help?

http://code.google.com/p/sourcefourjs/wiki/FolderPageManipulation
Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero


Andy J.

Many thanks, I will give these a try! 

Laurent G.


Reuben B.

Laurent,

IMHO the next method down in the documentation ensureElementVisible() is the better method to use for the folder page problem https://4js.com/online_documentation/fjs-fgl-2.30.01-manual-html/User/ClassForm.html#ensureElementVisible

In your form, name the page elements e.g.

PAGE pageonename (TEXT="Page One")

... and then use the new ensureElementVisible() method passing the name you have assigned to the page e.g.

DEFINE f ui.Form

CALL f.ensureElementVisible("pageonename")

... that way the code is referring to the folder page you want on top, not an arbitrary field on the page as with ensureFieldVisible.

Reuben
Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero

Laurent G.

Thanks for the precision Reuben,

I thought it was what I was pointing to. Cheers !

Laurent