10.1.3: How are client ids for elements in an af:table determined?

Hi all,
I have an af:table (let's say Departments) with some columns (let's say DeptName) is one of them, and (let's say) a 15-row range. Normally, modulo naming containers, the clientId of a particular DeptName field is of the form:
Departments:0_indexed_row_in_af_table:DeptName
So, for example, the DeptName field in the third row of the table will be
Departments:2:DeptName
The problem occurs when, due to, say, a data change and requery, a partially distinct set of rows appears in the table on refresh. Then, any old rows that reappear will keep their old clientIds, but new rows will get new numbers,starting with 15. So, if the refresh retains the first and third rows in the first and fourth positions, and retrieves new rows for the second and third position, the client IDs for the first four departments fields as they appear in the table will be:
Departments:0:DeptName
Departments:15:DeptName
Departments:16:DeptName
Departments:2:DeptName
If the data's completely new, the table will be rendered starting with Departments:15:DeptName.
My question: Is there any way to figure out, programmatically, what the client ID for a particular DeptName field will be, assuming that the table might have been refreshed with partially or completely new data an arbitrary number of times?
Thanks much for any help,
Avrom

Hi,
Try something like the following:
RichTable table = // Get the table component instance somehow;
int rowIndex = // Find the right row and get its INDEX in the ResultSet and/or data, not the row key
// Save row state
Object oldRowKey = table.getRowKey();
try
    table.setRowIndex(index);
    UIComponent field = table.getChildren().get(columnIndex).getChildren().get(0); // Get the field from column columnIndex
    field.getClientId(FacesContext.getCurrentInstance()); // Since setRowIndex was called, the id should be correct
finally
    // Restore state
    table.setRowKey(oldRowKey);
}The idea of rowKey vs. rowIndex is that rowKey is stable to ensure that a given row key is always the same row (very useful to avoid some strange issue with sorting), whereas row index change with the position of the row.
Regards,
~ Simon

