Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4209 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

 

 

 

Posted

Thank you for responding. No, it is not a calculation field, just a simple global date field.

Posted

See if you have some kind of script trigger on the object or layout

Posted

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.

Posted
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-

This topic is 4209 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.