Get the current item in advance table by clicking button

hello friends,
i have an urgent requirement that...
1) i have a search page, when i click the go button all the search results should populate into table region.
2) every row having username, firstname,lastname,email ...etc. and one disable user button
3)suppose user can click any row and click disable user button that user should be disable by calling Oracle Api
here my code everything is ready, i am strucking to get the username from row...and then paas it to the oracle api
if(pageContext.getParameter("DIsableUser")!=null)
OADBTransaction txn =am.getOADBTransaction();
CallableStatement callablestatement1 = txn.createCallableStatement("begin FND_USER_PKG.DISABLEUSER(?);end;",1);
System.out.println("procedure1 is:"+callablestatement1);
try
callablestatement1.setString(1,UserName);
callablestatement1.executeUpdate();
callablestatement1.close();
txn.commit();
catch(Exception e)
throw new OAException(e.getMessage(),OAException.ERROR);
//throw new OAException("POS","MODPOS_SUPPLIER_EXIST");
very urgent...can any one give some solution.
Thanks
krish.

Anand, thanx,
no luck...
if("update".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
String userName="";
if(rowReference != null)
PosUserAdminVORowImpl vorowimpl = (PosUserAdminVORowImpl)am.findRowByRef(rowReference);
userName = vorowimpl.getUserName();
System.out.println("print username"+userName);
OADBTransaction txn =am.getOADBTransaction();
CallableStatement callablestatement1 = txn.createCallableStatement("begin FND_USER_PKG.DISABLEUSER(?);end;",1);
System.out.println("procedure1 is:"+callablestatement1);
try
callablestatement1.setString(1,userName);
callablestatement1.executeUpdate();
callablestatement1.close();
txn.commit();
catch(Exception e)
throw new OAException(e.getMessage(),OAException.ERROR);
//throw new OAException("POS","MODPOS_SUPPLIER_EXIST");
where update is firepartial event.when i clcik disableuser button below error poped out on page
ORA-01403: no data found ORA-06512: at "APPS.FND_USER_PKG", line 180 ORA-06512: at "APPS.FND_USER_PKG", line 1315 ORA-06512: at "APPS.FND_USER_PKG", line 1616 ORA-06512: at line 1
let me know you find any thing issue in above code.
Thanks
krish.

Similar Messages

  • Setting the current in an ADF table via click

    Hi,
    I have created a HTML table in a jsp by dragging a DataControl from the DataControl Palette. Can I set the current row by clicking a table row?
    Thank you for any Information!
    Simon

    hi,
    take a look at this thread
    how to get a pagination dropdown inside an ADF Faces Rich Client Table ?
    Timo

  • Is there a way go get the item number of the current item?

    In an item with multiple instances: Is there a way to get the item number of the current item? If for instance, I am on the 3rd item, is there some kind of “GET CURRENT RECORD NUMBER” built-in that would return a ‘3' to the program?
    Thanks
    Edited by: WayneFMcKinstry on Apr 9, 2010 10:50 AM

    If i am getting you correctly that in tabular item you want to know the current record or current item you can try this...
    For current record
    :SYSTEM.CURSOR_RECORD;
    or
    :SYSTEM.CURRENT_RECORD;for current item
    :SYSTEM.CURSOR_ITEM;-Ammad

  • Display the current item in the list without advancing the iteration using

    This is my directions.
    Display the current item in the list without advancing the iteration using only iterator methods.
    I can't seem to figure this one out when the only methods available are hasNext();, next();, hasPrevious();, previous();, add();, remove();. and set();, and nextIndex();. Can someone please give me advice on this one?
    Thanks a bunch!!!!

    After thinking briefly about an ugly megillah that would detect whether or not you've ever called Iterator.next(), which is what is required for a bulletproof solution, I've decided after looking at the documenation that in fact the problem is not valid.
    It's as simple as this: the Javadoc says 'a ListIterator has no current element'.
    Tell your professor.

  • How to get current row from advanced table

    Hi,
    I have the following code to pick the value of columnA from one of the columns of an advanced table:
    OAViewObject vo = (OAViewObject)am.findViewObject("AAALineVO2");
    if (vo != null)
    OARow vorow = (OARow)vo.getCurrentRow();
    String ColA = (String)vorow.getAttribute("ColumnA");
    String message = ColA; //to throw message so i can verify the value of ColumnA
    throw new OAException(message, OAException.INFORMATION);
    }It's picking up the first value of ColumnA of the first record correctly, however when I add a new row, it's not picking up the value of columnA anymore.
    What am I doing wrong?
    Thanks in advance,
    N

    Try with this:
    import oracle.apps.fnd.lookups.server.LookupCodeVORowImpl;
    public void aaa (String row)
        LookupCodeVORowImpl laborcreateeovorowimpl = (LookupCodeVORowImpl)findRowByRef(row);
    }Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to find the sum of an advanced table column?

    Hi All,
    Good Morning..
    I have requirement where i need to calculate the sum of a column in an advanced table.and i need to put that value into some other field.
    i am doing customization so i can't touch the Standard page properties.so i need to achieve it through Pro-grammatically..
    my column name is unit price in the advanced table region.so i need the code to calculate the sum of the unit price.
    Thanks in advance
    Bharat

    Hi Bharat,
    No need for Programatic way as Advanced Table already provides this facility.
    The following steps describe how to enable Totaling for a column in the footer of an advanced table.
    Step 1: In the Structure pane of OA Extension, select the column container for which you want to enable Totaling Any column except for the first column can be totaled. Set the Total Value property for this column container to True.
    Step 2: In the Structure pane, select your advancedTable region and choose New > footer from the context menu. OA Extension creates an advancedTables Components folder containing a footer named child, that contains a tablefooter container (labeled tableFooter1).
    Step 3: Select the tableFooter container and choose New > total from the context menu. OA Extension creates a tableFooter Components folder containing a total named child, that contains a new totalRow item as shown in the figure below.
    Please let me know if you are still unable to get the Total Column
    HTH,
    Regards,
    Syed.

  • Error-Cannot set DISPLAYED attribute of the current item DUMMY.VIEW

    HI ALL,
    Im my form, I have three BLOCKS
    1) CTL(Manual Data Block)
    2) DUMMY(Manual Data Block)
    ITEMS 1) msg 2) <view> 3) <cancel> 4) <Exit>
    3) Audit Trial Log(Database Data Block)
    ITEMS All Database columns of a table Audit_Trial_Log
    CANVASES 1) CANVAS3------Block CTL---window1
    2) New_Entries---Blocks Dummy and Audit Trial Log--New_Entries
    In CTL block I have button <VIEW>. On when-Button-Pressed trigger I am setting "VISIBLE' properties false for items of datablock AUDIT Trail LOG and also for item of datablock DUMMY excluding for <VIEW> and <Cancel> buttons.
    when-Button-Pressed trigger of <View>, I have done reverse setting i.e. previously visible items to invisible and vice versa. Also I am executing query on Audit Trial Log block. But when I click <VIEW> I get the following error
    FRM-41016: Cannot set DISPLAYED attribute of the current item DUMMY.VIEW Even execute query fails.
    Please help me......

    before setting a current item to invisible you must navigate to another item, which is visible

  • How to get the current filename and & or path

    How can I get the current path or filename?
    I didn't really find any answers in the net. this.path or app.path were suggested but I couldn't get it to work.
    Thanks in advance for your answer!
    Livecycle Designer ES 8.2.1.3144.1.471865

    Hi,
    event.target.path.toString();  will give the full path including the filename.
    event.target.documentFileName.toString();  will give the filename only.
    Good luck,
    Niall

  • How do I get my cell from a Advanced table to a OAMessageStyledTextBean?

    I have some validation logic that includes taht loop of my VO before I save. The loop works fine an I use RowSetIterator.
    I want to use pageContext.putAttrDialogMessage to show the message next to the field with the invalid value.
    The code below that I found does what's need on a regular form (no table):
    OAWebBean rootWebBean = pageContext.getRootWebBeaan();
    OAMessageTextInputBean textField = (OAMessageTextInputBean) rootWebBean.findChildRecursive("<<message styled text id>>");
    if(<<your error condition>>)
      OAAttrValException attrEx = new OAAttrValException(
        OAAttrValException.TYP_VIEW_OBJECT, // Just default it to ViewObject
        textField.getViewUsageName(),       // View Usage Name as null
        null,                               // The primary key as null
        textField.getViewAttributeName(),   // The attribute name
        value,                              // The attribute bad value which caused validation failure
        "FND",                              // Message application short name
        "ATTR_EXCEPTION_MSG");              // Message code
    pageContext.putAttrDialogMessage(textField, attrEx);
    {code}
    The issue I have is with this row:
    {code:java}OAMessageTextInputBean textField = (OAMessageTextInputBean) rootWebBean.findChildRecursive("<<message styled text id>>");{code}
    How can I get the current row-cell value to a OAMessageTextInputBean obejct?
    Thanks.
    Daniel                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Daniel, don't get disheartened. Every framework has its pros and cons and any new framework with which you start, it takes some times to learn and know its programming benefits. In your particular requirement, it can only be fulfilled if you are using EOimpl or VORowImpl, it can not be done directly in CO, AS your validation logic is at row level. Hence, if you are not using EO/VO, you have to use them in order to show error message on the particular UIX bean, and that the recommended approach. Thats the reason, why nobody before has such a requirement.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to get the current page URL

    HI All
    I am working in oracle apps 4.0
    I have one page called history in that i have one page item called Application url. My application id is 122 but its a copy of application 106
    How to get the current page url for the page item.
    Any steps should be help ful
    Thanks & Regards
    Srikkanth.M

    I'm not 100% clear on what the requirement is from the description, however it does sound like you are making things unnecessarily complicated.
    If you want permanent/ID-independent links then use application and page aliases.
    so here we used to display the url like this: <tt>{noformat}http://81.131.254.171:8080/apex/f?p=122{noformat}</tt>
    Do you mean that the URL is displayed like that? If so that doesn't seem particularly helpful. How is anyone supposed to know what it is?
    There are many ways to provide links in APEX&mdash;including lists and nav bars.
    Where the link is to another resource located on the same server (such as another page in the same app, or a different app in the workspace), relative addressing can be used, making it unecessary to include scheme, domain and port information in the URL. For example, if the page to be linked to has a page alias <tt>ABOUT</tt> in an application with alias <tt>UNITY</tt>, and the apps share an authentication scheme/cookie to permit shared sessions, then the link URL is simply
    f?p=UNITY:ABOUT:&APP_SESSION.

  • How to get the current logical system?

    Dear Abapers:
    I can't find the logical system value from the table SYST, pls tell me how to get the current logical system name, Thanks!

    Hi,
    Check with the table T000, the Logical system field name is LOGSYS.
    Regards
    Thiru

  • How to get the current transaction variant ?

    dear guru,
    could you please tell me how to get the current transaction variant?
    i tried the following method:
      DATA l_tcvariant TYPE tcvariant.
      CALL 'DY_GET_TX_VARIANT'
         ID 'VARIANT' FIELD l_tcvariant.
    but it failed.
    best regards.
    zj

    Try something like this
    DATA:  VARIANT LIKE SHDTVCIU-TCVARIANT.
      CLEAR VARIANT.
      CALL FUNCTION 'RS_HDSYS_GET_TC_VARIANT'
       IMPORTING
         TCVARIANT                     = VARIANT
    *     FLAG_CLIENT_INDEPENDENT       =
    *     RC                            =
    *   TABLES
    *     T_SCREEN_VARIANTS             =
    *     T_INACTIVE_FUNCTIONS          =

  • How to get the current date in a workflow

    Hey,
    Can anyone tell me how to get the current date while in a workflow?
    Thanks in advance.

    Here is how we did it, hope it helps
    <defvar name='locCalendar'>
    <new class='java.util.GregorianCalendar'/>
    </defvar>
    <defvar name='dateFormat'>
    <new class='java.text.SimpleDateFormat'>
              <s>MM/dd/yyyy</s>
         </new>
    </defvar>
    <defvar name='formatedDate'>
         <invoke name='getTime'>
    <ref>locCalendar</ref>
    </invoke>
    </defvar>
    <invoke name='format'>
    <ref>dateFormat</ref>
    <ref>formatedDate</ref>
    </invoke>

  • How to Get the Current Workitem id at runtime

    Hi All,
    I have a scenario, where request pending with a user who has already resigned the organization. The requirement is that we need to provide a report
    of the request and with whom it is pending with along with the workitem id with a forward push button.
    So that if the user identifies that a request is pending with someone he can click the record and press for the forward button and a pop-up to be showed where he can enter the userid to whom he needs to forward it.
    In this scenario can anyone tell me how to get the current workitem id at run time and to save it to a custom table.
    I tried with method before workitem execution, but here i am not getting the current workitem id.
    Can you please suggest a good solution for this.
    Thanks and Regards,
    Balaji

    Karri,
    I think i can explain you with an example.
    Here is my Scenario.
    A user has raised a Gate pass and it went to all approval's and got approved and the material is also sent out from the plant. Lets take the date as 1.1.2013 (A Warehouse person have done the checking and sent out of the plant).
    On 1.3.2013 some of the material has been returned and a material inward request has been raised and now the warehouse person has to do a inward checking and to sent it back for the initiator for the approval, but the warehouse person has resigned the organization on 1.2.2013, now the workitem is pending with the warehouse person who has already resigned.
    My scenario is once the material inward request is created and before the workitem is delivered to the warehouse person i need to get the workitem id and to store the workitem some where.
    So that in future if any warehouse dept head wants to forward the workitem which are lying in the person inbox who has already resigned he can do it via a report using this workitem id.
    So, can anyone help how to get the dialog workitem id before the workitem creation or execution. I tried with "method before workitem execution" but my break point is not triggering at this point.
    Thanks and Regards,
    Balaji

  • How to get the current year??

    Hi all,
    How to get the current Year??

    Hi,
    Current Year & month are available in table MARV.
    I hope this helps,
    Regards
    Raju Chitale

