Reputation: 23
In my Apex application i have successfully created a data loading page to upload newly purchased items with their prices, so far everything works perfectly except, in my database table, these new purchases (rows of data) need to be related to the sale where it happened, for example let's say "X" employee did a purchase for some items in "Y" date, i would first need to enter this sale and then enter the data (every purchased item) from the Excel file and id_sale from the page item stored in the session. basically what i need is a static number (id_sale) for every row inserted.
i tried to add a column in the "data load" process with "column type = SQL expression"
and the SQL expression is :
select :P10_ID_SALE from dual;
i get this error
ora-01008 not all variables bound
apparently this is not the right way to do it, so how can i use a page item in a data load process?
Upvotes: 0
Views: 188
Reputation: 18665
Sounds like this doesn't support page items, I'm getting the same error. I think the easiest workaround is to make this a 2 step process.
Alternatively, try to access the page item with the v
function. Set SQL Expression to v('P10_ID_SALE')
Upvotes: 1