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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

insert record into form table

Status
Not open for further replies.

citrusstyle

Technical User
Aug 20, 2009
46
CA
livelink 9.7.1 with forms 9.7.1, web forms 9.7.2, adn 3.2.0


i have a form template with 2 adn table key lookups. these attributes perform lookups against a table within the livelink schema.

'vendor name' and 'vendor number' correspond with each other. they are each columns contained within the same table.


when selecting 'vendor name' from the lookup, it populates 'vendor name' AND 'vendor number'
....and vice versa,
when selecting vendor number from the lookup, it populates 'vendor number' AND 'vendor name'


question:
i'd like build in the option to ADD a value to the table if it does not exist in the lookup. if 'vendor name' or 'vendor number' don't exist, give the user the option to enter both and store in the table for future use.


what approach would you take? i was thinking about using web forms to perform an INSERT. is this possible?

thanks for your help!
 
yes so long as you create your statement correctly by which I mean do not send from the client a fully formed sentence like this
insert into my table values(2,3,4).Look in builder how inserts are done from a user gui.If you could have created this table using the form sql option Livelink would have given you that option.You would just have some ajax/javascript to call the OT reqhandler and come back to that screen.Create your own req handler and read up on how to avaoid sql injection and use bind vars whenever possible

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top