For "select-form" in the same page, add a cancel button in editing status

Dear JHeadstart team
For "select-form" in the same page, I still have a trouble.
How can I customize the Tempalte File to make the editing page have cancel button to abandon the edit.
If I want to learn the the JHS's Template costomizing (.vm file) and where can I find more reference documents about JHS's Template costomizing (excepting "Oracle JHeadstart 10g for ADF Developer's Guide").
thanks!

Can you be more precise on what you want:
- should the cancel button be displayed when creating new row AND editing existing row?
- when pressing the Cancel button, where do you want to go, to the select page?
Steven Davelaar,
JHeadstart Team.

Similar Messages

  • How to pass a parameter from a report to multiple forms in the same page

    Hi:
    i have a report and a lot of forms in the same page. The fact is that i want to stablish a link over a filed in the report which would make some information appear in those forms so that information could be updated. For example: i have a report with company names. Over those names i want to put a link. When the link would be pressed the forms would reflect the information about that comany. Is this possible to be done? how can i do this or something similar?
    Thanks.
    Regards. Urko.

    Please see post Re: session state security
    It has been done for a single form in a page and can be extended to multiple forms as well.

  • Can i use one JSF component's value for other component in the same page.

    Can i use one JSF component's value for other component in the same page.
    For example
    I have a <h:selectBooleanCheckbox id="myChk"> in my jsf page, i want to access its value for another component like:
    <h:commandButton disabled="#{myChk.checked}" action="myAction" value="myValue" />
    ** "myChk.checked" >> I am just asuming "checked" property is available...

    Bind the checkbox to a UIInput myChk property. Then you can reference this property from the page, e.g.
    <h:selectBooleanCheckbox binding="#{myBean.myChk}" onchange="submit();" />
    <h:commandButton disabled="#{myBean.myChk.value}" action="myAction" value="myValue" />

  • 2 single selection tables on the same page

    I used the following great article:
    http://blogs.sun.com/roller/page/winston?entry=single_selectable_row_table_component
    to create a singlerow select table. But I want 2 of these tables on the same page of my tabset component.
    On my page i have:
    private TableSelectPhaseListener tablePhaseListener = new TableSelectPhaseListener();
    public void setSelected(Object object) {
    RowKey rowKey = (RowKey)getValue("#{currentRow.tableRow}");
    if (rowKey != null) {
    tablePhaseListener.setSelected(rowKey, object);
    public Object getSelected(){
    RowKey rowKey = (RowKey)getValue("#{currentRow.tableRow}");
    return tablePhaseListener.getSelected(rowKey);
    public Object getSelectedValue() {
    RowKey rowKey = (RowKey)getValue("#{currentRow.tableRow}");
    return (rowKey != null) ? rowKey.getRowId() : null;
    public boolean getSelectedState() {
    RowKey rowKey = (RowKey)getValue("#{currentRow.tableRow}");
    return tablePhaseListener.isSelected(rowKey);
    but when I added the second table, I had to add the duplicate the above 4 methods, changing currentRow to currentRow2 and tablePhaseListener to tablePhaseListener2, and changing the method names. I also had to make these updates in 2 other places---on the JSP code, as well as in the JavaScript!! For just 2 tables this isn't too bad, but with more tables having to synchronize everything could get real ugly real fast. Am I doing something wrong?
    Also,
    It seems to work, however my IE browser is still reporting some minor Javascript errors that I don't get when I had only 1 single-row select table
    Thanks,
    -DM

    I also went the route of duplicating all methods for the single-selectable row in a table.
    I have at most on my pages two tables with selectable rows and I have not run into any javascript issues.
    I have had a problem when I rename my tables from "table1" etc. The row selection does not work as well when I give my table objects meaningful names. I have not had the time to dig in and discover why.

  • Can we have Manual Form and Tabular form in the same page..

    Hi,
    Is it possible to create a form manually with Save/Apply Change button and another Tabular form using wizard on the same page such that -
    if we click the save button on the manulaly created form , it should save the data present in manual form as well as Tabular form...
    Edited by: Apex_Noob on Mar 21, 2009 5:58 AM

    Hi Dan,
    My table structure is :
    Process
    process_id ( number primary key )
    process_owner ( number which represent the user who is responsible for the process)
    category_id ( number )
    focus_area ( number )
    frequency ( number )
    process_description ( varchar2 )
    Process Region
    process_id ( number )
    region_id ( number )
    Process_website
    id (number primary key)
    process_id ( number)
    web_address ( varcahr2 )
    Above is the struct of part of my DB.
    At present my manual form does the following :-
    When users click on SAVE button , it run PAGE PROCESS , ADD_PROCESS
    In ADD_PROCESS ,
    I have following logic to insert into process table
    Select seq.next_val into temp_variable from dual; - This is the process_id
    insert into process values ( temp_variable , :p2_process_owner , :p2_cateogory , .... )
    to insert into region i used the following logic ( Region is displyed as check box :p2_region north=1 , south=2 ,east = 3 and west = 4)
    l_vc_arr2 := APEX_UTIL.STRING_TO_TABLE(:P2_REGION);
        FOR z IN 1..l_vc_arr2.count LOOP
           INSERT INTO "REGION" VALUES
           ( temp_variable ,
             l_vc_arr2(z));
        END LOOP;
    END;Now as I told, I want to have three text field where user will enter web_address and it should be added to process_website table
    Thanks a ton for all your help
    Regards,
    Shijesh
    Edited by: Apex_Noob on Mar 21, 2009 10:07 AM

  • 2 manually created tabular form on the same page based on 2 different table

    Hi, I followed the how to document on manually creating tabular form, including one extra row.
    The first form I created works fine, but when I attempt to create the second tabular form based on a different table on the same page, I get the following error message when I try to create the query:
    ORA-04045: errors during recompilation/revalidation of PUBLIC.X ORA-00980: synonym translation is no longer valid
    The logic behind both tabular forms I am using is the same, except that for the second query, I use 100 instead of 1, 300 instead of 3, etc:
    select htmldb_item.hidden(1,empno) empno,
    ename,
    htmldb_item.select_list_from_query(3,job,'select distinct job, job from emp') job,
    htmldb_item.popupkey_from_query(4,mgr,'select ename, empno from emp',10) mgr,
    wwv_flow_item.date_popup(6,null,hiredate) hiredate,
    htmldb_item.text(7,sal,10) sal,
    htmldb_item.text(8,comm,10) comm,
    htmldb_item.select_list_from_query(9,deptno,'select dname, deptno from dept') deptno
    from emp
    Can anybody help?
    Thanks a lot

    Hi,
    If by "100 instead of 1" you mean the column numbers, then this won't work as you can only have a maximum of 50.
    Andy

  • Column link to  populate a form on the same page

    Hello all,
    Can anyone tell me how I can use a report column link -- that when the link is clicked will populate all of the text fields of my form which is on the SAME page? The form has about 10 fields, and their is only (3) Name/Value associations for a column link.
    Thanks,
    Jeff

    Great! Thanks for the advice. It appears that when you do that, it changes the column link attributes to a URL and puts the name/values in the URL -- when I first clicked on the link, it would not work -- said that it could not find item P6_FAX. I looked at the URL and then I deleted some of the spaces after the commas in the URL and it works great.
    Thanks!
    Jeff

  • Calling Report from a Form on the same page

    Hi,
    We have a SEARCH Form and when user inputs search criteria, then we want to call a report on the same page, just below the search button. We tried many things but the report does not show up on the same page, it navigates to next page.
    Please help..
    Thanks
    Kumar.

    I am trying to do a similar thing... I have created a form application component and a Report application component which is called from the search form. This works fine.
    I expose the search form as a component and put it on a portal page. I do the same with the report.
    When I call the page and enter the search params in the form and call the report, the report appears in a separate non-portal window. I would like the report in the same portal page to be run in-line with the new parameters.
    Has anyone done this before?

  • Prgramatically set ParameterBindings for To DataFormWebparts on the Same Page.

    I have an External List Called TTOrderbook. One of the Columns on the External List is called AmendedOrderID.  Its the Key of another TTOrderbook, to which this Order TTOrderbook.  (i'e a self referencing table)
    So I need to create a SitePage that Shows a 2 TTOrderbook record The 'Main'' one and the  'Amended' One. When the Page is loaded it gets passed a parameter which is the BDCID of the 'Main Order.
    I create  a site page in my Visuaal Studio Project and drop  in Two Webpartzones and add a DataformWebpart to each Zone. like this:(XSL left out for brevity)
    <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
    <table>
    <tr>
    <td>
    <WebPartPages:WebPartZone runat="server" FrameType="None" ID="wpzMainOrder" Title="MainOrder">
    <ZoneTemplate>
    <WebPartPages:DataFormWebPart runat="server" IsIncluded="True" NoDefaultStyle="TRUE" ViewFlag="8" Title="New Order/Amendment"
    PageType="PAGE_DISPLAYFORM"
    Default="FALSE" DisplayName="dfwpMainOrder"
    partorder="1" id="dfwpMainOrder">
    <DataSources>
    <SharePoint:SPDataSource runat="server" DataSourceMode="ListItem" UseInternalName="true" UseServerDataFormat="True"
    selectcommand="&lt;View&gt;&lt;/View&gt;" id="SPDataSourceNainOrder">
    <SelectParameters>
    <WebPartPages:DataFormParameter Name="ListItemId" ParameterKey="ListItemId" PropertyName="ParameterValues" DefaultValue="0"/>
    <WebPartPages:DataFormParameter Name="ListID" ParameterKey="ListID" PropertyName="ParameterValues" />
    <WebPartPages:DataFormParameter Name="MaximumRows" ParameterKey="MaximumRows" PropertyName="ParameterValues" DefaultValue="10"/>
    </SelectParameters>
    </SharePoint:SPDataSource>
    </DataSources>
    <ParameterBindings>
    <ParameterBinding Name="ListItemId" Location="QueryString(ID)" DefaultValue="{{orderID}}"/>
    <ParameterBinding Name="ListID" Location="None" DefaultValue="{{listID}}"/>
    <ParameterBinding Name="MaximumRows" Location="None" DefaultValue="10"/>
    <ParameterBinding Name="dvt_apos" Location="Postback;Connection"/>
    <ParameterBinding Name="ManualRefresh" Location="WPProperty[ManualRefresh]"/>
    <ParameterBinding Name="UserID" Location="CAMLVariable" DefaultValue="CurrentUserName"/>
    <ParameterBinding Name="Today" Location="CAMLVariable" DefaultValue="CurrentDate"/>
    </ParameterBindings>
    <datafields>@BdcIdentity,BDC Identity;@ID,Order ID;@Type,Type;@ArbitrageName,ArbitrageName;@HedgedTradeID,HedgedTradeID;@Customer,Customer;@Portfolio,Portfolio;@BS,BS;@Entity,Entity;@Entity2,Entity2;@Product,Product;@Contract,Contract;@Contract2,Contract2;@Commodity,Commodity;@Lots,Lots;@LotsFilled,Lots Filled;@LotsRemaining,Lots Remaining;@Price,Price;@GoodTillType,Good Til Type;@GoodTill,Good Until;@Broker,Broker;@Status,Status;@Notes,Notes;@NearDate,Near Date;@FarDate,Far Date;@Created,Created;@Updated,Updated;@CreatedBy,CreatedBy;@UpdatedBy,UpdatedBy;@Maturity,Maturity;@TakenBy,Taken By;@TakenTime,Taken Time;@Adjustment,Adjustment;@PricingBasis,Pricing Basis;@CustomPricingBasis,Custom Pricing Basis;@Requestor,Requestor;@PriceMultiplier,PriceMultiplier;@LotsMultiplier,LotsMultiplier;@AmendedOrderID,AmendedOrderID;</datafields>
    <XSL>
    </XSL>
    </WebPartPages:DataFormWebPart>
    </ZoneTemplate>
    </WebPartPages:WebPartZone>
    </td>
    <td>
    <WebPartPages:WebPartZone runat="server" FrameType="None" ID="wpzAmendedOrder" Title="AmendedOrder">
    <ZoneTemplate>
    <WebPartPages:DataFormWebPart runat="server" IsIncluded="True" NoDefaultStyle="TRUE" ViewFlag="8" Title="Amended Order"
    PageType="PAGE_DISPLAYFORM"
    Default="FALSE" DisplayName="dfwpAmendedOrder"
    partorder="2" id="dfwpAmendedOrder">
    <DataSources>
    <SharePoint:SPDataSource runat="server" DataSourceMode="ListItem" UseInternalName="true" UseServerDataFormat="True"
    selectcommand="&lt;View&gt;&lt;/View&gt;" id="SPDataSourceAmendedOrder">
    <SelectParameters>
    <WebPartPages:DataFormParameter Name="ListItemId" ParameterKey="ListItemId" PropertyName="ParameterValues" DefaultValue="0"/>
    <WebPartPages:DataFormParameter Name="ListID" ParameterKey="ListID" PropertyName="ParameterValues" />
    <WebPartPages:DataFormParameter Name="MaximumRows" ParameterKey="MaximumRows" PropertyName="ParameterValues" DefaultValue="10"/>
    </SelectParameters>
    </SharePoint:SPDataSource>
    </DataSources>
    <ParameterBindings>
    <ParameterBinding Name="ListItemId" Location="QueryString(ID)" DefaultValue="{{orderID}}"/>
    <ParameterBinding Name="ListID" Location="None" DefaultValue="{{listID}}"/>
    <ParameterBinding Name="MaximumRows" Location="None" DefaultValue="10"/>
    <ParameterBinding Name="dvt_apos" Location="Postback;Connection"/>
    <ParameterBinding Name="ManualRefresh" Location="WPProperty[ManualRefresh]"/>
    <ParameterBinding Name="UserID" Location="CAMLVariable" DefaultValue="CurrentUserName"/>
    <ParameterBinding Name="Today" Location="CAMLVariable" DefaultValue="CurrentDate"/>
    </ParameterBindings>
    <datafields>@BdcIdentity,BDC Identity;@ID,Order ID;@Type,Type;@ArbitrageName,ArbitrageName;@HedgedTradeID,HedgedTradeID;@Customer,Customer;@Portfolio,Portfolio;@BS,BS;@Entity,Entity;@Entity2,Entity2;@Product,Product;@Contract,Contract;@Contract2,Contract2;@Commodity,Commodity;@Lots,Lots;@LotsFilled,Lots Filled;@LotsRemaining,Lots Remaining;@Price,Price;@GoodTillType,Good Til Type;@GoodTill,Good Until;@Broker,Broker;@Status,Status;@Notes,Notes;@NearDate,Near Date;@FarDate,Far Date;@Created,Created;@Updated,Updated;@CreatedBy,CreatedBy;@UpdatedBy,UpdatedBy;@Maturity,Maturity;@TakenBy,Taken By;@TakenTime,Taken Time;@Adjustment,Adjustment;@PricingBasis,Pricing Basis;@CustomPricingBasis,Custom Pricing Basis;@Requestor,Requestor;@PriceMultiplier,PriceMultiplier;@LotsMultiplier,LotsMultiplier;@AmendedOrderID,AmendedOrderID;</datafields>
    <XSL>
    </XSL>
    </WebPartPages:DataFormWebPart>
    </ZoneTemplate>
    </WebPartPages:WebPartZone>
    </td>
    </tr>
    </table>
    </asp:Content>
    and then in the codeBehind for my page I set the ListID and OrderID for the two webparts programmatically like this
    protected void Page_Load(object sender, EventArgs e)
    WebPartManager wpm = SPWebPartManager.GetCurrentWebPartManager(this.Page);
    dfwpMainOrder = (DataFormWebPart)wpm.WebParts["dfwpMainOrder"];
    dfwpAmendedOrder = (DataFormWebPart)wpm.WebParts["dfwpAmendedOrder"];
    //dfwpMainOrder = (DataFormWebPart)Page.Master.FindControl("PlaceHolderMain").FindControl("wpzMainOrder").FindControl("dfwpMainOrder");
    //dfwpAmendedOrder = (DataFormWebPart)Page.Master.FindControl("PlaceHolderMain").FindControl("wpzAmendedOrder").FindControl("dfwpAmendedOrder");
    // Set up the Main Dataform
    string bdcid = Page.Request.QueryString["id"];
    mainOrderID = Convert.ToInt32((Microsoft.SharePoint.BusinessData.Infrastructure.EntityInstanceIdEncoder.DecodeEntityInstanceId(bdcid)[0]));
    dfwpMainOrder.ListId = FixPortalLists.TTOrderBook.List.ID;
    dfwpMainOrder.ParameterBindings = dfwpMainOrder.ParameterBindings.Replace("{{orderID}}", mainOrderID.ToString());
    dfwpMainOrder.ParameterBindings = dfwpMainOrder.ParameterBindings.Replace("{{listID}}", FixPortalLists.TTOrderBook.List.ID.ToString("B"));
    SPListItem mainOrder = FixPortalLists.TTOrderBook.GetItemByDBID(mainOrderID);
    // Ifits an Amendment, set up the second Dataform
    if (mainOrder["AmendedOrderID"] != null)
    amendedOrderID = (int)mainOrder["AmendedOrderID"];
    dfwpAmendedOrder.ListId = FixPortalLists.TTOrderBook.List.ID;
    dfwpAmendedOrder.ParameterBindings = dfwpAmendedOrder.ParameterBindings.Replace("{{orderID}}", amendedOrderID.ToString());
    dfwpAmendedOrder.ParameterBindings = dfwpAmendedOrder.ParameterBindings.Replace("{{listID}}", FixPortalLists.TTOrderBook.List.ID.ToString("B"));
    else
    // need to abourt loading of the secon dfwp
    dfwpAmendedOrder.Enabled = false;
    When I step thru debugging I can See that I am assigning a DIFFERENT OrderID to each of the webparts. But They Are both showing the  SAME record, 
    I did a Database Trace and can see that the SAME record is getting requested from the database TWICE.
    I'm on SP2010 SP1. Using VS2012.
    How can I resolve this?

    I Fugured it out.
    I was passing in the order id using a parameter called ID. Both DFWPs were picking this up and using it to get the listitem. I changed the Parameter name To Order ID so that the DFWPS would not see it and changed  the Parameter bindings to pass in the
    BDC id instead of the database id.
    Its working now.

  • Does Oracle support multiple pdk-forms on the same page??

    We have a portal page that contains two portlets (“summary” and “review comments”) and each in turn contains a pdk-form. When a form (say “review Comments” portlet) is submitted via post, in the resultant page, the second portlet (“summary”) gets the post parameters from the first portlet as hidden fields. Here is a snippet of the resultant HTML source that shows the second form’s automatically generated hidden fields:
    ==============================================================================
    <form name="summaryFormBean" method="post" action="http://host/portal/page">
    <INPUT TYPE="hidden" name="_pageid" value="584,1564971" />
    <INPUT TYPE="hidden" name="_dad" value="portal" />
    <INPUT TYPE="hidden" name="_schema" value="PORTAL" />
    <INPUT TYPE="hidden" name="facilityId" value="1232187" />
    <!—The parameters from the review comments portlet -->
    <INPUT TYPE="hidden" name="_piref584_1564976_584_1564971_1564971.1415711_REVIEWCOMMENTS_49519881org.apache.struts.taglib.html.TOKEN" value="2c6b4e323df1281c93602ecc9d855819" />
    <INPUT TYPE="hidden" name="_piref584_1564976_584_1564971_1564971.strutsAction" value="reviewComments.do" />
    <INPUT TYPE="hidden" name="_piref584_1564976_584_1564971_1564971.reviewFacilityComments" value="this is a test" />
    <INPUT TYPE="hidden" name="_piref584_1564974_584_1564971_1564971.strutsAction" value="summary.do" />
    Due to the presence of the “strutsAction” hidden parameter of the previously submitted “review comments”, when the form in the second portlet (“summary”) is submitted, the “review facility comments” are resubmitted erroneously.
    Is this a known issue with oracle portlets? Any thoughts/comments will be appreciated.

    Hi Omar,
    At least for me it does not help much since it looks like they are not talking about relating a parent table with one or more child tables. For me as a beginner with this product, I also wanted to know how to do that. It would be nice if the wizard allowed more then one child table to be related to the parent. When I have time I will look further into how the wizard created the relations and other bits. Also that thread was talking about forms. I noticed that the wizard created two report regions. Since I am an Oracle Forms developer, HTML DB terminology is quite different so I need to kind of re-learn what they are talking about.
    Did you try to make a Master/Detail form with the wizard yet? If you choose to go that route, please let me know how you make out.
    Thanks.
    Emad

  • How to build a Report/Form sharing the same page and do multiple Updates

    Hi, I´m building and APEX application (V4.2). Customer is demanding a report/form with the ability to do multiples Updates with only one click. For example, they check multiples "check box" for Aprpove and then only one click for  "Apply Changes".
    Thanks in advance,
    Luis E Contreras

    Hi Luis,
    If I understand you correctly you want to check a number of rows for approval and update their status. The jQuery function used looks for checked checkboxes. In your case that will correspond with an update on the IND_PROBACION column. You can simply log the PK column value of each checked row:
    var pkS = $('.uReportStandard input[type=checkbox]:checked').map(
       function() {
       return $(this).parent().parent().find('td[headers="PK"] input').val();
       ).get().join(':');
    $('#P1_PKS').val(pkS);
    You need to replace PK with the actual column name of your primary key column, or rowid for that matter.
    In your submit process you can simply set each IND_PROBACION to your apporval value for each pk stored in the P!_PKS item.
    If you need further assistence, please set up an example on apex.oracle.com
    Regards,
    Vincent
    http://vincentdeelen.blogspot.com

  • Two tabular form on the same page

    Hi,
    There is a tutorial or a standard way to build two tabular form on same page?
    thanks in advance
    lukx

    Hi,
    You can see this example also.
    http://htmldb.oracle.com/pls/otn/f?p=31517:163:1033737280330848:::RP,::
    Thanks
    Tauceef

  • Including a jsp on the same page by clicking a button

    Hi,
    I have a jsp page where there are many controls and some buttons. If I click a buton called "Edit" I need to include a jsp page below the existing controls.
    Can someone please tell me how to do that?
    <tr>
    <td>
    <a><img name="View" src="view.gif" border="0"/></a>
    <a><img name="Edit" src="edit.gif" border="0"/></a>
    </td>
    </tr>
    this is thecode which I have for buttons in my page
    Thanks

    Using javascript, you could wrap the included page within a DIV tag or SPAN tag that is initially not visible. Then when the user clicks the button you would make the hidden DIV or SPAN visible.
    The visibility attribute can be set to visible (to see it) or hidden (to not see it). Here's a page that might shed some light:
    http://www.csctce.com/demos/dom_tutorial/
    HTH

  • How can I use two tabular forms on the same page.

    I have create one tabular form in page and try to create second tabular form so
    it gives below error.
    1 error has occurred Updatable SQL Query already exists on page XXXXX.
    You can only add one updatable SQL query per page. Select a different page.

    I can get this to work but the page is submitted, either when I use a button with URL link or from a link on a display only text field.
    Is this how it is supposed to work? I thought it was supposed to work just on the browser so it is fast.
    IGNORE THIS!
    =============================
    I resolved it easily by modifying the URL from f?p=blah blah to #LINK_NAME
    Message was edited by:
    user530800

  • How to update a report  from a form on the same page when form item changes

    I have a portal form from a table and a portal SQL report with a bind variable on a page. I want the report to get updated with details based upon what was selected from a form item. The form item is a selection from a dynamic LOV. Whenever the form item gets changed, the report should get updated to reflect the change. Can this be done using a javascript ONCHANGE event?
    Oracle Portal Version is 10.1.2.2.0.

    Your applet can open an URLConnection and read directly a document from your webserver.
    public String readText() {
      java.net.HttpURLConnection conn = (java.net.HttpURLConnection)myURL.openConnection(); ...
    }So using JavaScript on your page, you might call readText() to fill that textarea.
    The interesting link you gave, handled the JavaScript/Applet interaction. Test that with just return "Hello";.
    The real programming is more interesting.

Maybe you are looking for