Hiding DELETE button from standard lawson form

 10 Replies
 0 Subscribed to this topic
 17 Subscribed to this forum
Sort:
Author
Messages
Saurabh
Veteran Member Send Private Message
Posts: 94
Veteran Member
Hi All We are on LSF9.0.0.4, Aps 8.1 MSP5 on Win 2003 server. Trying to hide the DELETE option from the PO15 main screen (however it needs to be availaible from the Dropdown with the INQUIRE tab)-hence cannot use security to take away access to the DELETE button. I have access to design studio but not able to find the PO15 standard form? Please advise regards Saurabh
wilcoxmad
Veteran Member Send Private Message
Posts: 87
Veteran Member
Go into the source tab in design stodio for po15. Delete the line that refrences the "Delete" button. Save ands preview.
Saurabh
Veteran Member Send Private Message
Posts: 94
Veteran Member
Thats my first issue. I am unable to find the PO15 form when i go to design studio and click on Existing forms can you advise how i can get to that standard form thanks Saurabh
wilcoxmad
Veteran Member Send Private Message
Posts: 87
Veteran Member
In DS, select File then Open. Click UI designer then press ok. Select your product line (data area) then enter po15 in the form box and click find. Click on PO15.1 and click open.
Saurabh
Veteran Member Send Private Message
Posts: 94
Veteran Member
I had tried that before but the only forms i could see were the custom forms and some of the other standard farms which we have customised before . Not able to see any of the standard forms (e.g PO15)
wilcoxmad
Veteran Member Send Private Message
Posts: 87
Veteran Member
I sent you a message. See this first. https://www.lawsonguru.co...ft/7335/Default.aspx
Saurabh
Veteran Member Send Private Message
Posts: 94
Veteran Member
Got it. I had to click on “New” in the Design Studio . I was clicking on Open, had thought NEW was to design a FORM from scratch
Saurabh
Veteran Member Send Private Message
Posts: 94
Veteran Member
I have now run into the issue wherein if i Take Out the "Delete" Action from the form then its taken out of totally. I need some way of just diabling the Delete from the Main Toolbar (but still availaible under the "Inquire" DropDown) or When a user selects the "DELETE" action, for a message box to come up asking for confirmation and only if they say "Yes" does the Delete action occurs Thanks Saurabh
Attachments
Randall
Veteran Member Send Private Message
Posts: 44
Veteran Member
function FORM_OnBeforeTransaction(fc) { if (fc == "D") { var deleteConfirm = confirm(""); if (!deleteConfirm) { return; } } return true; }
Randall
Veteran Member Send Private Message
Posts: 44
Veteran Member
Also, by removing the function code in Design Studio will, as you noticed, remove both the button and the action from the drop down. The only real way to accommodate that specific request is to modify the files that parse out the XML that displays forms in Portal. I definitely wouldn't recommend it. If your other option is to confirm, then you can place the code above in your script section.
Saurabh
Veteran Member Send Private Message
Posts: 94
Veteran Member
Randall, That code works really well. Many Thanks. As you mentioned unAssigning the form action of "Delete" was disabling it from all the places which was not what i wanted. Saurabh