Maybe you are looking for

  • Print Apps won't print with C510a eStation. Prints thin line at top of page.

    My C510a eStation printer will not print using the Print Apps.  It just prints a thin line at top of page.  Everything works fine until I print. All other print functions work.  It prints from computer via WiFi.  It prints when I send an email to it.

  • System not booting keep rolling for hours

    I need help, my iMac mal-functioning. @ boot it will not boot to desktop, some 1 should pls help

  • DB_CREATE_TABLE

    Hi, Plz tell me how to create a database table using function module DB_CREATE_TABLE in ABAP Editor. I was tried it but raise an exception "PROGRAM_NOT_GENERATED". Plz if you have any solution share with me.

  • What is the impact of upgrading JMS client from 3 to 5?

    Hi, I'm new to JMS client. Recently, I was tasked to look into re-writing one of our old applications that was using JMS client 3.0. The company is going to upgrade all the existing JMS client from 3.0 to 5.0 and Sonic MQ from 4.0 to 6.1 Please advis

  • After I updated my iTunes to 7.7, my laptop keeps playing some music

    I completely have no idea what's going on with my laptop. I was so excited to update my iTunes to 7.7 and iPhone to 2.0. But after that, something weired happens. My laptop keeps playing some unknown music at regular intervals automatically. This nev