Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AccpacView.RecordCreate tags

Status
Not open for further replies.

iwells

Programmer
Oct 2, 2012
284
CA
Hi,

Simple question on the difference between the 3 values I see in the help for the RecordCreate method of a view:

0 (view_record_create_noinsert) - does this create a "temp" batch and not actually insert the record until later .insert/.post methods are called?
1 (view_record_create_insert) - does this create the record immediately?
2 (view_record_create_delaykey) - what does this do?

The reason I'm asking is I'm creating a GL batch and I see the API created a batch using .RecordCreate 1 for GLBCTL, then creates records for GLJEH using RecordCreate 2 and then creates records for GLJED using .RecordCreate 3 so I'm trying to understand why.

Is it something like a record needs to exist in GLBCTL (.RecordCreate 1) before a corresponding record can be created in GLJEH (.RecordCreate 2), but then you can selectively decide what to do in GLJED (.RecordCreate 0)?

Is this always the case when attempting to create GL batches?
 
1 means create it unconditionally, i.e., a new batch. 0 and 2 means nothing is there until you .Insert, i.e., click the Add button
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top