In Table contol,add and subtract button getting disabled.

Hi ,
My requirement is that in table control when user adds  more than four rows,error message will be displayed i.e maximum of 4 rows allowed.
But after error message is displayed ,add and subtract button is disabled in table control and I am  not able to remove the rows.
Any solution available on making add and subtract button active.
Regards
Nikhil

Hi
In PBO,
module status_100.
looop at itab with control tc.
endloop.
in program
module status_100.
describe table itab lines tc-lines.
if tc-lines = 0.
tc-lines = 4.
elseif tc-lines > 1.
tc-lines = 4.
endif.
endmodule.
here there is no way you will get more than 4 rows at any time.
instead of Error message you can give warning or information message. this will not disable your buttons.
Cheerz
Ram

Similar Messages

  • Row Level PPR in Advanced Table with Add More Rows Button

    <br>
    I have programmatically fired PPR event on MessageChoice. But it is in Advanced Table with
    Add More Rows Button. When the value is changed in MessageChoice I Show/Hide Custom LOV
    through SPEL like this ${oa.BioEmployeePVO.EmpManagerRender} .
    But it is <b>hiding the all the ROWS</b> not just the row where the value has been changed.
    I even tried with this code and get NULL for rowReference.
    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    In Processrequest()
    String pageName = pageContext.getRootRegionCode();
         Hashtable params = new Hashtable (1);
         params.put ("param1", pageName);
         Hashtable paramsWithBinds = new Hashtable(1);
        paramsWithBinds.put ("param2",new OADataBoundValueFireActionURL (mcb, "{$AttendeeType}"));
        mcb.setFireActionForSubmit ("empPositionChange", params, paramsWithBinds,false, false);
    In ProcessFormRequest() {
    if ("empPositionChange".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))   
          String rowReference = pageContext.getParameter("param2");
        //    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
         Serializable[] parameters = { rowReference };
          am.invokeMethod("handlePositionChangeEvent", parameters);
    <br>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    HI Kumar,
    Answer to your last post is "yes".
    Now to your doubt regarding the code:
    Hi Anna
    I am trying to understand your code.
    FireAction firePartialAction = new FirePartialAction("fireHideEvent"+(i/noOfTlaColSpan));
    HideImgBean.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR,firePartialAction);
    1. What is this i/noOfTlaColSpan ?
    :)Forget abt this in your case it should be the event name which u r firing and capturing the it in the PFR.
    Like FireAction firePartialAction = new FirePartialAction("YOurEventName");
    and in PFR u can capture tht as:
    if("YOurEventName".equals(pageContext.getParameter(EVENT_PARAM)))
    //your logic to invoke AM method
    2. I believe this HideImgBean would be MessageChoice for me?
    :)Yep ur right
    3. This brcdOhInventoryViewUpdateVOImpl would be the Custom PVO(Extending Seeded Base VO)
    I create by adding the transient attributes?
    :)Yep ur right
    4. I cannot understand this code. Could you explain.
    :)Please look at my comments in some of the lines .I have explained wht i am doing
    if(updateIter==null)
    updateIter[0]= invViewVO.createRowSetIterator("updateIter");//This initViewVo should be ur custom VO object
    if(cnt>0)
    updateIter[0].setRangeStart(0);
    updateIter[0].setRangeSize(cnt);
    for(int i=0;i<cnt;i++)
    row = (brcdOhInventoryViewUpdateVORowImpl)updateIter[0].getRowAtRangeIndex(i);
    String selectFlag=(String)row.invokeMethod("getPartNumber");//This getPartNuber should be replaced by the Prim Key inoke methd of ur VO
    if(RowID.equals(selectFlag))
    //This is my logic to set the transient attributes based on the msgChoiceBean value ..u have to pass the value when u invoke this method
    if(reserveMethod.equals("BINARY"))
    System.out.println("In Binary");
    Boolean bVal= new Boolean("false");
    Serializable sr[]={bVal};
    Class []methodParamTypes = { bVal.getClass() };
    row.invokeMethod("setshowreservetxt",sr,methodParamTypes);
    Boolean bVal1= new Boolean("true");
    System.out.println("bVal1"+bVal1);
    Serializable sr1[]={bVal1};
    Class []methodParamTypes1 = { bVal1.getClass() };
    row.invokeMethod("setShowreservemsgchoice",sr1,methodParamTypes1);
    break;
    In my AM I am doing this. Am i doing right?:)Yep u r right
    BioPrescribersPVO is the custom VO(extending seeded base VO).
    public void handlePositionChangeEvent(String param)
    OAViewObject vo = (OAViewObject)findViewObject("BioPrescribersPVO");
    OARow row = (OARow)findRowByRef(rowReference);
    if (row != null)
    String position = (String)row.getAttribute("AttendeeType");
    if (("PRESCRIBER".equals(position)) )
    // BioEmpManagerRender is the transient attribute in BioPrescribersPVO.
    row.setAttribute("BioEmpManagerRender", Boolean.TRUE);
    row.setAttribute("BioPresManagerRender", Boolean.FALSE);
    else
    row.setAttribute("BioEmpManagerRender", Boolean.FALSE);
    row.setAttribute("BioPresManagerRender", Boolean.TRUE);
    } // end handlePositionChangeEvent()
    // Initializing the custom VO
    /*No need to initialize the VO because this is not a PVO(Propeties View object)
    U r just using the existing VO and tht vo shloud have a primary key.Tht way u can match the rowref u r getting with the actual row from the View object*/
    public void init()
    OAViewObject appPropsVO = (OAViewObject)getBioPrescribersPVO();
    if (appPropsVO != null)
    if (appPropsVO.getFetchedRowCount() == 0)
    appPropsVO.setMaxFetchSize(0); appPropsVO.executeQuery();
    appPropsVO.insertRow(appPropsVO.createRow());
    OARow row = (OARow)appPropsVO.first();
    row.setAttribute("RowKey", new Number(1));
    handlePositionChangeEvent("");
    } // end init()
    Thanks
    Anna

  • How do I add and subtract a device

    How do I add and subtract devices.

    Michael, thank you for taking the trouble to reply.
    Yep I can do that, with itunes on the screen putting a new cd in the drives gets a prompt that invites me to add the cd to itunes. Okay so far worked that out fairly early.
    BUT
    The question I asked was how do I now get then get that ONE cd onto my nano.....I do not want to sych everything just that one cd?
    AND
    If I subsequently decide that I want to delete that (or any other) ONE cd from the nano to make room for another....how do I do that?
    .....................In windows media player for instance you can select an option to display only the contents of the mp3 player, then you simply highlight the cd you want delete and delete it....poof by magic it disapears from the device freeing up space.....but the cd remains in windows media player...............Whereas in itunes if you select ....my ipod on the tool bar instead of simply getting a list of what is on that device....you get instead a list of everything that is in itunes.........and if you delete an item it goes from the itunes library but still stays on the nano itself...............crazy
    Itunes seems to me to be totally illogical.

  • How to zoom in model to add and subtract layer after a degree

    How to zoom in model to add and subtract layer after a degree

    Hi SionReaver.
    Here is a link to the webcam's support page. It includes the user guide and contact information if any issues arise.
    support page
    I hope this helps.
    -- Chauntain
    I work on behalf of HP.
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    Click the KUDOS THUMBS UP on the left to say “Thanks” for helping! .

  • Add and subtract summary group totals

    Looking for a way to add and subtract summary group totals in a report.

    I have my data grouped by account type then summarized.  Example
    have my data grouped by account type then summarized. Example
    acct. type amount
    51 $100
    51 50
    Summary $150
    61 $100
    61 100
    Summary $200
    70 $50
    70 50
    Summary $100
    Formula I want to make this formula 51+61-70 = GP
    I am trying to understand how to put the acct. type(51,61)  in the formula and insert in the report.
    Thanks for the help.
    Raald232

  • Using Tiscali Webmail with Firefox 6. If I try and delete an email the Ok and Cancel buttons are disabled and nothing happens, have to use F5 to take me back. IE8 works so is this a compatibility issue?

    Using Tiscali Webmail with Firefox 6. If I try and delete an email the Ok and Cancel buttons are disabled and nothing happens, have to use F5 to take me back. IE8 works so is this a compatibility issue?

    It appears OP solved the problem: [/questions/874744]

  • When i hit the back button, the web page can not reload ! and this button is disable ! I'm using Ubuntu 10.04 Lucid ! and I've just upgrade to firefox 4 RC. Sorry for my poor English skill !

    When i hit the back button, the web page can not reload ! and this button is disable ! I'm using Ubuntu 10.04 Lucid ! and I've just upgrade to firefox 4 RC. Sorry for my poor English skill !

    In Firefox 23 versions and later the keyword.URL pref is no longer supported and it is no longer possible to specify the search engine for the location bar via the keyword.URL pref.<br />
    The search engine that is used on the location bar and on the about:home page is the search engine that is selected in the search Bar on the Navigation Toolbar.<br />
    Current Firefox versions do not update the about:home home page until you refresh the page (future versions will do this automatically without a refresh) and that is what happens if you use the Back key.
    You can install the Keyword Search extension to specify with search engine to use for the location bar and which search engine to use for the about:home page via the Options/Preferences windows of this extension, accessible via the about:addons page.
    * Keyword Search: https://addons.mozilla.org/firefox/addon/keyword-search/

  • Draw lines and columns button was disabled

    hi friends,
    in my smartform template draw lines and columns button was disabled which results select pattern button also disabled. now i am unable to change any lines, can any one help me how to enable this button to change.
    thanks and regards,
    venkat suman.

    Hi
    I come to the same problem and google lead me here.
    Not the problem of Display/Change mode or authorization.
    I fix this problem as below:
    1) create a new smartform and create a template
    2) click the "Settings" button
    3) in tab General, check the "Draw Lines and Columns", click OK
    4) exit without saving
    5) now I can use the "Draw Lines and Columns" button
    but here when I click the Settings button again, the "Draw Lines and Columns" is unchecked.
    Hope this can help
    May some mentor give an explanation.

  • Examples of Add and Delete buttons in Forms

    Hello, I have group project and we are having a hard time finding examples of how to add and delete records.
    We have tried for the add:
    INSERT INTO order_line VALUES
    (:orders.o_id,
    :order_line.inv_id,
    :order_line.ol_quantity);
    COMMIT;
    And this for the Delete:
    DELETE FROM order_line      WHERE
    o_id = :orders.o_id
    AND inv_id = :order_line.inv_id;
    COMMIT:
    We are just looking for a generic example of how the code should look. Please ignore any errors I may have typed I copied it from a print off.

    Please ask this question in the Forms discussion area instead of the Database discussion area.
    Thanks.

  • GO and Clear button gets not null

    Hi
    I have created GO and Clear button on a same region
    both are type submit
    I have written some code in PFR()
    for clear button but when I click on GO but that code is also executing
    I dont know y its happening
    following is code
            if(pageContext.getParameter("clearBtn")!=null)//clear is the button Id of Clear...
                               OADefaultListBean orglead = (OADefaultListBean)webBean.findChildRecursive("AllOrg");
                               orglead.setListCacheEnabled(false);
                                OADefaultListBean orgtra = (OADefaultListBean)webBean.findChildRecursive("SelOrg");
                                orgtra.setListCacheEnabled(false);}

    newbie wrote:
    HI AJ
    I have written one sop
    pageContext.putDialogMessage(new OAException("value of Go button"));in clear button code
    when i click on go button its clear values but doesnt print that message
    but when I click on clear button it clears data and also print that message
    So that means clear button code is not firing when go button is clicked, there must be some other code that would be causing shuttle bean to be null.... Check your code again.Thanks
    AJ

  • Buttons getting disabled in INBOX page of ICWC

    Hi All,
    We are trying to add a new column in INBOX result view of ICWC, AuiItem.htm.
    Now for this we have inherited the standard ITERATOR class and created a Z class and wrote the code for fetching the data for newly created column.
    Now when we are replacing the object of the Standard iterator class with our own iterator class in .htm page, the buttons which are present in the page are getting disabled.
    But the data of the new column is getting populated.
    Has any one faced similar issue??
    Please reply with possible solutions
    Thanks
    Pranay

    Hello Pranay,
    I had the same problem.
    pay attention that there are couple of methods related to buttons that use iterator ( for example CL_CRM_IC_AUIITEMS_IMPL->CHECK_SELECTION line 32 ).
    There for if you change your iterator you shoud redifine those methods to use your new iterator,
    <b>There are more methods</b> that use the iterator and you should change them all (atleast only those that you need)
    Good Luck
    Eli Steklov

  • OSM task web client buttons getting disabled on submitting orders from creation task

    Hi,
               I am relatively new to OSM. I am facing a strange issue. After installing OSM 7.2 in my local machine I have deployed bb_ocm_demo cartridge which comes along with the design studio as a sample cartridge. After deploying the cartridge, I have assigned user to the work group from osm admin and placed an order. After entering data in the creation task, as soon as I am submitting the order by pressing the submit button, all the buttons(including the submit and delete button) are going to disabled mode(characterized by their blurred appearance). Those are preview, full preview, Process History, Change State/Status, Save, Add Remark, Exception.
    The order is not getting submitted and is continuing to remain in the creation task only. From the worklist, it is visible that the order is still in the creation process in Not Started with the creation task in accepted state.
    I would like to add a few more information. I checked the server logs and found the below error:
    'weblogic.kernel.Default (self-tuning)'> <oms-internal> <> <0000KAGhR_C5i^WjLxrI8A1I^uCz000001> <1385407331809> <BEA-000000> <cache.GenericTransactionManagerLookup: Failed to perform a lookup for [java:/TransactionManager (JBoss, JRun4)]>
    I am not sure whether it is relevant or not. It is not that this message props up every time I submit an order from creation task.
    I would also like to mention that prior to installing osm, I have carried out the below installation.
    1. Oracle Database 11g R2
    2. Oracle Database Patch 14828076
    3. Opatch 6880880
    4. ODAC 11.2 Release 4 (11.2.0.3.0) with Oracle Developer Tools for Visual Studio.
    5. jdk-6u37
    6. Oracle WebLogic Server 10.3.6
    7. Oracle ADF 11.1.1.5.0
    8. Oracle Enterprise Pack for Eclipse(12.1.1.1.0) (Design Studio)
    9. JBoss-Cache 1.4.1.SP12
    10. Saxon 9-1-0-7
    As a pre-requisite to OSM installation I have granted connect privileges to system with admin option, execute on SYS.dbms_lock to system with grant option, select on SYS.v_$parameter to system with grant option and select on SYS.dba_tablespaces to system with grant option.
    I don't have any clue how this issue is coming up. Any sort of help will be highly appreciated.
    Regards

    Pantelis;
    Are you using the same user-id in both the OM client and the Task client?
    Are all orders in question of the same order type?
    In the Task client, did you select one row per order or one row per task?
    I would be surprised if this had anything to do with it, but is this behaviour only exhibiting in the 2 node cluster or does it happen even when only 1 node is up and running?
    Brian.

  • In OO Alv toolbar, sum and subsum buttons are disable as default, WHY ?

    i want to enable sum and subsum buttons in alv toolbar. However, as default those buttons are disable. How can i solve ?

    i defined ref_table and ref_field for quantity field in fieldcat  such as  
    ls_fcat-ref_table = 'V03RB'.
    ls_fcat-ref_field = 'KWMENG'.
    so i solve it. thank you for your help.

  • The back and forward button stay disabled after upgrading to Firefox 4

    I upgraded to Firefox 4 and the back and forward buttons are never enabled. I see them, but they are not working.
    History works, recently closed pages work, bookmarks work.
    I disabled all addons, uninstalled FF4, deleted \Program Files\Firefox, re-installed, kept extensions disabled, removed all backups from bookmarkbackups, deleted places.sqlite and still nothing.
    What else can I do?

    Norton has a fix out. See: http://community.norton.com/t5/Norton-Internet-Security-Norton/Norton-Toolbar-5-5-incompatible-with-Firefox-4-RC1/td-p/411556/page/2

  • How to set Save and Apply button to disabled

    Hi all
    i need to disable the save and apply buttons according to some action the user is doing, when the user changes some LOV value the save button should be disabled
    the following code i am using is not working to disable the button,
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean) {
    String val = "";
    String message = "";
    int statusVal = 0;
    try {
    super.processFormRequest(pageContext, webBean);
    if ("empPositionChange".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM))) {
    OAMessageChoiceBean rGBean1 = (OAMessageChoiceBean)webBean.findIndexedChildRecursive("Status");
    if (rGBean1 != null) {
    val = (String)rGBean1.getValue(pageContext);
    statusVal = Integer.parseInt(val);
    if (statusVal == 1) {
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAViewObject vo1 = (OAViewObject)am.findViewObject("WOCreateUpdateVO");
    vo1.reset();
    if (vo1 != null) {
    vo1.next();
    OARow row = (OARow)vo1.getCurrentRow();
    String ReasonCode = (String)row.getAttribute("Attribute1");
    //message = message + ReasonCode;
    if (ReasonCode == null) {
    OASubmitButtonBean savebBean = ((OASubmitButtonBean)webBean.findChildRecursive("Save"));
    if (savebBean != null){
    savebBean.setDisabled(true);
    OASubmitButtonBean applybBean = ((OASubmitButtonBean)webBean.findChildRecursive("Apply"));
    if (savebBean != null){
    applybBean.setDisabled(true);
    catch(Exception exception){
    throw new OAException("Error in Staffing Query: "+exception, OAException.ERROR);
    please any one had this issue.
    any help??
    Regards,

    i am using this code in the processRequest
    public void processRequest(OAPageContext pageContext, OAWebBean webBean){
    super.processRequest(pageContext, webBean);
    OAMessageChoiceBean mcb = (OAMessageChoiceBean)webBean.findIndexedChildRecursive("Status");
    FireAction firePartialAction = new FirePartialAction("empPositionChange");
    mcb.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR,firePartialAction);
    as for tracking the error it is giving me nullpointerexecption on the OASubmitButtonBean savebBean = ((OASubmitButtonBean)webBean.findIndexedChildRecursive("Save"));

Maybe you are looking for

  • Problem with Bookmarks in Adobe Professional 9.3.2

    I recently upgraded to Word 2007 and Adobe Acrobat Professional 9.3.2. From the Bookmarks tab on the Acrobat PDFMaker dialog box, I need to select both headings and styles to create the bookmark hierarchy required for the PDF files. However, when the

  • Purchase order for KIT item

    Hi, my requirement is to raise Purchase order for KIT item.For Example-- For 1 Kit item A, including 1 table and 4 chairs. Define components (table and chair) for item A by using Bills of Material screen. In Order Management, when user orders 100 ite

  • Help to convert into SWF or Mp4

    I'm doing a website for a client who has an instructional video that needs to be cut into parts and saved as SWFs The dvd came as 3 files, 1 is the audio(mp3) the other is the video (Pal Version MPEG2-DVD.m2v)?????? and the other seems to be the file

  • Adrelink error: gnumake: Error 128

    Dear all, Platform: Windows2k3 Instance: Vision Version: 12.1.1 This is the test instance only. Concurrent manager was running fine on the same setup, as this is test instance today morning when i have started the same instance concurrent manager was

  • Test Drive OS X Server - VPN, Subnets, User Management

    Is there a place I can test drive osx server? I don't want to purchase expensive server os and hardware and find out it will not do what I want. What I want to do is setup VPN so road warriors can connect securely and surf the internet through the vp