Dialog return, partialTriggers and field updating

I have a form that allows a user to bring up a dialog, allows them to select an item, and then populates the item id into a field on the original form (essentially an af:selectInputText).
What I need is for other fields on the form to update now that the field has been populated. I've tried configuring partialTriggers on the fields that need to update, but they don't seem to get notified.
In the returnHandler, I set the value of the field component, but that doesn't seem to be causing the trigger to fire. Here's that code:
public void handleCallerMemberIdReturn( ReturnEvent event ) {
String id = (String)event.getReturnValue();
if( id != null ) {
getCompCallerMemberId().setSubmittedValue( null );
getCompCallerMemberId().setValue( id );
Is there something else I need to do to make the framework realize the component has changed value and cause the partialTriggers to fire? Is there another way to accomplish this?
Thanks.

Ok, I've done that and I'm still seeing the same behavior. With a PhaseListener in place, I can see that the UPDATE MODEL phase is never invoked upon returning from the dialog. It goes from APPLY_REQUEST_VALUES to RENDER_RESPONSE, so none of the partialTriggers are working properly. Is there something else I need to do to make it go through the UPDATE_MODEL_VALUES phase after returning from a dialog?
Here's some debug output that shows the process:
At this point, we have just returned from the dialog with a member ID (m5 in this case) stored as the return value. On the 5th line you can see the output indicating that I've queued the ValueChangeEvent. The code for that is below the debug output.
05/02/20 11:42:49 BEFORE PHASE: RESTORE_VIEW 1
05/02/20 11:42:49 restoreView: /newReferralCase.jspx
05/02/20 11:42:49 AFTER PHASE: RESTORE_VIEW 1
05/02/20 11:42:49 BEFORE PHASE: APPLY_REQUEST_VALUES 2
05/02/20 11:42:49 QUEUE VCE for id: m5
05/02/20 11:42:49 AFTER PHASE: APPLY_REQUEST_VALUES 2
05/02/20 11:42:49 BEFORE PHASE: RENDER_RESPONSE 6
05/02/20 11:42:49 renderView: /newReferralCase.jspx
05/02/20 11:42:49 FORM: /newReferralCase.jspx ==> 'newReferralCase'
05/02/20 11:42:49 FB: com.fhm.mwb.ui.backing.NewReferralCaseForm@181
05/02/20 11:42:49 >>> configure( /newReferralCase.jspx, repost=false )
05/02/20 11:42:49 AFTER PHASE: RENDER_RESPONSE 6
here's the code for the return listener:
public void handleCallerMemberIdReturn( ReturnEvent event ) {
String id = (String)event.getReturnValue();
CoreInputText comp = getCompCallerMemberId();
Object oldValue = comp.getValue();
if( id != null ) {
comp.setSubmittedValue( null );
comp.setValue( id );
// Create and queue a ValueChangeEvent
System.out.println("QUEUE VCE for id: " + id);
ValueChangeEvent vce = new ValueChangeEvent(comp, oldValue, id );
vce.queue();
So, the basic problem is that nothing else on the page updates after the dialog return.
Thanks for any help you can provide.

Similar Messages

  • Returns delivery and field status.

    Hi,
    how is possible setting the screen in VL01N so that the field storage location
    is a "required entry"?
    Best regards

    goto SHD0 TCODE ->Put Tcode VL01N  ->Enter Transaction variant (By pressing F4 u can select the same).
    Enter u will get a sceen where u can do it required .
    Hope this help

  • Cfquery dynamic return columns and fields to a table

    Problem in the following code...

    At first glance, the space between qryTable and the variable
    is bad. So are the nested octothorps.
    Plus, it's not clear what you are trying to
    accomplish.

  • ADF Faces EA15: table update not working properly after dialog return event

    Hi,
    in my application I have a table with read-only records and an edit button for each row.
    The button triggers a dialog where one field of of the record can be edited.
    The record is a bean which is put into processScope.
    After accepting the change in the dialog the bean makes an update in the database changing the order of the records in the table on the launching page.
    The return event triggers a re-rendering of the launching page (which I can see from the output of a phase listener) and the table model gets updated but the table output is not updated visually.
    However, if I call the dialog on another record I don't get the record I see in the table but instead I get the record which I'd expected if the table re-rendered properly.
    Do I have to trigger any kind of event on the table now so that the framework knows that a change has taken place and that the table has to be re-rendered? There is no difference whether I use PPR or not. It used to work in EA14.
    Thanks,
    Achim

    In EA14, the return from the dialog required a full-page refresh (whether the dialog was launched with PPR or not didn't matter). In EA15, it's done with PPR if possible. This avoids the flash (and re-scrolling, etc.), but means you do need to tell us what's going to get changed because of the return. You can use partialTriggers on the table with the "id" of the button to make this happen.

  • Region and dialog return bug in JDEVELOPER 11.1.1.1.0

    SomeOne know hot to fix this bug...??
    http://adfbugs.blogspot.com/2009/08/region-and-dialog-return-bug.html
    ADF_FACES-60058: Attempt to re-register component with different model.
    Cause: An IllegalStateException occurred.
    Action: Contact Oracle Support Services.
    Level: 2
    Type: INCIDENT_ERROR
    Impact: Logging
    I have trying and trying and trying to solve this but didnt get a fix....

    John Stegeman wrote:
    The comments in that blog seem to indicate it was fixed in 11.1.1.2 - so two choices for you:
    1). upgrade
    2). File a support request and ask them to backport the fix.
    Since there is a bug filed with support, you can just contact them to see what the current status is.
    Johnas i heard from August 1, 2011 Oracle has stopped supporting 11.1.1.1.0 ......only 11.1.1.2 or later is supported (or may be they told us this to FORCEFULLY upgrade :P)
    so upgrade would be better choice.
    Zeeshan

  • I need to run the program in back ground and then update two fields

    hi gurus
    i need to run the program in back ground and then update two fields in the z table by mm02 transaction by using bapis , can any one give me the code for this.
    Message was edited by:
            Rocky

    hi
    good
    go through this link
    http://www.sapdb.org/7.4/htmhelp/34/ee7fba293911d3a97d00a0c9449261/content.htm
    thanks
    mrutyun^

  • Table ANLC and Field ABGAN update

    Hi All,
    How the values in the Table ANLC and Field ABGAN (Total retirements and retiring transfers) gets updated ?
    Thanks,
    Zahid

    Hi Zahid,
    you have to determine them on your own then. The information can be gathered by the AA document tables (ANEK, ANEP, ANEA). In case you want to calculate retirement cost you have to evaluate all the transactions posted with a retirement transaction type.
    Look into the ABAP report RABEWG_ALV01, you should be able to adapt some logic from this report.
    Regards,
    Markus

  • I have Iphone 4 and today update it to ios 7. How  can i return previous ios?

    I have Iphone 4 and today update it to ios 7. How  can i return previous ios?

    Downgrading of any version of iOS isn't supported by Apple. If you search the web, you may find instructions that may work, but you're on your own should any problems arise. For many people it goes without problems, but for some it's reportedly disabled their devices.
    Regards.

  • BAPI_GOODSMVT_CREATE not updating VBUK table and field WBSTA

    Hi all,
    We post good receipt for the inbound delivery using BAPI_GOODSMVT_CREATE. Upon the successful completion of GR, however, field WBSTK & GBSTK in VBUK table and field WBSTA & GBSTA in VBUP table are not getting updated from A to C for the inbound delivery.
    Wondering anybody here has experienced the similar issue before? And so, how to get it fixed without having to switch to a BDC program?
    Thanks,
    Franc

    It seems this BAPI dose not update the VBUK  fields.
    Edited by: Franc on Aug 11, 2008 3:12 PM

  • Updated iPhone 4S and during update phone returned to factory settings

    I Updated iPhone 4S and during update phone returned to factory settings

    If you have  a backup restore from that.  read http://support.apple.com/kb/HT1766 on how to restore

  • My iPod Touch icons are large and I cannot see all of them, touching the screen does not make them return to normal. It is charged and was updated over the weekend.

    my iPod Touch icons are large and I cannot see all of them, touching the screen does not make them return to normal. It is charged and was updated over the weekend. What do I need to do to fix this?

    never found the answer by looking at a similar q on the right...thanks anyway!!

  • Issue in Workflow- Field Update is not happening

    Hi Friends,
    I am facing an issue to update a check box field Released.
    I have created a task having Advance with Dialog opiton,Background processing to update the Checkbox field.
    The BOR Object type used is BUS1006 and method is CHANGE. Everything looks fine when tested the task as well as the workflow in test mode and it is working fine in both the cases. But some how, this field update is not happening over the CRM 2007 Web UI. We are assuming it is due to user authorizations or some other settings ( like assignment of backend user to the workflow)
    for doing this task. Can some one give us some pointers on this. This will be of great help.
    Thanks,
    Udaya

    Hi Imtiaz,
    I am new to this. Can you please give me some pointers on how to check whether WF-BATCH has the needed authorisations and the process can be executed in background.
    Reply me at your convenient time.
    Thanks a lot for your response.
    Regards,
    Udaya

  • CDC and deferred updates

    I am using CDC to generate events based on the entries in the CDC tables. I need to distingush between insert, update and delete events but when SQL chooses to do a deferred update, it changes an update into a delete and insert - is there a way I can affect
    this behaviour so that any update command results in an update record in the cdc tables?
    I am aware of the DBCC TRACEON (8207,-1) but this seems to only apply to update commands affecting 1 record and which don't affect fields used by unique constraints - my update commands will affect multiple records and fields with unique constraints applied
    to them.

    This problem is caused by a bug in the fn_cdc_get_net_changes_<capture_instance> functions. The bug works in 2 ways, the first is indentified in this thread: an additional row is exported with __$operation = 1. A 2nd problem, resulting from the same
    bug, is that some rows with __$operation = 1 are incorrectly suppressed. These missing rows are however less easily spotted and thus this incarnation of the problem is nowhere reported.
    The bug is reported on Connect as
    ID 690476 back in 2011 already. Below is a copy of the corrected cdc.fn_get_net_changes_dbo_NETTEST function in my test database. The fix can easily be extracted from this sample code. I would suggest you do not adapt the functions yourself in a production
    environment. Instead we should put all our combined powers in to get Microsoft to fix this issue. Please Vote and if possible have the case reopened as soon as possible. 
    create function [cdc].[fn_cdc_get_net_changes_dbo_NETTEST]
    ( @from_lsn binary(10),
    @to_lsn binary(10),
    @row_filter_option nvarchar(30)
    returns table
    return
    select NULL as __$start_lsn,
    NULL as __$operation,
    NULL as __$update_mask, NULL as [ID], NULL as [A]
    where ( [sys].[fn_cdc_check_parameters]( N'dbo_NETTEST', @from_lsn, @to_lsn, lower(rtrim(ltrim(@row_filter_option))), 1) = 0)
    union all
    select __$start_lsn,
    case __$count_23BAE034
    when 1 then __$operation
    else
    case __$min_op_23BAE034
    when 2 then 2
    when 4 then
    case __$operation
    when 1 then 1
    else 4
    end
    else
    case __$operation
    when 2 then 4
    when 4 then 4
    else 1
    end
    end
    end as __$operation,
    null as __$update_mask , [ID], [A]
    from
    select t.__$start_lsn as __$start_lsn, __$operation,
    case __$count_23BAE034
    when 1 then __$operation
    else
    ( select top 1 c.__$operation
    from [cdc].[dbo_NETTEST_CT] c with (nolock)
    where ( (c.[ID] = t.[ID]) )
    and ((c.__$operation = 2) or (c.__$operation = 4) or (c.__$operation = 1))
    and (c.__$start_lsn <= @to_lsn)
    and (c.__$start_lsn >= @from_lsn)
    order by c.__$seqval) end __$min_op_23BAE034, __$count_23BAE034, t.[ID], t.[A]
    from [cdc].[dbo_NETTEST_CT] t with (nolock) inner join
    ( select r.[ID], max(r.__$seqval) as __$max_seqval_23BAE034,
    count(*) as __$count_23BAE034
    from [cdc].[dbo_NETTEST_CT] r with (nolock)
    where (r.__$start_lsn <= @to_lsn)
    and (r.__$start_lsn >= @from_lsn)
    group by r.[ID]) m
    on t.__$seqval = m.__$max_seqval_23BAE034 and
    ( (t.[ID] = m.[ID]) )
    where lower(rtrim(ltrim(@row_filter_option))) = N'all'
    and ( [sys].[fn_cdc_check_parameters]( N'dbo_NETTEST', @from_lsn, @to_lsn, lower(rtrim(ltrim(@row_filter_option))), 1) = 1)
    and (t.__$start_lsn <= @to_lsn)
    and (t.__$start_lsn >= @from_lsn)
    and ((t.__$operation = 2) or (t.__$operation = 4) or
    ((t.__$operation = 1) and not exists (
    select top(1) *
    from [cdc].[dbo_NETTEST_CT] c with (nolock)
    where ( (c.[ID] = t.[ID]) )
    and c.__$operation = 2
    and c.__$start_lsn = t.__$start_lsn
    and c.__$seqval = t.__$seqval
    --(2 not in
    -- ( select top 1 c.__$operation
    -- from [cdc].[dbo_NETTEST_CT] c with (nolock)
    -- where ( (c.[ID] = t.[ID]) )
    -- and ((c.__$operation = 2) or (c.__$operation = 4) or (c.__$operation = 1))
    -- and (c.__$start_lsn <= @to_lsn)
    -- and (c.__$start_lsn >= @from_lsn)
    -- order by c.__$operation desc
    and t.__$operation = (
    select
    max(mo.__$operation)
    from
    [cdc].[dbo_NETTEST_CT] as mo with (nolock)
    where
    mo.__$seqval = t.__$seqval
    and
    ( (t.[ID] = mo.[ID]) )
    group by
    mo.__$seqval
    ) Q
    union all
    select __$start_lsn,
    case __$count_23BAE034
    when 1 then __$operation
    else
    case __$min_op_23BAE034
    when 2 then 2
    when 4 then
    case __$operation
    when 1 then 1
    else 4
    end
    else
    case __$operation
    when 2 then 4
    when 4 then 4
    else 1
    end
    end
    end as __$operation,
    case __$count_23BAE034
    when 1 then
    case __$operation
    when 4 then __$update_mask
    else null
    end
    else
    case __$min_op_23BAE034
    when 2 then null
    else
    case __$operation
    when 1 then null
    else __$update_mask
    end
    end
    end as __$update_mask , [ID], [A]
    from
    select t.__$start_lsn as __$start_lsn, __$operation,
    case __$count_23BAE034
    when 1 then __$operation
    else
    ( select top 1 c.__$operation
    from [cdc].[dbo_NETTEST_CT] c with (nolock)
    where ( (c.[ID] = t.[ID]) )
    and ((c.__$operation = 2) or (c.__$operation = 4) or (c.__$operation = 1))
    and (c.__$start_lsn <= @to_lsn)
    and (c.__$start_lsn >= @from_lsn)
    order by c.__$seqval) end __$min_op_23BAE034, __$count_23BAE034,
    m.__$update_mask , t.[ID], t.[A]
    from [cdc].[dbo_NETTEST_CT] t with (nolock) inner join
    ( select r.[ID], max(r.__$seqval) as __$max_seqval_23BAE034,
    count(*) as __$count_23BAE034,
    [sys].[ORMask](r.__$update_mask) as __$update_mask
    from [cdc].[dbo_NETTEST_CT] r with (nolock)
    where (r.__$start_lsn <= @to_lsn)
    and (r.__$start_lsn >= @from_lsn)
    group by r.[ID]) m
    on t.__$seqval = m.__$max_seqval_23BAE034 and
    ( (t.[ID] = m.[ID]) )
    where lower(rtrim(ltrim(@row_filter_option))) = N'all with mask'
    and ( [sys].[fn_cdc_check_parameters]( N'dbo_NETTEST', @from_lsn, @to_lsn, lower(rtrim(ltrim(@row_filter_option))), 1) = 1)
    and (t.__$start_lsn <= @to_lsn)
    and (t.__$start_lsn >= @from_lsn)
    and ((t.__$operation = 2) or (t.__$operation = 4) or
    ((t.__$operation = 1) and not exists (
    select top(1) *
    from [cdc].[dbo_NETTEST_CT] c with (nolock)
    where ( (c.[ID] = t.[ID]) )
    and c.__$operation = 2
    and c.__$start_lsn = t.__$start_lsn
    and c.__$seqval = t.__$seqval
    --(2 not in
    -- ( select top 1 c.__$operation
    -- from [cdc].[dbo_NETTEST_CT] c with (nolock)
    -- where ( (c.[ID] = t.[ID]) )
    -- and ((c.__$operation = 2) or (c.__$operation = 4) or (c.__$operation = 1))
    -- and (c.__$start_lsn <= @to_lsn)
    -- and (c.__$start_lsn >= @from_lsn)
    -- order by c.__$operation desc
    and t.__$operation = (
    select
    max(mo.__$operation)
    from
    [cdc].[dbo_NETTEST_CT] as mo with (nolock)
    where
    mo.__$seqval = t.__$seqval
    and
    ( (t.[ID] = mo.[ID]) )
    group by
    mo.__$seqval
    ) Q
    union all
    select t.__$start_lsn as __$start_lsn,
    case t.__$operation
    when 1 then 1
    else 5
    end as __$operation,
    null as __$update_mask , t.[ID], t.[A]
    from [cdc].[dbo_NETTEST_CT] t with (nolock) inner join
    ( select r.[ID], max(r.__$seqval) as __$max_seqval_23BAE034
    from [cdc].[dbo_NETTEST_CT] r with (nolock)
    where (r.__$start_lsn <= @to_lsn)
    and (r.__$start_lsn >= @from_lsn)
    group by r.[ID]) m
    on t.__$seqval = m.__$max_seqval_23BAE034 and
    ( (t.[ID] = m.[ID]) )
    where lower(rtrim(ltrim(@row_filter_option))) = N'all with merge'
    and ( [sys].[fn_cdc_check_parameters]( N'dbo_NETTEST', @from_lsn, @to_lsn, lower(rtrim(ltrim(@row_filter_option))), 1) = 1)
    and (t.__$start_lsn <= @to_lsn)
    and (t.__$start_lsn >= @from_lsn)
    and ((t.__$operation = 2) or (t.__$operation = 4) or
    ((t.__$operation = 1) and not exists (
    select top(1) *
    from [cdc].[dbo_NETTEST_CT] c with (nolock)
    where ( (c.[ID] = t.[ID]) )
    and c.__$operation = 2
    and c.__$start_lsn = t.__$start_lsn
    and c.__$seqval = t.__$seqval
    --(2 not in
    -- ( select top 1 c.__$operation
    -- from [cdc].[dbo_NETTEST_CT] c with (nolock)
    -- where ( (c.[ID] = t.[ID]) )
    -- and ((c.__$operation = 2) or (c.__$operation = 4) or (c.__$operation = 1))
    -- and (c.__$start_lsn <= @to_lsn)
    -- and (c.__$start_lsn >= @from_lsn)
    -- order by c.__$operation desc
    and t.__$operation = (
    select
    max(mo.__$operation)
    from
    [cdc].[dbo_NETTEST_CT] as mo with (nolock)
    where
    mo.__$seqval = t.__$seqval
    and
    ( (t.[ID] = mo.[ID]) )
    group by
    mo.__$seqval
    SQL expert for JF Hillebrand IT BV - The Netherlands.

  • SPAM and SP Updates not running on system

    Hi SAP people,
    I have been struggling for a few days with a landscape that I am trying to set up and would appreciate your input.
    I am running on Windows Server EE, with MaxDB 7.6.00 build 35. I am installing ERP2005.
    When I try to install the required SP's and SPAM updates, I get messages like "DD ACTIVATION" and "imp all", that display for at least 12 hours.
    I have tried to import the packages 1 by 1 and alternate between running them in dialog and the background.
    I have executed r3trans -d from the "e:\usr\sap\GAQ\DVEBMGS01\exe>" and get this output.
    E:\usr\sap\GAQ\DVEBMGS01\exe>r3trans -d
    This is r3trans version 6.14 (release 700 - 15.06.07 - 15:50:00).
    unicode enabled version
    2EETW169 no connect possible: "connect failed with DBLI_RC_LOAD_LIB_FAILED."
    r3trans finished (0012).
    E:\usr\sap\GAQ\DVEBMGS01\exe>
    Also, the latest SLOG output is as follows:
    STOP  imp all              GAQ   0016 20080213112326              EPIUSE_BASIS sapdev 20080213110229     
    ERROR: No connect due to DbSl Load Lib Failure
    ERROR: environment variable dbms_type is not set.
    ERROR: Connect to GAQ failed (20080214102826).
    START imp all              GAQ        20080214104146              EPIUSE_BASIS sapdev 20080214104144     
    INFO: event SAP_IMPORT_START triggered successfully
    START tp_getprots          GAQ J      20080214104149              EPIUSE_BASIS sapdev 20080214104144     
    ERROR SAPKD70023           GAQ A 0012 20080214104208 SAPUSER      EPIUSE_BASIS sapdev 20080214104144     
    STOP  tp_getprots          GAQ J      20080214104213              EPIUSE_BASIS sapdev 20080214104144     
    START DD ACTIVATION        GAQ A      20080214104214              EPIUSE_BASIS sapdev 20080214104144     
    START tp_getprots          GAQ J      20080214104214              EPIUSE_BASIS sapdev 20080214104144  
    I have downloaded the 133 kernel and the relevant R3trans and TP files.
    Can anyone advise me to the next course of action?
    I have added the dbms/type = SDB parameter to the instance profile. Is that correct?
    Thanks in advance. Helpful suggestion will be rewarded.

    Hi guys,
    Further update.
    Once I execute the TP command, I get this...
    E:\usr\sap\GAQ\DVEBMGS01\exe>tp connect GAQ
    This is tp version 372.03.35 (release 700, unicode enabled)
    E-TPSETTINGS could not be opened.
    EXIT
    ERROR: System : Parameter SAPEVTPATH not set. Batch jobs cannot be started.
    Error in TPSETTINGS: transdir not set.
    tp returncode summary:
    TOOLS: Highest return code of single steps was: 0
    ERRORS: Highest tp internal error was: 0208
    tp finished with return code: 208
    meaning:
      error in transportprofil (param missing, unknown,...)
    E:\usr\sap\GAQ\DVEBMGS01\exe>
    And after adding the dbms/type parameter to the instance profile and the windows environment, when I try to execute the r3trans, I get the following...
    E:\usr\sap\GAQ\DVEBMGS01\exe>r3trans.exe -d
    This is r3trans.exe version 6.14 (release 700 - 15.06.07 - 15:50:00).
    unicode enabled version
    2EETW169 no connect possible: "DBMS = ADABAS D                         --- DBNAM
    E = ''"
    r3trans.exe finished (0012).
    Any idea what I've done wrong?
    Here is the contents of my TP_DOMAIN_GAD.PFL file, which is the controller.
    #TMS:0004:DOMAIN_GAD
    #U
    #Caution !
    #This file was generated by the Transport Management System.
    #Do not change this file using a text editor.
    #For further information please see the online documentation of
    #transaction STMS.
    #If this file was destroyed, it can be regenerated in the TMS.
    #To do this, log on to the domain controller (system GAD) and call
    #Transaction STMS. In the System Overview, you can distribute the TMS
    #configuration. This regenerates the file.
    #STMS -> Overview -> Systems -> Extras -> Distribute TMS Configuration
    TRANSDIR            =
    sapdev\sapmnt\trans
    GAD/CTC             = 0
    GAD/DBHOST          = sapdev
    GAD/DBNAME          = GAD
    GAD/DBTYPE          = ada
    GAD/NBUFFORM        = 1
    GAD/TP_VERSION      = 266
    GAP/CTC             = 0
    GAP/DBHOST          = sapprod
    GAP/DBNAME          = GAP
    GAP/DBTYPE          = ada
    GAP/NBUFFORM        = 1
    GAP/TP_VERSION      = 266
    GAQ/CTC             = 0
    GAQ/DBHOST          = sapdev
    GAQ/DBNAME          = GAQ
    GAQ/DBTYPE          = ada
    GAQ/NBUFFORM        = 1
    GAQ/TP_VERSION      = 266
    Any help would be MUCH appreciated.
    Thanks. B.

  • Help with modal dialog returning a value to the calling page

    Greetings,
    Apex Version: 4.1.0.0.32
    What I am trying to do is to create a modal dialog that is called from a form page. The dialog will present the user with an IR report that will allow the him to select a row and return a value from that row to a field on the calling page. I have it working in Firefox, but I get an error using IE 8. I hope someone can show me why it is not working in IE.
    Here is how I am doing it:
    From the calling page:
    Created a button
         Action: Redirect to URL
         URL Target: javascript:var rc = window.showModalDialog('f?p=&APP_ID.:70:&SESSION.::&DEBUG.:::','','resizable:yes;center:yes;dialogWidth:1000px;dialogHeight:500px;');
    On the called page:
    The called page is an IR report where the query returns this as one of the columns:
    *(Note: I had to put a dot '.' in front of the onclick to get it to show in this thread. It is not there in my real code.)*
    select
    <a href="#" name="z" style="color:blue; text-decoration:underline;" .onclick="javascript:passBack(''' || LOT_NO ||''');">Select</a>' SelectThis
    , column1
    , column2
    from sometablename;This resolves the anchor to:
    <a .onclick="javascript:passBack('232158');"  href="#">Select</a>Here is the Javascript function that is called from the anchor onclick:
    function passBack(passVal1)
      opener.document.getElementById("P75_ITEM1").value = passVal1;
      close();
    }When I run this in Firefox, it works as expected. I click on the button on the parent page. The modal dialog is opened and the IR report is displayed. I click on one of the links in the report and it returns the correct value back to the calling page and closes the modal dialog.
    When I run it in IE8, it fails. I click on the button on the parent page. The modal dialog is opened and the IR report is displayed. I click on one of the links in the report and I get this error: “opener.document is null or not an object”.
    I hope that is clear and that someone can help.
    Thanks
    Larry

    A quick google search determines that window.opener doesn't exists when using window.showModalDialog
    Suggestions range from using window.open instead of window.showModalDialog to using dialogArguments instead of window.opener
    Try the following:
    In the parent page define a getPopupValue() function:
    function getPopupValue(){
       var dr =  window.showModalDialog('f?p=&APP_ID.:70:&SESSION.::&DEBUG.:::','','resizable:yes;center:yes;dialogWidth:1000px;dialogHeight:500px;');
        if ( (dr != undefined) && (dr != '') && (dr != false) ){
         $x("P75_ITEM1").value = dr;
    }Change the button url to call the function:
    javascript:getPopupValue(); On the popup page change the passback function to:
    function passBack(passVal1)
      returnValue = passVal1;
      close();
    }

Maybe you are looking for