Hi
This is a follow on to my queries last night.
I believe my issue is that I can't figure out a way to assign a user selection to input field that will be used later.
If the fields were in a table I know how to update them with the user's input but how do you assign a value to a filed that is not part of a table.
I thought of creating a temporary table to store these inputs but is there a better way.
Here is a simple expamle that I can't get to work:
DROP PROCEDURE IF EXISTS sp_DBR_Test_Select
$$
CREATE PROCEDUREsp_DBR_Test_Select
()
BEGIN select 'dbr.report', 'sp_DBR_Insert_Mat_Inv','inSupp_ID=[SuppID]'; select 'dbr.editable', '[SuppID]','sp_DBR_dummy_edit_input','type=select','select=select hilmark.tblsuppliers_j.tblSupplier_Ref FROM hilmark.tblsuppliers_j where hilmark.tblsuppliers_j.tblSupplier_isSubbie = 0 order by hilmark.tblsuppliers_j.tblSupplier_Name'; SELECT
'' as 'Supplier Ref[SuppID]'; END
$$
At the moment the 'sp_DBR_dummy_edit_input' is empty as I don't know what to put in there as I'm not updating a table at this point.
Once the user has select a value from the select list I wish to use this value in a linked report. At present the linked report is just to show this value.
DROP PROCEDURE IF EXISTS sp_DBR_Insert_Mat_Inv
$$
CREATE PROCEDUREsp_DBR_Insert_Mat_Inv
(inSupp_ID varchar(25))
BEGIN select inSupp_ID as Supplier; END
$$
In essence how do I assign the value from the select list to the [SuppID] field?
I'm really stuck at this and it sounds so simple.
Thanks
Jake