Hi
I am trying to display menu items like this (several menus, not just one screen):
as buttons. if i change or reuse an autogui rule to recognize the menu items and display them as buttons and adjust the width, i get only the "option number", but i am missing the caption and i guess ill need something particular in the onclick of the button to send the option to the command line:
so, i need something like "how to access the Right to the Target" in the autogui rule (for the captions in the button), and the "target" for the onclick javascript.... to get something like this:
any idea?
thank you
How can i display menu items as buttons?
Moderator: jeanmichel
Re: How can i display menu items as buttons?
Right now, If, I assume, that I have the screen identified, and an input field in the screen, identified as txtOpc, I can use this javascript for the onclick and that makes the buttons be recognized and automatically work (I needed the .replace to remove the dot after the number).... but now i just need to find how to get the value of "right of the target" or the caption of the menu item, to be used as the caption in the push button...
but the screen currently looks like this:
and would be nice to have the option to identify a field in the screen the same way, using target and right of ===> for example.
but the screen currently looks like this:
and would be nice to have the option to identify a field in the screen the same way, using target and right of ===> for example.
-
- Posts: 1
- Joined: 20 May 2019, 19:38
Re: How can i display menu items as buttons?
Hi
This feature for autogui plus is not yet available in the current(aXes4.1.1) version release. It is only available in the next version release of aXes as we have added new api function to the field objects to get nextfield and previous field.
For aXes4.1.1 there is an options replaceNullWithSpace=1 in aXesTS.conf this will make the
menu items field recognized as single field like "1. User tasks" instead of having 2 field "1." and "User tasks".
But there is side effects if you activate this feature, like your existing screen customization may not be recognized due to the changes on the field behaviour as some field may became longer with leading spaces.
I recommended that when you enable this feature work with a new project or make a backup of your existing project.
You also need to apply the latest patch for aXes4.1.1. please contact support.
hope this helps.
This feature for autogui plus is not yet available in the current(aXes4.1.1) version release. It is only available in the next version release of aXes as we have added new api function to the field objects to get nextfield and previous field.
For aXes4.1.1 there is an options replaceNullWithSpace=1 in aXesTS.conf this will make the
menu items field recognized as single field like "1. User tasks" instead of having 2 field "1." and "User tasks".
But there is side effects if you activate this feature, like your existing screen customization may not be recognized due to the changes on the field behaviour as some field may became longer with leading spaces.
I recommended that when you enable this feature work with a new project or make a backup of your existing project.
You also need to apply the latest patch for aXes4.1.1. please contact support.
hope this helps.
Re: How can i display menu items as buttons?
Thank you, ill take that the best option is to wait to the next version release to have that new api function.Rodel.Aniban wrote: ↑21 May 2019, 14:10This feature for autogui plus is not yet available in the current(aXes4.1.1) version release. It is only available in the next version release of aXes as we have added new api function to the field objects to get nextfield and previous field.