Page 1 of 1

aXes 4.2 - Subfile options Dropdown

Posted: 28 May 2020, 19:18
by Joerg Hamacher
Hi,

customer has selected "Dropdown" at the "Input Fields Options" section of the "Subfile Options" and complains that he has to push the Enter-Button additionally before the option becomes active.

How can it be done that they do not have to press the ENTER key after selecting a subfile option from dropdown?
What has to be changed that aXes simulates a SENDKEY("ENTER") action after such a selection?

Many thanks in advance,
Joerg

Re: aXes 4.2 - Subfile options Dropdown

Posted: 22 Jun 2020, 18:14
by Fairdinkum
Hi Joerg,

It's me again. How about the attached auto gui rule? It adds onclick event to <LI> tags which have a class "md-list-item" so that a script (SENDKEY("Enter") in this case) executes on clicking on those elements.

Code: Select all

/*
 * Add onClick event on <li class='md-list-item'>
 */
var elms = document.getElementsByTagName("LI");
for ( var i = 0; i < elms.length; i++ ){
    if (elms[i].className.indexOf("md-list-item") >= 0 ){
            elms[i].onclick = function(event) {SENDKEY("Enter");};
    }
}
The result will be something like the following video:
https://drive.google.com/file/d/1cnvatU ... sp=sharing

You might want to confirm that the condition <li class='md-list-item'> is appropreate.

HTH!

Best Regards,
Hidekazu Tanaka

Re: aXes 4.2 - Subfile options Dropdown

Posted: 26 Jun 2020, 21:25
by Joerg Hamacher
Hi Hidekazu,

I'm sorry but I do not get it working. I imported your rule but nothing happens. Do I have to insert the java script code anywhere? If yes, where?
And won't we get a conflict with the solution for "aXes 4.2 - Subfile Options Display Colour" where we decided to turn off the "Subfile Options"? Or does your Dropdown solution work without switching this option to "on"?

Best regards and enjoy your weekend,
Joerg

Re: aXes 4.2 - Subfile options Dropdown

Posted: 08 Jul 2020, 16:45
by Fairdinkum
Hi Joerg,
Sorry for the delay reply... Only one thing you have to do for testing is just importing the rule. No need editing extra scripts.
  • this rule "axautoguirules(subfileOptionsOnClick)" requres to turn Recognise subfile options on
  • the other one "axautoguirules(customSubfileOptions)" requres to turn Recognise subfile options off
hence these two won't conflict. And I also confirmed that both two don't confilct in house.
Which screen did you test on it? Could you try again on STRPDM screen and see how it goes please?
img_20200708_154021_001.png
img_20200708_154021_001.png (235.55 KiB) Viewed 7362 times

Best Regards,
Hidekazu Tanaka