Display values in the called form whose data is inserted in calling form

Hi,
We have a custom form (Form 1) wherein we call another form (form2) when a button is pressed in Form1.
Scenario
Form 1 - contains 3 blocks -
-->Header Block - HB,
-->Child Block - CB1 - which is child of HB and is multi records block
-->Child Block CB2 - Child of CB1
The canvas of forms 1 holds only HB and CB1 and due to business reasons we are populating CB2's table (say T2) in the post insert trigger of the CB1.
A button is pressed which opens a new form - a display only form (form 2) .
Form 2 just fetches the records that are inserted into the table T2. Note that Form 2 is also a multi record block.
Issue
Assuming that I update some value in Form 1 - block CB1 and save it ; and then click on the button...how should I make sure that the changed values are reflected in the Form 2.
Questions
1) On updating CB1 values - since this impacts values in CB2 T2 table- which trigger should this be handled.
2) how should we make sure that on clicking the button that opens Form 2, the changed values in T2 are reflected.
Regards
S

948611 wrote:
Hi,
We have a custom form (Form 1) wherein we call another form (form2) when a button is pressed in Form1.
Scenario
Form 1 - contains 3 blocks -
-->Header Block - HB,
-->Child Block - CB1 - which is child of HB and is multi records block
-->Child Block CB2 - Child of CB1
The canvas of forms 1 holds only HB and CB1 and due to business reasons we are populating CB2's table (say T2) in the post insert trigger of the CB1.
A button is pressed which opens a new form - a display only form (form 2) .
Form 2 just fetches the records that are inserted into the table T2. Note that Form 2 is also a multi record block.
Issue
Assuming that I update some value in Form 1 - block CB1 and save it ; and then click on the button...how should I make sure that the changed values are reflected in the Form 2.
Questions
1) On updating CB1 values - since this impacts values in CB2 T2 table- which trigger should this be handled.
2) how should we make sure that on clicking the button that opens Form 2, the changed values in T2 are reflected.
Hi S
This is your STATUS
Total Questions:      16 (15 unresolved) YOU didn't keep track your post and also don't close your thread when your problem is solved without marking the right answer. For this when people search this forum and will get similar problem and your post ..they are confused, is there so solutions ???
Hope remember this...
Let's come to your questions.
1) On updating CB1 values - since this impacts values in CB2 T2 table- which trigger should this be handled.You can use post-insert for reflect after insert, and post-update to get reflect the update.
and
2) how should we make sure that on clicking the button that opens Form 2, the changed values in T2 are reflected.when opening the form pass parameter to second form and execute the related data.
For more check the similar post
1. {thread:id=2513529}
2. Calling a form and passing a context
Hope this helps
Hamid
Mark correct/helpful to help others to get right answer(s).*

