join in select so my insert doesn't insert row into result set.
inserting a row into joined table but i need to update two columns, the id and the edited value so that i can then edit the same cell again without reloading page.
on inserts i usually use dbr.refresh (and something other than a text area) but dbr.refresh doesn't work here so trying with javascript
troubles with what i have tried
if the stored procedure returns a result set I don't know how to access the array of results
this only accesses first one col_value_get( this )
Changing a column "id2" value with below call back, new value displays on screen but dbr.editable uses the old value
dbr.editable code
select 'dbr.editable', '[col1]', 'sp_DBR_update_insert_col1', 'insecond=id2','inmainid=id', 'type=textarea',"options={'height':50,'onblur':'','callback':mycallback}
call back code
select 'dbr.javascript', 'function mycallback()
{
var B = col_value_get( this );
col_value_set( this, 16, 0, B);
}';
notes-
change/ update
works- if column "id2" is not null on report load
sort of works - column "id2" is null, edit col1, use call back to change column "id2" value. but now my edited cell shows my result set in json because that is what i returned from stored procedure
does not work- edit same cell again - dbr.editable does not not send the value set in sort of works for column "id" instead passes the value the report loaded with
Insert
works- saving to db
does not work- I am having trouble manipulating the two values received back from stored procedure
Thanks