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

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

Recommended Posts

Posted

hello People!

I am compleatly new to scripting deal = I know nothing smile.gif!

Here is what I am trying to do:

- Sort records based on field called "UPS Date" based on logic that the content of it is either empty or > than CurrentDay

I "attempted" to write it out but no cigar frown.gif

-----------------------------------

Go to Layout ["Waiting List"]

Enter Find Mode[]

Go to Field ["UPS date"]

Insert Text [select,"UPs date",">CurrentDate"]

Pefrom Find[Restore,Repleace Found Set]

--------------------------------------------------------this is it

as I said I really dont know anything about scripts but that they are "nice"....if someone could help that would be "nice" smile.gif

thank you guys!

Posted

Try this instead:


Go to Layout ["Waiting List"]

Enter Find Mode[]

#Shouldn't need the go to field step because you specify

# it in the Insert Text step

Insert Text [select,"UPs date",">CurrentDate"]

New Record/Request

Insert Text [select, "UPS date","="]

#Note, don't select "restore" in the following perform find step

Pefrom Find[Replace Found Set] 

Posted

....still no cigar....the ">CurrentDate" gets inserted as text rather than a ">1/1/2002" form of a date and script stops?

frown.gif

Posted

Hi Leb i Sol,

I really don't understand why it doesn't work with the Status(Current date) but have a try with a global field.

Go to Layout ["Waiting List"]

Set field (g_current date, Status(Current date))

Enter Find Mode[]

Insert Text [select,"UPs date",">g_current date"]

New Record/Request

Insert Text [select, "UPS date","="]

Pefrom Find[Replace Found Set]

Posted

I dont know what to say either....here is a screenshot attached

g_current date = g_currentdate on my screen

msg.jpg

Posted

Oh, I should have looked at your script a little closer. Try this:


Go to Layout ["Waiting List"]

Enter Find Mode[]

#Shouldn't need the go to field step because you specify

# it in the Insert Text step

Insert Calculated Result [ Select, UPS date, ">"& DateToText(Status(CurrentDate)) ]

New Record/Request

Insert Text [select, UPS date,"="]

#Note, don't select "restore" in the following perform find step

Pefrom Find[Replace Found Set] 

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