Similar Messages

  • Timeline usage : To display value at the end of timeline values

    Hi Team,
    In my current project, I want to implement functionality given below. All records are present in one single table.
    Table has columns as (City,Date,Positive,Negative,CountOfItems)
    I have created data model as given below.
    I need to design Power View Report for which Date will act as "Timeline", so when I select DAte as "2010-10-01" to "2010-11-01" then It should show me report having data on "2010-11-01 because it is latest data I am having.
    Final report should look like as below.
    But as I have used "Sum" function, it shows me wrong result.
    My actual meaning is that, on every date of selected window in timeline, value at the last day of selected window should be displayed at report.
    Can anyone help me to do db design and report formulation.

    It looks like this was answered in your other thread...
    Display value at the end of timeline range selection: http://social.msdn.microsoft.com/Forums/en-US/sqlkjpowerpivotforexcel/thread/20ce91d4-9cc1-4680-be71-6172c64e4da7/#20ce91d4-9cc1-4680-be71-6172c64e4da7
    In the future, please try to avoid creating multiple threads for the same problem :)
    Regards,
    Michael
    Please remember to mark a post that answers your question as an answer...If a post doesn't answer your question but you've found it helpful, please remember to vote it as helpful :)

  • Doubt : retaining the value between the calls

    hi,
    Which statement would you use to declare a variable, within a Function Module/Form-routine, so as it will retain the value between the calls?"
    Gaurav

    Dear Gaurav,
    To retain the same value outside a function module, you can define a variable with the same name as the exporting parameter in a function module. However in case of Subroutines you can pass the value by reference as any change in the formal parameters will be reflected in the actual parameters.
    Check the following links for further clarification:
    http://help.sap.com/saphelp_nw70/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db975c35c111d1829f0000e829fbfe/content.htm
    Regards,
    Rajesh K Soman
    <b>Please reward points if found helpful.</b>

  • IP phone display name of the called party with grabage

    Hi,
    I am running CME with 12.4.14(t) ios. The problem which i am having is that when anyone dial any extension, the name is displayed of the called extension & some garbage charater are shown

    Hi,
    CSCsj18014 is:
    Caller ID string received with extra characters
    Symptoms: A caller ID may be received with extra characters.
    Conditions: This symptom is observed when caller ID is enabled on both
    routers and when the station ID and station name are configured on the FXS
    side.
    Workaround: There is no workaround.
    The reference of FXS ports makes be believe that CSCsj18014 is not the applicable bug. However, in the same results page, we see another bug matching better a problem of garbage w/o FXS ports:
    Garbage characters in called name displayed on calling phone
    Symptom: Garbage characters in called name displayed on calling phone Conditions: When placing a call from one phone to another phone on CME using 12.4(11)T3, the displayed name on the calling phone gets some unidentified characters at the end of the displayed name after a few seconds have passed. The problem was NOT seen in 12.4(11)T2
    Now, the bug toolkit does not give the number for this "related bug" and I was not able to localize it.

  • Filtering a region source based upon a value in the calling form

    Hi,
    I am calling a report form with the following SQL
    select
    "RESPONSE_ID",
    "ASSIGNMENT_ID",
    "QUESTION_ID",
    "DATE_CREATED",
    "GRADING_1_10",
    "RESPONSE"
    from "#OWNER#"."CR_QUESTION_RESPONSES"
    where assignment_id = NVL(:P17_ASSIGNMENT_ID, assignment_id).
    P17_ASSIGNMENT_ID is populated from the calling form, but it is not been recognised when the query is run.
    Is there a way to pass values to a query dynamically?
    Thanks.

    Hi,
    Most likely :P17_ASSIGNMENT_ID is not set
    To check the value of :P17_ASSIGNMENT_ID you can add it to the query:
    select
    :P17_ASSIGNMENT_ID val_check,  -- <-- added to check value
    "RESPONSE_ID",
    "ASSIGNMENT_ID",
    "QUESTION_ID",
    "DATE_CREATED",
    "GRADING_1_10",
    "RESPONSE"
    from "#OWNER#"."CR_QUESTION_RESPONSES"
    where assignment_id = NVL(:P17_ASSIGNMENT_ID, assignment_id)Regards,
    Lev
    Edited by: le on Nov 29, 2010 11:32 AM

  • Passing Session Values to the Tabular Form Element of a Report Column

    Hello,
    I'm running application express version 2.0 with a 10.2.0.2.0 database on a 32 bit windows box. I'm trying to figure out sneaky a way to pass the &APP_PAGE_ID., #APP_PAGE_ID# or V('APP_PAGE_ID'); as an element attribute of a Report Tabular Form Element set to display as a Select List (named LOV).
    It seems that whatever option I choose, the Element Attributes field will only render the literal value of what I have entered. This is part of the solution but I would like to find a way to pass the current page id.
    What I'm trying to do is utilize the ONCHANGE attribute to redirect to a report page in my application when the value from a Select List (named LOV) is selected.
    I could work around this by creating my own table output with PL/SQL and HTP.P commands but would really be interested in finding out if I can use the reporting structures which are already available through Application Express.
    Any ideas?
    Thanks.
    Justin.

    Thanks for the response Earl. To clarify this is what I've done and what I hope to achieve:
    I currently have a LOV for my application that identifies a number of database report types: DB Options, DB Parameters, DB Version, and so on.
    I have an application express report being generated for the databases I'm monitoring and it displays as follows:
    - HOST -- DBTYPE -------- DBNAME - DBREPORTS
    =====================================
    - SVR 1 - Oracle 9.2.0.1 - DEV -------- [LOV HERE]
    - SVR 2 - Oracle 9.2.0.7 - TST --------- [LOV HERE]
    I am displaying the LOV on my report the the options under the reports attribute tab in my application builder. I insert my LOV select list by editing the DBREPORTS column and set the "Display As:" option under Tabular Form Element to "Select List (named LOV)"; I have also added my LOV to the "Named LOV" option under List of Values.
    So far this achieves everything I would expect and works quite well (a select list with my report types appears in my monitor report for each DB that is returned).
    What I'm interested in doing now is opening a DBREPORT for a given database by simply choosing the report type from my LOV. I can set the "Element Attributes" option under Tabular Form Element to execute a javascript call for any valid event (in my case I'm using ONCHANGE).
    My only issue is that I cannot find a way to pass any session values from my page to my Element Attribute. If, in the Element Attributes field I enter:
    onchange="alert(this.value);" //my dialogue box will display the value of my current selection when I choose a report type.
    What I'd love to be able to do is something like:
    onchange="alert('&APP_PAGE_ID.');" //so my current page id is written to the element.
    Unfortunately, only my literal text seems to be rendered. Rather than having my dialogue come back with my page number, say 75, I receive the literal value &APP_PAGE_ID.
    Notwithstanding any quote issues, I've tried to dump a test html attribute to my source html by entering any of the following in the Element Attributes field:
    test=&APP_PAGE_ID.
    test=#APP_PAGE_ID#
    and as a shot in the dark knowing that I'm not using PL/SQL:
    test=V('APP_PAGE_ID');
    In every case when I view source I see the literal value of what was entered in the Element Attributes field (ie "test=&APP_PAGE_ID." instead of "test=75").
    What makes things a little more frustrating is that I can drop &APP_PAGE_ID. into the Column Heading field (ex My Heading &APP_PAGE_ID.), it renders as I would expect; "My Heading 75". If we could find a solution to this, I could see a number of slick uses for this type of functionality.
    Hope this helps,
    Thanks.
    Justin.

  • 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();
    }

  • How can I make a control inside a loop in a subVI change value when the calling VI's control changes?

    Hi.
    I think this is a pretty basic LV question, but I have not been able to find a good solution.
    I am attaching VIs that show the problem I am having, but obviously, the real application is a lot complicated, which forces me to try to do it this way.
    The issue is: I have a subVI with a Boolean control inside a loop.  When the control is true I want some action to take place.  When the subVI is run on its own, it works fine, acting properly when I set the boolean control to true via the LV FPGA interface from the host.  However, when I use it as a subVI, in which the top-level VI calls several instances of the subVI, I have the Boolean controls in the top level VI.  What is happening is that the false Boolean value with which the top-level VI starts is passed into the subVIs, and not updated, even though the control is inside the loop.
    Can any one suggest a good solution?
    Thanks,
    AlejandroZ
    Attachments:
    CallingVI.vi ‏7 KB
    subVI.vi ‏8 KB

    Hi.
    I know the example I posted might seem silly, but it was just to illustrate the problem I am having.  In reality this is the application:
    I have some LV FPGA code which uses a few FPGA IO to implement a serial link to communicate with a device.  Most of the time we are getting data from the device, so the serial link is used to send a read command, read in the data and put it into a FIFO.  However, I also wanted the VI to support sending data to the device, so I added an array control to put the data you want to send, and a boolean control to tell it you want to send it.
    Since sending and receiving data are done using the same FPGA IO, they cannot be independent operations, because they would garble each other. Therefore, in the subVI I have a loop in which I first read data if there is any to read, then check the boolean write control to see if there is data to write.
    As I mentioned, this works perfectly for talking to a single device.  However, we run into the issue of this topic when trying to replicate this for several devices.
    One easy solution is to not have the loop in the subVI, and have it in the calling VI (I am favoring this simple solution right now).  The only reason why I have not done this yet, is that the subVI has more than one loop, so I am going to have to create several subVIs.  I just posted to see if there was an even simpler solution...
    There have been some other possibly good solutions proposed here, though I am not sure if they work in LV FPGA.
    Thanks for all your responses.
    AlejandroZ

  • How can I get dataTable to display values from the java layer?

    When I use the dataTAble in my JSP page it will only display values from my java layer if the facets tag has it's name set to "header". Why is this happening?
    If I set it to "header" and I look at the page source it actually has created the correct number of rows but it doesn't put the values between the <td> tags? It see's the length of my list but it doesn't pick the values out of the list.
    <h:dataTable var="data" value="#{NameBean.test}" border="1">
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name"/>
    </f:facet>
    </h:column>
    <h:column>
    <f:facet name="header">
    <!-- <h:outputFormat styleClass="outputFormat" id="format1" value="#{NameBean.test}"></h:outputFormat>-->
    <h:outputText styleClass="outputText" value="#{NameBean.test}" style="" rendered="true" escape="false"/>
    </f:facet>
    </h:column>
    </h:dataTable>
    public List gettest()
              List li = new LinkedList();
              Object Developers[] = {"M@n00j", "sdsadas"};
              for( int i = 0; i < Developers.length; i++ )
                   li.add(Developers);
              return li;
    Thanks in advance to anyone that can help.
    -ls6v

    I've been able to get it working with some of those changes along with changes in the JSP. I think it's a setting or two in the JSP that'll allow the program to run correctly.
    I have a list and it's returned like what you suggested. A day or two ago I tried to move the outputtext outside of the facet tag but nothing would print, I know believe that's related to the following setting in the JSP:
    rows="0" in the <h:dataTAble tag
    Unfortunately the dataTAble isn't displaying the values correctly. It prints all of the values (Strings) in the list on each row and it make a new row for the number of items in the list.......... ???
    Here's what it's printing to the screen (the table):
    ===================
    == [asdasd], [sddfdfd] ==
    ===================
    ===================
    == [asdasd], [sddfdfd]==
    ===================
    what it should print:
    ============
    == [asdasd] ==
    ============
    ============
    == [sddfdfd] ==
    ============
    My code:
    public List gettest()
              List li = new ArrayList();
              li.add("asdasd");
              li.add("affffd");
              return li;
              }JSP
    <h:dataTable border="1" columnClasses="list-column-left"
        headerClass="list-header"
        rowClasses="list-row-odd"
        id="table"
        rows="0"
        value="#{NameBean.test}"
        var="data">
    <h:column>
    <f:facet name="header">
    <h:outputText value="test"/>
    </f:facet>
    <h:outputText value="#{NameBean.test}" style="" rendered="true" escape="false"/>
    </h:column>
    </h:dataTable>

  • How can I pass Flex Field value to the Call Wrap Up screen?

    Hello helpers,
    I am trying to get a value from the 'Flex Field' passed over to the 'Call Wrap Up' screen by using Form Personalization.
    Oracle was configured by a subcontractor and therefore I do not know what the exact name of the textfield is in the Flex Field however the label is 'Method of Contact'. When i set 'Show Custom Events' to 'On', I get the response: 'CSXXXRC.INCIDENT_TRACKING.STATUS_CODE:WHEN-NEW-ITEM-INSTANCE' When i enter a value in the Method of Contact field in the Flex Field.
    Can anyone help?
    I am a complete Newbie to Oracle.... I only know a bit about Oracle Form Personalization.
    Any help would be much appreciated,
    S

    Seems like you're talking about a from from the eBusiness-suite. There are special rules for that, ask your question in the eBusiness-suite-forum OA Framework

  • How to get the value of the current form values after "save" in MD form

    Hi,
    I am trying to run a procedure using the form values right after I save the current records in a master-detail form. When I pass the value using p_session.get_value to the procedure, there is only null value passed. I checked the package body generated and found that the OnReset function runs immediately following the saving of the current records and this onReset function is called within the OnSave procedure. So when I save the current changes, I loose the values in the p_session. Any PL/SQL code I write after OnSave, does not get any p_session value.
    Interestingly, in case of just one table form, the OnReset is not within the OnInsert function and it is possible to get the p_session values. OnReset runs after OnInsert and within this two functions we can write any pl/sql code on the Insert button PL/SQL handler.
    I have the following questions:
    1. Why is the procedure written differently in case of master-detail form ? Why is the OnReset inside the OnSave ? How do we write codes which we want to execute before onReset and after OnSave ?
    2. I want to run a procedure after onSave and before OnReset. How do I do that ? Do I have to change the package manually ?
    3. If the above is not possible, I can also try to store the values I need to run the procedure before I save in some variable. How do I do that ? It seems I cannot declare variables to store session values inside the pl/sql event code on Save button, because it gives me error. The variable declaration code goes in between the begin and end of genesys.. procedure and that is not allowed in pl/sql
    Please help me with this. I definitely need to run a procedure after saving for almost all of my forms. Otherwise I am not sure what to do with my development. I am completely stuck with this. Thanks a lot for helping me out.
    Mainak

    Never mind. I found the answer.

  • How to display HyperLink on the DataGrid Component  column  data.

    Hi ,
    I am able to display customer data on to the DataGrid with the help of a ArrayCollection,
    Similar as shown :
    <mx:columns>
    <mx:DataGridColumn dataField="customerid"  headerText="Employee ID"
                       itemRenderer=""/> 
          </mx:columns>
    Please tell me what should be the value inside the itemRenderer to make the customerid display as an HyperLink ??
    I am struck up mx.controls.----?? value on to the itemRenderer 
    Please suggest .
    Thanks in advance .

    And Following is answer for http://forums.adobe.com/thread/630928?tstart=0
    <mx:DataGridColumn headerText="Employee ID"
    editorDataField="text" dataField="customerid"
    itemRenderer="mx.controls.TextInput" editable="true"/>
    Just replace TextInput--->YPaticular  controll(LinkButton)
    please help to answer this
    http://forums.adobe.com/thread/630962
    Happy codding....

  • OIM API - How to get the values in the process form (both parent and child)

    Hi,
    I created an RO with a Process form (both Parent and Child).I created a unconditional process task which takes in the processinstance key and tried to retrieve the process form datas.When i tried to provison the resource,the process task is getting triggered and I could able to get the parent form data but not the child form data.
    Any idea why is this happening?.Is it mandatory to have the "Triggers" ON to get the Child Form data.?
    Thanks,

    try this
    tcResultSet childResults = formOper.getChildFormDefinition(
                             formOper.getProcessFormDefinitionKey(procInstanceKey),
                             formOper.getProcessFormVersion(procInstanceKey));
    This should work,
    Regards,
    Raghav

  • Display value at the end of timeline range selection

    I need to design Power View Report for which Date will act as "Timeline", so when I select DAte as "2010-10-01" to "2010-11-01" then It should show me report having data on "2010-11-01 because it is latest data value
    that I am having.

    Hi Sandip,
    You could give the following solution a try...
    You will need to add a Date table to your model if you don't have this already. At a minimum this table will have a single date column with all the dates in each year that you have data for in the other table(s) in your model. It's also a best practice to
    mark this as a date table.
    'Date' table
    Date
    01/01/2010
    02/01/2010
    03/01/2010
    04/01/2010
    05/01/2010
    06/01/2010
    07/01/2010
    08/01/2010
    09/01/2010
    10/01/2010
    11/01/2010
    12/01/2010
    13/01/2010
    14/01/2010
    15/01/2010
    16/01/2010
    17/01/2010
    18/01/2010
    19/01/2010
    20/01/2010
    21/01/2010
    22/01/2010
    23/01/2010
    24/01/2010
    25/01/2010
    26/01/2010
    27/01/2010
    28/01/2010
    29/01/2010
    30/01/2010
    etc...
    You could then define a measure that does a basic SUM aggregation for each of the columns that you require a measure for; these are your base measures. In this example, I am only focusing on the Positive column...
    SumOfPositive:=CALCULATE(SUM(Data[Positive]))
    Next, you can define another measure that provides the behaviour that you want, however there are two options for this depending on the exact behaviour required. They look very similar but they are different:
    PositiveLASTDATE:=
    CALCULATE(
    [SumOfPositive],
    LASTDATE('Date'[Date])
    OR
    PositiveLASTNONBLANK:=
    CALCULATE(
    [SumOfPositive],
    LASTNONBLANK(
    'Date'[Date],
    [SumOfPositive]
    The LASTDATE version of the measure will find the last date that you have filter in your range and return the value
    regardless of whether there is data for the date or not. This means that if you select
    "2010-10-01" to "2010-11-01" it will return the result for "2010-11-01" even if there is no data for this date. On the other hand, the LASTNONBLANK version of the measure will find the last date with data.
    This means that if you select "2010-10-01" to "2010-11-01" in this instance, if "2010-10-01"
    is the last date with data then the value for this date will be returned.
    Regards,
    Michael
    Please remember to mark a post that answers your question as an answer...If a post doesn't answer your question but you've found it helpful, please remember to vote it as helpful :)

  • How to display values inside the Pie chart?

    Hi Expert,
    How to display the values inside the Pie chart, instead of Mouse over values. Can u pls help me to do this one.
    Is it possible can we use mentioned below kind of pie charts in Xcelsius 2008.
    Thanks & Regards,
    Tamil
    Edited by: Rajesh Kumar Thoppe on Dec 13, 2010 10:41 AM

    Hi A G,
    Thank You for quick response!!!
    in this Text tab I am able to see below check box only
    1) Chart Title
    2) Sub Title
    3) Legend
    4) Mouse-Over
    Kindly advise me if i am wrong and let me know how to achieve this.
    Note: We have Xcelsius 2008 environment
    Thanks & Regards,
    Tamil
    Edited by: Rajesh Kumar Thoppe on Dec 13, 2010 1:58 PM

Maybe you are looking for