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

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

Recommended Posts

  • Newbies
Posted

I have an extimate layout that once a field in entered (onobjectenter) runs a script that pops up another layout for calulation purposes. The new layout accepts input for the calculation and should return the resulting value to the field and then move to the next field. When the script completes, the field remains empty and does not move to the next field.

 

Do I need to use a variable to make this work or am I just going about this wrong the wrong way?

Allow User Abort [ On ]
New Window [ Name: "Input Dimensions"; Height: 1; Width: 1; Style: Dialog ; Close: “No”; Minimize: “No”; Maximize: “No”; Zoom Control
Area: “No”; Resize: “No” ]
Go to Layout [ “Dimensions” (Products) ]
Show/Hide Toolbars [ Hide ]
Adjust Window [ Resize to Fit ]
Move/Resize Window [ Current Window ; Top: 150; Left: 300 ]
New Record/Request
Pause/Resume Script [ Indefinitely ]
Set Field [ Estimate Data::Footage ; Products::Length*Products::Width ]
Commit Records/Requests [ No dialog ]
If [ $$Abort = 1 ]
Set Variable [ $$Abort; Value:"" ]
Delete Record/Request [ No dialog ]
End If
Go to Next Field
Close Window [ Current Window ]

Posted

welcome

 

 

have you tried to set debug on.. then run your script//   stepping along,  using the viewer, allows you to look at your progress fields and data, step by even test a condition along the way..

 

I often eliminate the misc command,  or less important, new wind, adjust wind, move, the abort etc

even the record commit until finished

 

so your troubleshooting less commands

 

When you change layout.. look to see if you data disappears, might indicate lost relationship where your data originates from

 

best re..

 

 

 

 

This topic is 4225 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.