You are viewing limited content. For full access, please sign in.

Question

Question

Return column from stored procedure to another form field

asked on May 13, 2015

Newbie question....I am using Lookup Rules to populate a drop down from a stored procedure.  The following populates Employee Name drop down with the values from column FullName in the stored procedure, but the Form fields of Employee Number and Department are not being populated from the associated stored procedure columns.

Thank you

0 0

Answer

APPROVED ANSWER
replied on May 13, 2015 Show version history

Hi Penny,

Can you confirm that the column names you typed into the Lookup page for the Employee Number and Department are valid?

This works for me, unless I'm misunderstanding your configuration. To confirm, when you run that stored procedure without any parameters, it is supposed to return a listing of employees and the corresponding values for the FullName, EMPLOYEE, and PROCESS_LEVEL columns (as shown below)?

And your form has three drop down fields named Employee Name, Employee Number, and Department which are supposed to have their values coming from the execution of that stored procedure?

The drop down fields in my form have all their available values coming from that stored procedure.

If there is still an issue, despite the configuration appearing to be correct, please contact your Laserfiche reseller to open a support case.

If your actual goal is to make it such that the Employee Name drop down is populated with the values of FullName and then once an Employee Name is selected, the corresponding Employee Number and Department are to be filled out, then you'll have to reconfigure your lookup rules. First, this won't work by calling a stored procedure. Instead, you'll want to consider creating a separate table/view of the data you're retrieving and then configure the lookup based off of that.

1 0

Replies

replied on May 13, 2015

Well it seem to miss the input parameter that will be use as a lookup to grab the information

 

see my exemple

1 0
replied on May 14, 2015

Thank you.  Alexander, your last example is what I'm trying to do.  I will create a view instead of using a stored procedure and give that a try.  

 

Thank you, Alexander and Rene for the pointers!  I really appreciate them smiley

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.