Page loss at the click of add new button in advanced table

Have created an advanced table and when I click on the add row button for the first time it results in page loss issue. But if I query and then click on the button it works fine.
AM code:
public void initialize()
OAViewObject vo = (OAViewObject)getXxutlDomainsVO();
if (vo.getFetchedRowCount() == 0)
vo.setMaxFetchSize(0);
public void createDomainSetupData()
OAViewObject vo = (OAViewObject)getXxutlDomainsVO();
if (vo.getFetchedRowCount() == 0)
vo.setMaxFetchSize(0);
Row row = vo.createRow(); vo.insertRow(row);
row.setNewRowState(Row.STATUS_INITIALIZED);
CO:
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAApplicationModule domainSetupAM = pageContext.getRootApplicationModule();
domainSetupAM.invokeMethod("initialize", null);
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
OAApplicationModule domainSetupAM = pageContext.getRootApplicationModule();
if ("DomainsAdv".equals(pageContext.getParameter(SOURCE_PARAM))
&& ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
domainSetupAM.invokeMethod("createDomainSetupData", null);
Please help

Hi,
There are two ways to do it.
1. Use create method of entity object, create method fires whenever you creates new row.
2. Handle the event raised by addanotherrow button and write logic there to initialize contactid as you are getting contactid from pageContext so I will suggest you to use this method.
if (tableBean.getName().equals(pageContext.getParameter(SOURCE_PARAM)))
&& ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
//write your logic here to default the contact id
Hope this will help.
Regards,
Reetesh Sharma

Similar Messages

  • How to add new rows in Advanced Table along with attribute value?

    Hi,
    I have one advanced table that contain one messageChoice and messageTextInput field.
    I want to add new rows in advanced table. I can able to add rows using the AddMoreRows button in the footer of the advanced table,
    but I want to add attribute value(contactId) each time when new row created.
    contactId I am getting from pageContext.getParameter("contactId")
    How to achive this? Please suggest.
    Thanks & Regards,
    Sunita

    Hi,
    There are two ways to do it.
    1. Use create method of entity object, create method fires whenever you creates new row.
    2. Handle the event raised by addanotherrow button and write logic there to initialize contactid as you are getting contactid from pageContext so I will suggest you to use this method.
    if (tableBean.getName().equals(pageContext.getParameter(SOURCE_PARAM)))
    && ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
    //write your logic here to default the contact id
    Hope this will help.
    Regards,
    Reetesh Sharma

  • How to add new button in Customized page....

    Dear All,
    I need to add new button to the page button bar in the UI page.I tried like this in the controller but still i can not get output:
    OAPageButtonBarBean oapbb = (OAPageButtonBarBean)oawebbean.findIndexedChildRecursive("OrderPageButtons");
    OAButtonBean cancelButton = (OAButtonBean)createWebBean(oapagecontext, OAWebBeanConstants.BUTTON_BEAN,
    null, "cancelButton");
    cancelButton.setText("Cancel");
    oapbb.addIndexedChild(cancelButton);
    Is there anything i missedout?
    TIA

    what you are doing incorrectly is
    trying to get the handle to the OAPageButtonBarBean.
    This is a named child of the parent bean(OAPageLayoutBean), and what you are trying to do is find it as a indexed child, this should give you a nullpointer excp in this line oapbb.addIndexedChild(cancelButton);
    since the handle should be null.
    to get the handle to OAPageButtonBarBean, use some like this
    pageContext.getPageLayoutBean().getPageButtons();
    and then add buttons to it.
    Thanks
    Tapash.

  • How to change the url of "Add New Item" of a particular list in SharePoint 2013???

    Hi Guys,
    How to change the url of "Add New Item" of a particular list in SharePoint 2013???
    I need to redirect it into the page where I have created my Visual web part.
    Please suggest
    Warm Regards,
    Tony Joy

    Hi,
         There are multiple ways to change the form url like javascript, SharePoint designer, custom code, editing default form to have custom web part etc, Please follow the url below that describe diffent methods and steps
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/ec2769a0-683c-4023-8804-b596e4f92a3a/change-default-forms-on-custom-list?forum=sharepointcustomizationlegacy
    Hope it helps!!!
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. Thanks, Ajeet

  • PerformancePoint Designer is not loading when clicking on "Add new item" from PerformancePoint Content List

    Hello,
    I am using Internet Explorer 9 to create a new item by launching Performance Point Dashboard Designer from browser. 
    When i click on "Add new item", an Iframe will open showing dashboard design redirect which keep loading for couple of minutes and the designer never opens. 
    Yes, there are working workarounds like opening these links in other tab or opening dashboard designer directly or by clicking on "Run Dashboard Designer"  from BI Center homepage. 
    However, Can someone please help me how to get designer opened when "Add new item" has been clicked from  PerformancePoint Content List from browser? 
    Thanks in advance.
    NKV Prasad Panthangi

    An Update :
    I found this is due to the browser limitation. 
    I have downgraded my Internet Explorer Browser to IE 8 and did the following changes in my browser settings. 
    Tools --> Internet Options --> Navigate to Security Tab --> Click on Custom Level Button --> Under Download --> Select "Enable" radio box for Automatic Prompting for File Downloads. 
    Sadly, I cannot ask users to downgrade their browser to IE 8 because MS already stopped support for this browser and there are no other solution for this except going by workarounds. 
    This clearly says why people are moving away from PerformancePoint Services in SharePoint. 
    Thanks
    NKV Prasad Panthangi

  • When I click on a web page link, it creates a bookmark does not open page, need to right click and open new page or tab

    When I click on a web page link, it creates a bookmark does not open page, need to right click and open new page or tab

    My own problem not a system one

  • UmLogonPage.jsp - Add new Button

    Hi Portal experts,
    I am customizing the Logon Page, umLogonPage.jsp . My requirement to add new button in umLogonPage.jsp and on action it should redirect  BSP iview.
    Can you help me to implement this. I have downloaded the Par file and imported in NWDS .
    Please provide help if possible.

    Hi Rashi
    Go through  Modifying The Logon Par(or customising the Logon Screen)
    Just search for custom login page in portal and you will get various link on this.For adding new button add the button code in  umLogonPage.jsp.You can copy the Submit button code already available and change the source link.
    Regards
    Shankar

  • 500 Internal Server Error when clicked on Add/Remove Button

    Hi,
    When i Goto System Management -> Administration -> Mobile Infrastructure -> Device Maintenance -> here search for the device id or just click on the search -> scroll down to find 'Mobile Components' tab -> click on Add/Remove button
    The error iam getting is
    <b>500 Internal Server Error</b>
    java.lang.NullPointerException
        at com.sap.ip.mi.admin.wd.device.DeviceMaintenance.supplyUserList1(DeviceMaintenance.java:794)
        at com.sap.ip.mi.admin.wd.device.wdp.InternalDeviceMaintenance.supplyUserList1(InternalDeviceMaintenance.java:562)
    Any Suggestions or solutions
    Rgds,
    Kiran Joshua

    Nameeta,
    There are no short dumps in the middleware, st22.
    Sathya,
    We r trying to look at the SP level, once done will get back
    But still any suggestions are welcome
    rgds,
    Kiran Joshua

  • I am using strobe media playback but i want to add new button for subtitle in control bar,Can anybody tell me how can i do it.

    I am using strobe media playback but i am not able to add new button for subtitle in control bar.
    I have imported assets.fla file in Flash professional but i do not understand how add new button in this fla and then link with action script method to show subtitle.If anybody know about it please tell me.

    Hi,
    Yes you can add video subtitle and I can give you the details how to do
    that. Can you please advise which type of files you have for video
    subtitile and how many language you want to add. i.e. text files or xml
    files.
    Best regards,
    Sunil Kumar
    On Thu, Jan 15, 2015 at 5:22 PM, Add Subtitles to OSMF and <

  • How do I remove the hover when I run the click of a second button?

    Good Morning,
    I found half the solution to my problem, that is, the part about the hover state to click on the button:
    1) I converted my Button in ToggleButton
    2) I have added this Style based Triggers:
    <Style TargetType="ToggleButton" x:Key="checkedToggle">
    <Style.Triggers>
    <Trigger Property="IsChecked" Value="True">
    <Setter Property="Background" Value="#5fc3f3"/>
    </Trigger>
    </Style.Triggers>
    </Style>
    To click the button keeps the "hover", the second click will remove.
    Now the other problem: how do I remove the hover when I run the click of a second button?
    Thank You.

    >>Now the other problem: how do I remove the hover when I run the click of a second button?
    You simply set the IsChecked property of the first button to false when the second button is clicked:
    <ToggleButton x:Name="firstButton" IsChecked="True" Style="{StaticResource checkedToggle}">...</ToggleButton>
    <ToggleButton Checked="ToggleButton_Checked" Unchecked="ToggleButton_Unchecked">...</ToggleButton>
    private void ToggleButton_Checked(object sender, RoutedEventArgs e)
    firstButton.IsChecked = false;
    private void ToggleButton_Unchecked(object sender, RoutedEventArgs e)
    firstButton.IsChecked = false;
    Please remember to mark close your threads by marking helpful posts as answer and please start a new thread if you have a new question. Please don't ask several questions in the same thread.

  • Add new button on title bar of JFrame

    how can i add new button (like minimize, maximize and close) on title bar of JFrame.
    actually i want a new button for system try icon. if user click on this button JFrame will hide and system try icon will be visible

    Hi,
    Check out this Thread.
    Hope that help,
    Jack

  • Add a Button in a table header Webdynpro

    Hi all,
    how can'i add a button in a table header ? and how/where schould be implemented?
    thank you all

    Hi,
    If you want to create Some custom buttons in ALV, you need to write some coding.
    Please go through this...
    ALV with user-defined buttons on toolbar in wd abap
    Re: Adding custom button in standard toolbar in ALV
    If you want to create button is table toolbar. steps :
    1. create TABLE UI Element in view - go to ROOT UI ELEMENT CONTAINER( right side here you find inserted Table ) - Right click on that ->you fined one option INSERT TOOLBAR, click this-> it will insert Toolbar again right click on this tool bar-> You wil find insert
    toolbar element->select Toolbar button. It will insert toolbar and buttons.
    Cheers,
    Kris.

  • I've lost the ability to add new sites, change display size, etc. of sites shown when I open a new tab. What am I doing wrong?

    At some point my ability to add sites from the new tab page, change site displayed sizes, etc. has stopped working. I liked this feature. What changed or what am I doing wrong?

    Do you still see the about:newtab page with the 3x3 tiles?
    Did you modify the number of rows and columns on this page?
    *https://support.mozilla.org/kb/new-tab-page-show-hide-and-customize-top-sites
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Right click to add new folder to desktop, not there

    I want to add new folders to desktop
    (I use to be able to right click & new folder was an option to add to desktop)

    hello sammyg11, you're posting in a support forum for the firefox browser by mozilla. the question you've asked isn't really related to firefox but is a question about windows - in this case please refer to external help ressources: www.sevenforums.com/tutorials/28677-new-context-menu-remove-restore-default-menu-items.html

  • Add new button on SAP R/3 Logon screen( R/3.4.7) to "Forgot the Password"

    HI
    We wanted to add a new option( Forgot password option) on the SAP Logon screen to Change password when they forgot the password.
    But the user exit EXIT_SAPLSUSF_001 only triggers after the Logon.
    *Our Current SAP Version is SAP R/3 4.7
    Is there any other way, which allows,
    1. add a button/ menu option on R/3 LOGON screen to include :"forgot apssword" option.when preseed/selected, it has to execute some piece of  code( our own)  with validation to change the password.
    OR. is it possible to add an hyperlink next to password, and when pressed to execute /call a BSP(??) application to change the password in R/3. ?
    Thanks.

    Hi,
    I think you can try with  GuiXT script.
    Thanks,
    Anitha A

Maybe you are looking for

  • Purchase order field in Cash Journal

    Hi, We want to post expenses with reference to Purchase order in Cash Journal. Purchase order field is not available in the Cash Journal. How to update the purchase order field in Cash Journal. Regards, Azeem

  • ArrayList nested iterators

    How do I clone an Iterator so that I can use a nested iterator over an ArrayList? The problem with the code sample below is the inner iterator (Iter2) advances the outer iterator (iter) so that the outer iterator only examines the first cell in the A

  • How to filter tasks on the Creation date using the IWorklist API in Java

    Hi all, I'm currently developing a java gui application to display usertasks set by the BPM. I use the WorkList API to communicate with the TaskActionActionHandler. I only want the tasks that has a creation that is after a specified date. Therefore I

  • Limit to java?

    Hi all, I'm currently working on a project where I need to sort through (literally) hundreds of thousands of images. Basically, my program opens a folder, and loops through it - looking for the date modified of each image - takes the image out of the

  • Contract with reference to purchase requisition

    Hi! I have this situation: I want to creat a contract with reference to a purchase requisition and I'd want to divide the quantity of the purchase requisition. For exemple: I created a purchase requisition with 100 quantity. Now I'd like to creat a c