Similar Messages

  • How are people searching for music now that the power search link is gone?

    How are people searching for music now that the power search link is gone?

    That info in my above post doesn't bring back Power Search
    I think this Discussion holds the answer https://discussions.apple.com/message/20451945#20451945
    Found it under iTunes U!  Don't know why the moved it from the main page but you will find it here.

  • How are we charged for mms?

    Does anyone know how at&t charges mms to our iphone accounts? Also, im sure an mms message is sent through data, how are we charged for that data because it doesnt show on my useage. Im just curious because I use alot of data as it is and im on an off network warning, so im not sure if I should be sending alot of mms messages.

    It is not from your data account. If you do not have a text plan you are charged $.30 for an MMS and $.20 for each SMS. If you have a plan for 200 messages per month then there is no charge for MMS or SMS up to that number. Check your plan either on the website or call them.

  • How are pictures in Photoshop elements 9 linked to program?

    I have 40,00 plus pictures shown in my elements program and since I bought and loaded Photoshop elements 9 (I previously had versions 3,4,5,6,7,8), I get the notice "searching for missing files" and can't use the program software for photo processing. I downloaded all my pictures from Windows 7 pictures on my computer and uninstalled Photoshop Elements 9 from my computer..
    When I reinstalled PE 9, my pictures were there even though I had eliminated them (I thought) from my hard drive and the problem of "searching for muissing file" still existed.
    How are my pictures attached to PE 9 and how do I eliminate that link and start all over with PE 9?
    Need help

    Ohboy 108Thanks for your suggestions and interest.I downloaded all my pictures to an external hard drive, cleared out my internal hard drive photos and now use my external hard drive as the storage and source.No problem with "Elements" constantly looking for lost files.
    Greg Date: Wed, 13 Jun 2012 16:46:55 -0600
    From: [email protected]
    To: [email protected]
    Subject: How are pictures in Photoshop elements 9 linked to program?
        Re: How are pictures in Photoshop elements 9 linked to program?
        created by Ohboy108 in Photoshop Elements - View the full discussion
    My guess is that you have solved the problem but if continues maybe this will help. I had a similar problem where pictures kept showing up in Organizer even though I had deleted the catalog and rebuilt it and even uninstalled and reinstalled PSE 9.  I solved it by checking under edit-preferences-files and making sure that the save location was correct.  I also changed the catalog location from the default.  I suspect that there was a registry entry pointing to the old file and/or catalog location.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4490681#4490681
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4490681#4490681. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Photoshop Elements by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How to show asterisk for required fields in a table row?

    Hi Folks,
    For showing the asterisk (*) for required fields in a form, I used to give required="true" for the component and surround the component with a af:panelLabelAndMessage for which I set showRequired="true". How to do this for a component in a table row. For a component in a table, there is no label per se. The required=true flag in the component shows proper error message saying that it is required but there is no (*) for that component.
    Thanks
    Vishal

    Table does not have any required attribute.But column has showRequired property .You can used this.If column has input text then also you put required true on this component.And set your required messages there .
    It will resolve your problem
    Thanks
    Prateek

  • How do create ids for kids on family share under 13

    I want to create  My kids id's on the family share plan. How do go about that if they are under 13?

    If you are the family organiser then you can do it via Settings > iCloud > Family on your iOS device, or on a Mac with Yosemite on it via Systems Preferences > iCloud > Manage Family : Family Sharing and Apple IDs for kids - Apple Support

  • How to call webservice for each record in a table using ODI

    Hi
    I am new to ODI and Webservice. I want to invoke a scenario in ODI using web service. I hava a weblogic application server with axis 2 deployed.
    But I want call webservice for each record in a table
    For eg: "EMP" table have 50 records, for each record web service should invoke
    Can any one help me on it.
    Thanks,
    phani
    Edited by: user12774166 on Jun 6, 2010 11:16 PM

    If your goal is "call" a web service, Jason's Straub's [flex-ws-api|https://flex-ws-api.samplecode.oracle.com/] is by far the best I've seen. You might want read more about it on [his blog|http://jastraub.blogspot.com/search?q=+flex_ws_api+].
    Tyler Muth
    http://tylermuth.wordpress.com
    [Applied Oracle Security: Developing Secure Database and Middleware Environments|http://sn.im/aos.book]

  • Unique Area FC IDs for HBAs

    When HBA port and the storage port are connected to the same switch. Some HBA ports require a different area ID than storage ports when they are both connected to the same switch. For example, if the storage port FC ID is 0x6f7704, the area for this port is 77. In this case, the HBA port's area can be anything other than 77. The HBA port's FC ID must be manually configured to
    be different from the storage port's FC ID.
    Can someone elaborate on which specific/host storage vendors referred here. Any insight on this behavior would be helpful.
    Reference: MDS CLI Guide (Text Part Number: OL-16484-02) - Page 18-17

    As I recall, this is a Qlogic (and their re branded HBAs) issue. Emulex HBAs do not have this issue. I think it stemmed from the early days of FC, when the vendors used the port number on the switch as the area portion of the FCID. When you trace the connection, you see the HBA Flogi, then register with the name server, then query the name server for devices in the same zone. For some reason, it never sends Plogi to any devices with the same area. Cisco developed the unique OUI feature as a bypass to the issue. If the MDS detects a Qlogic OUI at Flogi, it will be given an FCID with a unique area. You also have the ability to add additional OUIs as needed if you happen to hit this issue and the OUI is not included in the MDS firmware already. If you want to see which OUIs the firmware has included for unique area assignment, issue this command from the CLI "show fcid-allocation area"
    Hope this helps,
    Mike

  • 10.4.8 and RAIDs. How are things working for MacPro people??

    So, pondering is things working well/at all for people with 10.4.8 and have RAID boot systems in MacPro?
    Anyone installed it with you having Raid 10, or 0 or 1 ?
    What kind of problems did you install?
    Intrested to install the 10.4.8 to my work computer since the performace gains it apparently gets running photoshop under rosetta.
    A extra 30% of performance would be nice...
    So,if anyone has firsthand info (or even rumors), please let me know.
    Last thing i want is to **** up my disks...
    thx..

    Sorry hatter. Tried to allready search for stuff from,but i didnt find anything conclusive..
    Care to referate? Yay or Nay?
    What was the main issues?
    Thx!

  • How are permissions set for Reader XI Protected Mode?

    Hi, all,
    I've just installed Reader XI, and I immediately ran into an issue with Protected Mode "protecting" me from my workflow.  I'm trying to access a .kml file on my desktop to import some annotations into a Reader Enabled PDF file.  When I get the popup window saying that I don't have permissions to open this file, I head for the Reader security settings.  Adobe kindly provided us with a UI to select files, folders, and hosts to treat as priviledged.  I enter my desktop folder's path using the UI, and save.  I restart Reader, expecting this setting to help.  In fact, the security UI reports that  my desktop folder is priviledged, which is good.  The operation still fails, with the exact same error message.  Is this the anticipated behavior, and if so, what is the privileged file, folder, and host for?  I can't read or write files to my priviledged locations.  Is this correct?
    Thanks
    Joe White

    Does it work if you change the file extension to .xml from .kml?

  • How does Toggle Visible for a Column in a Table work ?

    Hi All,
    I have a question for you.
    Using version 11.1.1.7:
    I was playing with a use case where I need to show and hide columns in an af:table component.
    I want to do this clientside using javascript.
    Guess what: It works, however, it only works for hiding columns ?!
    Initially I have client component = true and visible is true.
    See javascript below.
    When I call hideColumn, the component is found and hidden after calling.
    When I call showColumns (after it is hidden) the component cannot be found anymore.
      function showColumn(evt){
          var col = AdfPage.PAGE.findComponentByAbsoluteId("pt1:pc1:t1:c9")  ;
          col.setVisible(true);    
       function hideColumn(evt){
          var col = AdfPage.PAGE.findComponentByAbsoluteId("pt1:pc1:t1:c9")  ;
          col.setVisible(false);    
        }I checked and when the columns visible property is initially false, the column is not found by AdfPage.PAGE.findComponentByAbsoluteId("pt1:pc1:t1:c9"), which means it is not available ?!
    It looks like the visible property for an af:column works slightly different then for other components such as buttons.
    Also makes me wonder how the panelCollection component shows and hides columns. Doesn't that component do exactly the same ?
    Thanks.

    Luc,
    couldn't find a hint in the sources (maybe didn't spend enough time). However, one reason for this behavior would be if the hidden column had no client component created (in which case it only exists as hidden HTML). The work around I think would be to use a serverListener on the table and to pass the columns to show/hide as the payload for server side show/hide
    Frank

  • How to create BDC for Deletion of Records in Table Control in BDC for PFCG

    I have transcation PFCG and have to go to roles of users there.We will upload the users who has to be deleted and it should delete it from the PFCG in one go .Howcan I create a program to delete from the table .If i delete directly from DB table it doesnt show in SAP log how or Who deleted it  and the client wants this log which is needed for accountability.
    Pls HELP.
    George

    Hi
    You can only indicate the user and all profiles of the user will be deleted.
    DATA: BEGIN OF T_DEL_USR OCCURS 0,
                     USERNAME LIKE  BAPIBNAME-BAPIBNAME,
          END   OF T_DEL_USR.
    DATA T_RESULT TYPE STANDARD TABLE OF BAPIRET2
    WITH HEADER LINE.
    After loading the users to be deleted:
    LOOP AT T_DEL_USR.
      CALL FUNCTION 'SUSR_BAPI_USER_PROFILES_DELETE'
        EXPORTING
           USERNAME = T_DEL_USR-USERNAME
        TABLES
            RETURN =  T_RESULT.
    ENDLOOP.
    I'm not sure but perhaps u have to use bapi for commit too: BAPI_TRANSACTION_COMMIT
    Max

  • How to diasble selection for particular rows in a Table?

    im currently working on a multiple select table.. i need to disable the checkbox for some particular rows. How can i get runtime control over that cell??

    To disable one or more rows of single or multiple selection in your table, add the following code to your controller processRequest method:
    OATableBean tableBean = ...;
    tableBean.setSelectionDisabledBindingAttr("Disabled");
    In the example above, "Disabled" represents the Boolean view attribute that returns 1/"Y" if one or more rows is (are) to be disabled, otherwise it returns 0/"N". The view attribute "Disabled" must belong to the same view object as the one associated with the table items.
    If its an advanced table, use the same method on OAAdvancedTableBean instead.

  • Data are getting cashed for Deatils in master detail table .

    Hi All,
    I have created an entity association between department and manager.
    There is a method in am to create the record in Department.
    Department creation method is calling the Manager creation method using association accessor which is defined in the DepartmentEO.
    At the end of successful exection of this method it is creating an record in Department and Manager.
    If i am calling department creation method second time without saving the record which was created earlier then under one department its showing two managers.
    I mean Its showing the manager records what was created in previous steps as well as created with current department.
    If i keep repeating the process no of magers are keep increasing .
    Ideally it should show only one manager but records of managers are getting cashed.
    Please provide me some pointed how to get rid of this issue.
    Thanks,
    Arun.

    Hi Timo,
    Take this scenioro with following usecase .
    Suppose there is a mster detail relationship between Department and mager Foreign key as departmentid.
    If i create a new row in department with DeptId=10 then one record for detail Manger will be created with deptId=10 and say manger id =10.
    without saving this record if i am invoking create method for department then one record for department is created with deptid=11 and detail mager table showing two records with deptid=10 and deptid=11.
    If i repeat the same step third time mager is showing 3 record with dept id 10,11 and 12.
    Since there is Association between Depat and Manger with deptId.
    So for Deptid=12 it should show only that manger having deptid=12 but its showing all the manger created in previous steps.
    Thanks,
    Arun.

  • How to fill listbox for some lines in a table control

    I have a table control associated to a database table. I would like to enable several lines in the table control for the user to input data. I have a field defined as a listbox with key. In PBO -> I fill the listbox based on the value of  field u201CAu201D.  I execute a select using value of field u201CAu201D.
    If I maintain module tc_zmovi_wm_change_tc_attr OUTPUT as the wizard created it:
    MODULE tc_zmovi_wm_change_tc_attr OUTPUT.
        DESCRIBE TABLE i_zmov_wm LINES tc_zmovi_wm-lines.
    ENDMODULE.    
    I have no problem with the listbox ( it is filled normaly) but user has a unique line enabled in the table control to input data.
    If I change the module in this way:
    MODULE tc_zmovi_wm_change_tc_attr OUTPUT.
    DATA: v_lineas type i.
    tc_zmovi_wm-lines = v_lineas + 10.
    ENDMODULE.   
    There are 10 lines enabled to input data for the user but the list is not filled whenever user filles field u201CAu201D.
    How could I solve this problem?
    Thanks.

    With this Eventcase the mouse down of the specified cell will be ignored
    Attachments:
    Table.png ‏28 KB

Maybe you are looking for

  • Problem installing Adobe Photoshop Elements "Shared Technologies" solved

    I was contacted by Adobe Support.  They remotely took over my computer.  Disabled the Antivirus and Firewall temporarily until restart after installation.  Then created a file labelled ADOBE.  I put in the disc and they downloaded the APE 10 to the f

  • Setting the page orientation for a report

    Hi Currently, in infoview I have observed that we can set the page orientation for a report in a webi document , i.e. whether the report is to be viewed in landscape mode or portrait mode. Currently, in the BO SDK, I have come across the classes like

  • TS1424 transfer to my ipod.. help..

    hi i played a song on itunes, downloaded it now it wont play or transfer to play lists on my ipod help....

  • Sales BOM DIAPI Invoice Change Component WHS

    When you add a sales BOM item to a DI Invoice the Component items get added automatically. However if you add the Main Item to be pulled from WHS 01 the Component items still get marked with the WHs on the BOM How can I set this after I add the Heade

  • Running form in Forms Developer

    when I attempt to run a form in Forms Developer on one specific machne the browser always says the page can't be found. On other machines this is not so. What can cause this?