Hi, see inline sorry my first post was confusing
- What does the 'sp_DBR_tcip_timenew2_sub1' do?
this is a subreport loaded on the main report (just displays data), i have 2 embedded reports and often refresh just one of them
- Why do you need a popup for it?
ooops sorry i probably wasn't clear. that is an embedded report that shows 1 table of data
- Do you do editing in the popup or do you just ask some parameters before running the linked report?
ask for one parameter then change multiple values and reload sp_DBR_tcip_timenew2_sub1
- What do you want to happen once the linked report sp_DBR_tcip_timenew2_sub1 has been executed, just close the popup and do no changes in the main report or what?
ooops sorry i was not clear, this is a report of one table that i reload.
Here is the button code that runs the popup
select 'dbr.report', 'sp_DBR_changetable','inid=in_id', 'popup';
select 'dbr.button', 'clickme';
select in_id;
here is sp_DBR_changetable,
i have played with different javascript after the .click() line but can't close popup. I think you are using jquery and I probably should be able to figure it out but i haven't been able to. I have made the window close with this, so at least i am trying to help myself :)
self.close ();
CREATE PROCEDURE `sp_DBR_changetable`(inid int, indecimal decimal(13,2))
BEGIN
update sometable t2
set column = indecimal
where id= inid;
select 'dbr.javascript', "
{
$('.load1')[0].click();
}";
END