May 15, 201312 yr I'm bumfuzzled. I have a script with a show dialogue box utilizing the data input fields. Whether anything is entered, or if the fields are left blank, once you click the OK button, I get an error message that 'this action cannot be performed because these fields are not modifiable.' I have the set error capture script step on in the script. I've checked my security setting on these fields and they are modifiable. (They are global fields.) I've checked the fields directly on the layout, and they are modifiable. I've tried it with the admin level, still get the same message. Any ideas what is going on here? Thanks for any help.
May 15, 201312 yr Author Thank you for responding. No, it is not a calculation field, just a simple global date field.
May 15, 201312 yr You need to post a copy of your script. The easy way is to print to preview and copy and paste it into a Reply. Use the Code function here which is the <> icon.
May 15, 201312 yr Author User Interface: LAYOUTS: --Report Viewer: btn__PRINT/VIEW_WeeklyMonthlyInvoice # #============================================== # Purpose: Print or view the week's invoices # Parameters: week; month; three # --------------------------- # $one = (enum) load, unload # $two = (string) second parameter # $three = (num) expected # --------------------------- # Called by: (script) any # Author: # History: Last change: # Notes: none #============================================== # Set Error Capture [ On ] Set Variable [ $LayoutName; Value:Get ( LayoutName ) ] Set Variable [ $ObjectName; Value:"tab.business" ] Set Variable [ $ScriptParameter; Value:Get ( ScriptParameter ) ] # Show Custom Dialog [ Title: "Alert!"; Message: "Please enter the start date for the " & $Scriptparameter & " and the end date for the " & $ScriptParameter & "."; Default Button: “OK”, Commit: “Yes”; Input #1: DB » Globals:: REPORT_WEEK_START, "Week start date"; Input #2: DB » Globals::REPORT_WEEK_END, "Week end date" ] # Freeze Window Go to Layout [ “InvoiceList” (Invoice LAYOUT » Invoice) ] Enter Find Mode [ ] Set Field [ Invoice LAYOUT » Invoice::saleDate; DB » Globals::REPORT_WEEK_START & "..." & DB » Globals::REPORT_WEEK_END ] Perform Find [ ] # If [ Get ( LastError ) = 401 ] Show Custom Dialog [ Title: "Alert!"; Message: "There are no invoices for the " & $ScriptParameter & " chosen."; Default Button: “OK”, Commit: “Yes” ] Go to Layout [ $LayoutName ] Go to Object [ Object Name: $ObjectName ] Enter Browse Mode Perform Script [ “SizeWindowStatus” ] Exit Script [ ] End If # Enter Browse Mode May 15, 2013 12:30:07 PMM V6.fmp12 - btn__PRINT/VIEW_WeeklyMonthlyInvoice -1-
Create an account or sign in to comment