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

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

Recommended Posts

Posted

Please help if you can.

I am trying to bring in data from a different database that had a long list in a drop down menu. I am trying to bring this list into a table that has a record for every entry in the drop down list. I don't want to have to do this manually. I've got the field to display the list from the other file, and when I create a new record the field is auto selected and all I have to do is hit the down key to select the entry, but I can't seem to automate this. I'm guessing I can use the get value list function to pull up the list, but I can't get my head around how to automatically create a new record, and select the next value in that list and on and on. Please help.

Thanks.

Steve

Posted

The way I'd do that is using the ValueListItems function, e.g.:)

/* This script makes a new record

   for every item of a value list */



Set Variable( $items ; ValueListItems("myFile";"myList") )

Loop

  Set Variable( $i ; $i+1 )

  Exit Loop If( $i > ValueCount( $items ) )

  New Record

  Set Field ( item ; GetValue( $items ; $i ) )

End Loop

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