On the MA64.1 form I added a button to the Detail lines object. When the form is first displayed the added button is displayed on every Detail line row. I want to hide the button on each row until the FORM_OnAfterTransaction function is called where I then only want to unhide the button if the row has data.
Anyone have an idea how to accomplish this?
If you are using Lawson 10 you may need to do something like this:
for(var i = 0; i < 12; i++) { // Change this to the number of lines you have. my_button = lawForm.getFormElement("push1",i); // Get a reference to the image button my_button.style.visibility = 'hidden'; // Hide the button. } Then to show the button use my_button.style.visibility = 'visible'; // Show the button.