Advanced Table Multiple Selection View Attribute Type

Hi,
I have an advanced table with multiple selection. The multiple selection is associated with a view object attribute that is of type "String". In the create mode, the view attribute stores "Y" for the selected rows. But in the update mode, when I try to initialize the VO from the DB table, the multiple selection checkboxes are not selected for the rows where the DB value of the associated attribute is "Y". Somebody told me that if I specify the type of the DB attribute associated, to Boolean (and also the view attribute as Boolean), then this problem wouldn't occur. Is that correct or I must be doing something else wrong?
Thanks,
Amit

Hi Pratap,
It's quite simple actually. I mean the problem defintion :-) (not the solution)
I have a table with multipleselection. Initially the user does a "Select All" and the data is committed to the DB.
Once committed I don't want the user to change the selection, hence I need to hide the checkbox ( there is no way to make it read only).
To do this, I make the multipleselectionbean as rendered=false. But when the page is committed again, the row selection is getting changed back to "N" for all rows.
Now if I don't hide the multipleselection bean, the checkboxes appear as selected and the commit doesn't change the value to "N".
Hope the problem is clear now.

Similar Messages

  • Advanced Table Multiple Selection

    Hi,
    I have created a advanced table under query bean with multiple selection feature.After querying the advanced table bean When i select the row in the table and click on another button i have writtten a logic in process from request to select only those rows selected in table ,but the view attribute of select check box is retuning null is there any way to identify the rows selected

    Use this code in AMImpl. It will definitely work. I have tried. Don't forget to create a Transient Attribute of Type String [[here transient attr is Select]] in the VO.
    public void selectFlag()
    System.out.println("In the selectFlag");
    SombitTestVOImpl vo = (SombitTestVOImpl)findViewObject("SombitTestVO1");
    if (vo != null)
    Row[] arow = vo.getFilteredRows("Select", "Y");
    System.out.println("Row count is"+ arow);
    if(arow != null && arow.length > 0)
    for(int i=0; i<arow.length; i++)
    System.out.println("Value of i is"+ i);
    String Job = (String) arow [].getAttribute("Job"); // here you have to write arow followed by i in square bracket
    Date NotifyDate = (Date) arow [[i]].getAttribute("NotifyDate"); // here you have to write arow followed by i in square bracket
    System.out.println("Value of Job is "+ Job);
    System.out.println("Value of NotifyDate is "+ NotifyDate);
    Cheers
    Sombit :)

  • How can i select view attribute in a method

    hi how can i select view attribute in method and pass that attribute to procedure
        public void DeleteAgr(Integer agrid) {
                     ViewObject svo = this.findViewObject("AGR");
                     //select current view id from agr and link id with agrid          
                    callPerformSdmsLogon("SMS_FORM_TO_ADf.delete_agr(?)", new Object[] { agrid });
    }Edited by: Tshifhiwa on 2012/06/30 1:01 PM
    Edited by: Tshifhiwa on 2012/06/30 1:22 PM
    Edited by: Tshifhiwa on 2012/06/30 1:24 PM

    hi i use your sample but now am geting this errror (oracle.jbo.JboException) JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
    ----- Level 1: Detail 0 -----
    (java.lang.NullPointerException) null check the code below
                              public String getCurrentagrid(String currentagrId) {
                            if (currentagrId != null && currentagrId.length() > 0) {
                                ViewObjectImpl agrVO =
                                    this.getAGR1();
                                if (agrVO != null) {
                                    Key key = new Key(new Object[] { currentagrId });
                                    //Searching for the row with key
                                    //getRow(key) will search in the cache which contain atmost
                                    //2000 records Becoz the MaxFetchSize of EmpVO is 2000
                                    AGRRow agrRow =
                                        (AGRRow)agrVO.getRow(key);
                                    //if the record with key is not present in the cache
                                    if (agrRow == null) {
                                        //Searching for the row with key in the DataBase
                                        //findByKey() searches in DB
                                        Row[] agrRows = agrVO.findByKey(key, 1);
                                        if (agrRows != null && agrRows.length != 0) {
                                            //agrRows = (AGRRow)agrRows[0];
                                    if (agrRow  != null) {
                                        //currentagrId = (String)agrRow.getAttribute("id");
                                        //agrVO.executeQuery();
                                        //agrRow = agrVO.first();
                                        callPerformSdmsLogon("SMS_FORM_TO_ADf.delete_agr(?)", new  Object[] { currentagrId });
                            return currentagrId ;
                        }Edited by: Tshifhiwa on 2012/07/01 10:51 AM
    Edited by: Tshifhiwa on 2012/07/01 11:38 AM

  • I am unabel to select all rows in advance table using Select All option

    Hi all ,
    I am unable to select all the rows in advance table . Select All option in advance table selects all rows present in working page but doesnt select the rows which we get by clicking next button ... i am having a requirement to select all the rows with a single click on select all , is it possible ..
    Plz help
    Thanking you all

    Hi,
    I'm using an adf table but i don't want to have the "Select All" and "Select None" options above the table. Does someone know how i have to remove those links?
    Or is there indeed a solution to override the methodes of those links?
    Message was edited by:
    Alexander

  • Error in table binding (Select an attribute of type string)

    Dear All,
    I'm doing the <i>TUT_FLIGHTLIST</i>example of the webdynpro. Now i'm struck at the step of Table Binding. <b>System says that error for UI element...select an attribute of type string.</b>. Please suggest.
    Thanks,
    Anup.

    Hi,
    May be you trying to bind TextView UIElement in table to a contextAttribute of type other than "String".
    Please change the UIElement type.
    Regards, Anilkumar

  • Storing Data in Context from a table (multiple selection)

    Hi,
    I have created a node called cauverynode, which contains cauName and cauClient as its attribute. I have bound that node with the table. Now i have to store the selected clients into a context. How can i do that? Please help me out. i am unable to store the clients in a string context. Kindly solve it. Below is the code, which will store the selected item and put into a string variable.
    public void supplyCauveryNode(IPrivateSampleComponent.ICauveryNodeNode node, IPrivateSampleComponent.IContextElement parentElement)
    //@@begin supplyCauveryNode(IWDNode,IWDNodeElement)
    IPublicSampleComponent.ICauveryNodeNode cauNode =
    wdContext.nodeCauveryNode();
    ArrayList selectedcauClients = new ArrayList(cauNode.size());
    for (int i = 0, n = cauNode.size(); i < n; ++i) {
    if (cauNode.isMultiSelected(i) || i == cauNode.getLeadSelection())
    selectedcauClients.add(cauNode.getElementAt(i));
    String strSelcaucli = null;
    for (int i = 0, n = selectedcauClients.size(); i < n; i++) {
    strSelcaucli = strSelcaucli + selectedcauClients.get(i);
    wdContext.currentContextElement().setStrCauveryClient(strSelcaucli);
    //@@end
    Multiple selected data is been stored in this selectedcauClients arraylist, which is not working.  Kindly help  me out.
    Thanks & Regards,
    Dhana

    What is the following code supposed to do?
    String strSelcaucli = null;
    for (int ix = 0, n = selectedcauClients.size(); ix < n; ix++) {
    strSelcaucli = strSelcaucli + selectedcauClients.get(ix);
    wdContext.currentContextElement().setStrCauveryClient(strSelcaucli);
    I guess you want to create a string containing the names(?) of all selected elements.
    Then you should use something like
    StringBuffer sb = new StringBuffer();
    for (Iterator it = selectedcauClients.iterator(); it.hasNext(); )
      ICauveryNodeElement e = (ICauveryNodeElement) it.next();
      sb.append(e.getName());
      if ( it.hasNext() ) sb.append(",");
    String csv = sb.toString();
    This gives you a comma-separated list of the names of the selected elements.
    Armin

  • Talent search: advanced search multiple selection

    Dear Guru's
    We have setup the TREX and are using the advanced search for talent management. Everything is working fine except if we use the multiple selection option for a field. We have definied our own search field to search for (a range of) salary scale. However if we use the multiple selection and  try to search for e.g. range 05 till 07 the engine only searches for the 05 value and not for 06 and 07. This also appears using  ESH_TEST_SEARCH and also appears within SAP fields such as organizational unit etc.
    We are on SAPBASIS SAPKB70210
                    SAPHR      SAPKE60460  
    Any suggestions ?
    Kind regards Stephan

    Hi Stephan,
    It looks like you're on 604 SP 60 but it's component EA-HRGXX that is important to check. These SAP Notes are useful to implement for the Advanced Search and do cover some of your symptoms.
    1548337 - Search: Enabling multiple selection (EHP 4)
    1550930 - Search: Various corrections for the advanced search
    1561778 - Search: Adding combination in an MV dialog box
    1561031 - Search: Various corrections for the advanced search #2
    Best regards,
    Luke

  • Creat View from Multiple tables , Multiple Select

    Hello  Everyone ,
    I have a question and am not sure if this the correct forum to post it .
    I have two table studentTable and CourseTable which is each student  take more than one course . 1:M
    for example Student1 take 2 courses (C1 ,  C2).
    Student2 take 3 courses (C1,C2, C3).
    I need to create a table/View that contain student information plus all the courses and the score for each  course in one row.
    for example
    Row1= Student1_Id ,C1_code ,C1_name  ,C1_Score ,C2_code,C2_name ,C2_Score
    Row2=
    Student2_Id,C1_code,  C1_name,C1_Score,C2_code ,C2_name ,C2_Score ,  C3_code,C3_name,C3_Score
    and since Student 1 just took two courses  , I  should enter NULL in 'Course 3 fields'
    My Struggle is in the insert  statement
    I tried the following but it show an error
    Insert Into  Newtable
    ( St_ID, C1_code,c1_name, C1_Score ,C2_code  ,C2_name,C2_score,C3_code ,C3_name,C3_score)
    Select
    (Select St_ID from  StudentTable)
    (Select C_code,c_name,c_Score
    from  Coursetable,SudentTable
    where course.Stid =Studet.stid)
    (Select  C_code,c_name,c_Score
    from course ,student
    where course.Stid =Studet.stid  ),
    (Select C_code,c_name,c_Score
    from course ,student
    where  course.Stid =Studet.stid );
    I'm fully aware that the New table will break  the rules of normalization ,but I need it in this way for specifc purpose.
    I tried  also the PIVOT BY functionality but no luck with it .
    FYI , I'm not  expert in using SQL Syntax , I just know the basic.
    I will be great full for  any helpfull suggestions to try ,
    thank you very  much.

    First Table is Member table which Represent
    Students Information
    .The fields in this table are
    member_sk (PrimaryKey), full_or_part_time, gender, age_at_entry, age_band_at_entry, disability, ethnicity,
    widening_participation_level, nationality
    Second Table is Modules table which include
    the Courses' scores that Student took .
    The fields in this table are
    Module_result_k(Primary Key), member_sk(Foreign key to connect to Member table), member_stage_sk
    ,module_k(Foreign key to connect to Module table), module_confirmed_grade_src, credit_or_result
    Third Table is
    AllModuleInfo which is include
    general information for each course .The fields in this table are
    Module_k (Primary key), module_name ,module_code, Module_credit, Module stage.
    The New table
    that I will create has the following fields
    member_sk (PrimaryKey), full_or_part_time, gender, age_at_entry, age_band_at_entry, disability, ethnicity,
    widening_participation_level, nationality 
    " This will be retrieved from Member table"
    Also will include
    Module 1_name ,module1_code, Module1_credit, Module1_ stage, member1_stage_sk
    , module1_confirmed_grade_src, credit1_or_result
    Module 2_name ,module2_code, Module2_credit, Module2_ stage, member2_stage_sk
    , module2_confirmed_grade_src, credit2_or_result
    I will repeat this fields 14 times which is equal to Maximum courses number 
    that any of the students took.
    //// I hope now my questions become more clear

  • Af:table multiple select getRowData returns null

    Hi everyone,
    i've a strange situation with an af:table component. Let me explain from the start..
    This table is fulfilled by a bean provider(taskmonitorlist) with a method that returns an ArrayList<Task> list.
    Automatically the table renders the results in a proper way. The table is provided with one selectionlistener method present in a backingbean(that is not the provider).
    This is the method :
    public void selection_Method(SelectionEvent event) {
    RichTable t = getT1();// (RichTable)event.getSource();<-- this is a test
    selectedRows = t.getSelectedRowKeys();
    //Store original rowKey
    Object oldRowKey = t.getRowKey(); <-- in according with http://jobinesh.blogspot.com/2010/02/common-mistake-while-iterating-through.html
    try {
    pb2.getChildren().clear();<-- this is not important:pb2 is a panel box, outside the table, in which i render some buttons at runtime
    if (selectedRows == null) {
    return;
    if (selectedRows.size() == 1) {                                           
    Iterator iter = selectedRows.iterator();
    if (iter != null && iter.hasNext()) {
    Object rowKey = iter.next();
    t1.setRowKey(rowKey);
    Task task = (Task)t.getRowData();
    //row details
    ot2.setValue(task.getSystemMessageAttributes().getProtectedTextAttribute12());
    ot3.setValue(task.getSystemMessageAttributes().getProtectedTextAttribute15());
    ot4.setValue(task.getSystemMessageAttributes().getProtectedTextAttribute16());
    pb2.getChildren().addAll(addCommandsAction(task));
    } else {
    t1.setRowKey(oldRowKey);
    Ok. The strange thing is : when i select a row that is > 11(rowkey>11) these instructions have these values:
    selectedRows.size() = 1 <- this is what i expected to have
    Object rowKey = iter.next();
    rowKey = null!! <-WHY???????
    Why the .next() is null? if a select a row < 12 everything is allright.
    this is the jsf table component:
    <af:table value="#{taskmonitorlist.dataModel}" var="row"
    immediate="true" rowBandingInterval="0"
    rowSelection="multiple" columnSelection="none"
    columnBandingInterval="0" displayRow="selected"
    binding="#{backingBeanScope.backing_monitor.t1}" id="t1"
    summary="table data" disableColumnReordering="true"
    inlineStyle="height:300px; width:1190px;margin-left:42px; margin-top:10px;"
    selectionListener="#{backingBeanScope.backing_monitor.selection_Method}"
    clientComponent="true">
    <af:column headerClass="columnHeaderBig" sortable="false"
    headerText="Monitor" align="center" id="c12">
    <af:column sortable="false" headerClass="columnHeaderNormal"
    headerText="Titolo" id="c5" width="265">
    <af:outputText value="#{row.title}" id="ot6"/>
    </af:column>
    <af:column sortable="false" headerClass="columnHeaderNormal"
    headerText="Numero Pratica" id="c7" width="110">
    <af:outputText value="#{row.systemMessageAttributes.protectedNumberAttribute1}"
    id="ot9">
    <af:convertNumber integerOnly="true" groupingUsed="false"/>
    </af:outputText>
    </af:column>
    </af:column>
    </af:table>
    having used a bean as a provider i do not have a data control nor a view object.
    Any clues?
    i'm using Oracle JDeveloper 11g and Oracle Application Development Framework (ADF) 11g 11.1.1.3.0
    thanks in advance
    Edited by: 838382 on 21-feb-2011 4.01

    Hi,
    you set "rowSelection="multiple" but in your code you check for
    if (selectedRows == null) {
    return;
    if (selectedRows.size() == 1) { ...}
    This will cause a problem when users perform multi row selection
    Frank

  • View Attribute Types shows only Java Types

    Hi,
    when I edit an attribute of a view, normally I can choose it's data type,
    containing Java Types: "BigDecimal", "Integer" ....
    and Oracle Types: Number, Date etc.
    But after having reinstalled the Jdeveloper, the drop down box only shows
    the Java types and the oracle types are missing. I can still enter the FQDN ("oracle.jbo.domain.Number"),
    but when it comes to the View Criterias I cannot choose the operater "Less or equal than", it
    shows me 4 operators only "Equals", "Does not equal", "Is blank" and "Is not blank".
    It seems to be related to the settings of this application because when I open another application (with the
    same Database-Connection), then the oracle types are available.
    Does anybody know why the oracle types are not choosable any more and how to
    reinstall them in this application.
    jdeveloper 11.1.1.4.0 (Build JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923)
    Thanks in advance
    Yves

    Hi Arunkumar,
    yes, this shows "Java" for Type Map instead of "Oracle". But I cannot change it, because the drop down box
    is disabled.
    Anyway, I think my installation of Jdev is buggy, because in the resource palette I cannot add any new connections.
    When adding any DB-Connections (and it shows "success") it won't show up in the resource palette window.... it just
    remains empty...
    Thank you
    Yves

  • [Urgent] Issue with Selected rows in Advanced table

    [I have searched archive and found lots of mails on same issue but none were conclusive so i am asking this again]
    Hi All,
    I have created an advanced table and i want to have functionality of deleting selected rows.
    For implementation of this functionality, i have created a selectflag transient attribute [varchar2] and linked it to multiple select item of Advanced table but the table always returns null for selectflag attribute irrespective of row being selected or not.
    One thing i have noticed is that i can't supply 'checked value' and 'unchecked value' property in advanced table multiple select item. Is that the issue?
    Can anybody please guide, its quite urgent.
    Regards
    Lokesh

    Hi Reetesh,
    Thanks for the reply.
    Yes, you are right i am using same AM at 2 different places.
    Let me just elaborate a little about my implementation:
    I have a Page layout region and within this page layout, i have a query bean which performs results based search.
    Within this query bean, i have added an Advanced table within that query bean to display the results.
    Now coming to multiple AM issue:
    1. Page Layout region must have one AM or its an error.
    2. If i donot add an AM to advanced table, it doesn't return rows.
    So do i need to have 2 diferent AM's for this implementation?
    Regards
    Lokesh

  • Urgent::Issue with advanced tables....

    Hi
    i am new to OA framework
    i have view instance (associated with a custom table..i want to insert data into this table using advanced table)with X view attributes..
    among them one is primary key.i set that using a sequence value..
    rest all.. i made them as columns of an advanced table..
    two among the above are form values..
    now i added a footer for adding a row in advanced table region...
    when i click on the add another row ...i am getting this error...please check it...i am stuck here since long time..
    Error: Cannot Display Page
    You cannot complete this task because one of the following events caused a loss of page data:
    * Your login session has expired.
    * A system failure has occurred.

    i added this code in my controller....
    if ((tableBean.getName().equals(pageContext.getParameter(SOURCE_PARAM)))
    && (ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))) {
    am.invokeMethod("createRecordInv");
    and in my am i wrote this..
    public void createRecordInv()
    try
    ARTransactionLineVOImpl vo = getARTransactionLineVO1();
    if (!vo.isPreparedForExecution())
    {   vo.executeQuery();     }
    if (vo != null)
    vo.setMaxFetchSize(0);
    ARTransactionLineVORowImpl row1 = ( ARTransactionLineVORowImpl)vo.createRow();
    if (vo.getFetchedRowCount() == 0)
    vo.insertRow(row1);
    else
    { vo.insertRowAtRangeIndex(vo.getFetchedRowCount(),row1); }
    row1.setNewRowState(row1.STATUS_INITIALIZED);
    OADBTransaction transaction = getOADBTransaction();
    Number CdArScheduleId = transaction.getSequenceValue("CLE_CD_CASH_DOC_AR_INVS_ALL_S");
    ARTransactionLineVORowImpl TransDetailsVORow = (ARTransactionLineVORowImpl)vo.getCurrentRow();
    TransDetailsVORow.setCdArScheduleId(CdArScheduleId);
    catch(Exception ex)
    { ex.getMessage();  }
    i am getting NULL POINTER EXCEPTION.....
    i set some of the values in advanced table prgramatically later using PPR...
    is it ok....
    just look into this n let me know if im wrog some where....

  • Multiple Rows Selection In Advance Table

    Hi All,
    I have a requirement to select multiple rows in advance table.After selection these rows they get added to the record list of another page on click of seeded submit button.This is my custom region.And this functionality is working for seeded region.
    I have added multiple selection component in advance table component.
    How should I make this functionality work for my custom region using the seeded submit button.
    Regards,SHD

    Hi,
    After selection these rows they get added to the record list of another page on click of seeded submit buttonon the click of submit button save the data to the table from where u are getting the data for the other page....Once this data get saved to the table, will definitely shows up in next page.
    Regards,
    Gyan

  • IRecruitment - custom page based on selected row in advanced table

    HI,
    We are implementing an addition to iRec. From the vacancy search page I have added an extra image column called worklog to the advanced table. Within the attributes I have set the view instance and and view attribute to
    View Attribute VacancyId
    View Instance IrcVacancyVO
    However this value does not get passed across. I have even called the image ID VacancyId in the hope that this value pair would be posted to the custom app I have written.
    I know this is a pretty low tech question on here, but does anyone know how I can pass the id of the selected row acroos to my custom page?
    TIA,
    Simon

    Hi Simon,
    In OATables we can not get the handle of current row.
    The alternate solution is to call an AM method, execute the method and get the value from the VO row. Return it back to CO and then you can call your new page from the Search page in iREC.
    it should work. Let me know if you are facing any problem.
    Thanks
    Anoop

  • Recalculate Button - Advanced Table

    I have an Advanced Table with 3 VO Attributes Quantity,Unit Price (Based on EO) and Line Total which is product of Quantity and Unit Price. These 3 are shown in the Advanced table region, the first 2 as message text and the last one as message Styled Text since it's a calculated field. Now there is Standard Recalculate Total button as provided by Advanced Table bean. On Entering the new value in Either Quantity/unit price and pressing the total button at the button, the total for these columns gets refreshed. I actually want the total for (Lines Total) to get refreshed whenever either of Quantity or unit price is changed and Recalculate Button is pressed...It's not happening.
    IT does gets refreshed when i navigate to the other page and come back...or if i save the data to DB and revisit the page...but it doesn't get refreshed instantly..on pressing the recalculate total button after modifying either of 2 fields.
    I have tried executeQuery for the VO but of no avail.
    Can someone please help.
    Thanks
    Ravi.

    Can someone please help.. ?

Maybe you are looking for

  • Crystal Reports 9 and Java

    I have a crystal report that I've done that has a lot of parameters. I want to use java to make a more user friendly interface to enter in the parameters. For example, the user needs to be able to filter by date, stock number, vendor, etc. I'm not a

  • Please HELP on Button Click. URGENT Folks.!!!

    Folks, I need some very URGENT help. When I click a Button,how do I associate this Button clicked with a particular Key? I am reading data from a Hashtable in the foll.format Monday Data [ More Info] Tuesday Data [ More Info] where : Data to display

  • Account Payables with Procurement data query

    Hi Gurus,          Anyone who developed reports on a query of Account Payables with Procurement data.. the sources of fields are from R/3....          Can you provide me with the business content or the datasources you use? Thanks.. Irish

  • Voice control

    hows do you turn voice control off my iphone 4 because my centre button isnt working but keeps going onto voice control and ringing people even when not on my phone please help!!

  • ESW: No link for SRM / EU5 in the  ES Workplace Homepage?

    Hello , I have registered into ES Worplace some time back and accesssed the SRM 7.0 then. I have re-registered today and find that access information to EU5 is not provided and also the access link to SRM backend is not in home page. Is the SRM acces