Issue with value of  transient attribute after filtering or sorting a table

Hi guys,
  i'm using jdev 11.1.1.4.0 .
  i've the use case :
         - a table with a column containing a checkbox to mark the selection of  a row
<af:column align="center" sortProperty="TemIsChosen" filterable="true"
sortable="true" id="c6">
<af:selectBooleanCheckbox value="#{row.bindings.TemIsChosen.inputValue}" autoSubmit="true"
shortDesc="#{bindings.ServersIndicTempVVO.hints.TemIsChosen.tooltip}"
id="sbc1"
valueChangeListener="#{backing_initIndicatorsTemp.onSelectTemp}"/>
</af:column>
         - i select one or more rows with checkboxes
         - if i filter  or sort the table, the selection of the checkboxes reset to not selected (value false by default).
     I understand that for the framework, it's a normal behavior because for filtering or sorting , it re-executes the query from database. And transient attribute is not persistent, so it goes back to the default initial value "false".
     What i would appreciate, it's that filtering or sorting has no effect on the value of the transient attribute, ie end user selection remains.
      I tried to modify query mode of the ViewObject to filter with in-memory data. It works fine but if you reset filter inputs you can't retrieve correct RowSet. Only new RowSet is stored, old is lost.
       So  now it's the filtering feature that doesn't work as expected.
   How can i implement  my use case withouth the troubles i've described.
Best regards,
David

Hi Frank,
   no it's a view object level attribute inside a read-only view object.
  The view object doesn't use any entity.
  Here is the definition of the attribute in the xml file of the VO, if can help you :
<ViewAttribute
    Name="TemIsChosen"
    IsSelected="false"
    IsPersistent="false"
    PrecisionRule="true"
    Type="java.lang.Boolean"
    ColumnType="BIT"
    AliasName="VIEW_ATTR"
    SQLType="BIT"
    Passivate="true">
    <Properties>
      <SchemaBasedProperties>
        <TOOLTIP
          ResId="ADD"/>
        <DISPLAYWIDTH
          Value="50"/>
      </SchemaBasedProperties>
    </Properties>
  </ViewAttribute>
David

Similar Messages

  • Migration issue on default value for transient attribute in 11.1.2

    Experts,
    I migrated my JDev 11.1.1.5 project to JDev 11.1.2. After successful migration i began to run the project and it ran without issue. In the application however when i clicked on any link or button i get the following exception
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=Cannot get property 'saleType' on null object
    Caused by: java.lang.NullPointerException: Cannot get property 'saleType' on null object
         at org.codehaus.groovy.runtime.NullObject.getProperty(NullObject.java:56)
         at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:154)
         at org.codehaus.groovy.runtime.callsite.NullCallSite.getProperty(NullCallSite.java:29)
         at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:237)
         at bc4j_com_xxx_portal_model_uiView_SaleVO_SaleTypeTransient_null_gs.run(bc4j_com_xxx_portal_model_uiView_SaleVO_SaleTypeTransient_null_gs.groovy:1)
         at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:1200)
    In my SaleVO i have a transient attribute whos value is set as
    adf.userSession.userData.saleType == 'ORGANIZATION' ?
                               'LOV_PartyTypeOrg' : 'LOV_PartyType'When i print the value from user session i am getting a value there, so a bit confused about the NPE here.
    Please advice
    Jdev 11.1.2

    Hi,
    this is something you should report to customer support to have them looking at this and helping you out
    Frank

  • Problem with the return value from a tablemodel after filtering

    I have a form (consult that return a value) with a jtextfield and a jtable. when the user types in the textfield, the textfield call a method to filter the tablemodel.
    everything works fine, but after filtering the model, the references are lost and the return value does not match with the selected row.
    I read that convertColumnIndexToView, convertRowIndexToView, vertColumnIndexToModel and convertRowIndexToModel, solve the problem, but I used all and nothing.
    **** This is the code to fill the jtable
    DefaultTableModel modelo=(DefaultTableModel)this.jTable1.getModel();
    while(rs.next()){
    Object[] fila= new Object[2];
    fila[0]=rs.getObject("id_categoria");
    fila[1]=rs.getObject("nombre");
    modelo.addRow(fila);
    this.jTable1.getColumnModel().removeColumn(this.jTable1.getColumnModel().getColumn(0));
    // I delete the first column because is a ID, I dont want that the user see it. the value is only for me**** this is the method to filter from the jtextfield
    private void FiltrarJtable1() {
    TableRowSorter sorter = new TableRowSorter(this.jTable1.getModel());
    sorter.setRowFilter(RowFilter.regexFilter("^"+this.jTextField1.getText().toUpperCase(), 1));
    this.jTable1.setRowSorter(sorter);
    this.jTable1.convertRowIndexToModel(0);
    }*** this is the method that return the ID (id_categoria) from the tablemodel
    private void SeleccionarRegistro(){
    if(this.jTable1.getSelectedRow()>-1){
    String str_id =this.jTable1.getModel().getValueAt(this.jTable1.getSelectedRow(),0).toString();
    int_idtoreturn=Integer.parseInt(str_id);
    this.dispose();
    }else{
    JOptionPane.showMessageDialog(this,"there are no records selected","Warning!",1);
    }Who I can solve this problem?

    m_ilio wrote:
    I have a form (consult that return a value) with a jtextfield and a jtable. when the user types in the textfield, the textfield call a method to filter the tablemodel.
    everything works fine, but after filtering the model, the references are lost and the return value does not match with the selected row.
    I read that convertColumnIndexToView, convertRowIndexToView, vertColumnIndexToModel and convertRowIndexToModel, solve the problem, but I used all and nothing.
    You're right in that you have to use convertRowIndexToModel(), but you are using it wrong. That method takes as input the index of a row in the view, i.e. the table, and returns the corresponding row in the underlying TableModel. No data is changed by the call, so this:
    this.jTable1.convertRowIndexToModel(0);is meaningless by itself.
    What you need to do is the following:
    int selectedRow = this.jTable1.getSelectedRow(); // This is the selected row in the view
    if (selectedRow >= 0) {
        int modelRow = this.jTable1.convertRowIndexToModel(selectedRow); // This is the corresponding row in the model
        String str_id =this.jTable1.getModel().getValueAt(modelRow, 0).toString();
    }Hope this helps.

  • Issue with Default Variable in WAD after Java Patch 7.01.7.31

    Hello all,
    I'm running into an issue with the Web Application Designer Template execution for a particular default variable. This started occuring after Java Patch 7.01.7.31 we had implented over the weekend.
    The issue is when Executing the WAD Template, we have a selection screen with a variable with default values assigned to it. When leaving the default values and hitting Ok to execute  through the screen does not register and stays as is and I get a message at the top with the following: Characteristic Prob % Number has no master data for "1.00" or you do not have authorization.
    This only seems to occur for this default variable on info object Prob % Number, the other default variables seem to work fine. Also another note when clearing out the values it returns data and executes through. The value 1.00 is also a valid value in the cube and also in the output display. If we run this report in the BEx analyzer, the selection screen executes through with the default variable perfectly fine, this is only an issue with the Web Application Designer Template.
    Has anyone ran into this? I've searched and have not found any notes as of yet.
    Thank you,
    -Andy

    Dear Andy,
    Please raise this to SAP, seems like a strange problem this needs to be addressed by OSS note only.
    Close this thread once you get a solution.
    Regards.
    Den

  • Issues with Samsung Galaxy Tab S after installing 5.0.2

    Hi all,  After updating to the latest firmware I have had nothing but issues leading to the tablet now being useless. Power drains in seconds dropping from 53% to 2% in 3 minutes and loosing mobile connection every few minutes. The tablet turns itself off constantly and it is completely useless.  I have done the usual, deleted cche partitions's, soft reset, complete reset, deleted all data on SD card inserted and checked SIM in my phone to make sure it works. Anyone else had these issues or  other, this is redicoulus. After waiting months for the same update for my Galaxy Note 3 I am staring to have other issues with this also and this is very worrying.  many thanks  

    The update is FOTA. Your device will notify u when its your turn. They send them out in batches.
    Now you can take it to a best buy to the Samsung experience center and have them flash it. Also a Att device support center can do it.

  • HT4623 having issues with activating my iPhone 3gs after upgrading to ios6. Tried activating via itunes but no respite " says No sim inserted". pls help.

    Guys, I just upgraded my iphone 3gs to ios6, it took 2 hours get it installed. However asfter installing there are issues with activating it.
    Its getting failed every time..."says the activation server is temporarily unavailable".
    Tried activating via itunes but no respite " says No sim inserted".
    pls help.

    No, I did not find a way to fix it.  Went to Apple store to be told that the phone is dead and I would need to purchase a new phone.  A little frustrated with the fact that it is Apple who caused the phone to not work!

  • Issue with Value Mapping table

    Hi
    I want to upload a external value mapping table to XI.
    I do not want to code for it on the SAP R/3 side. and there might be more than 2000 value mappings. so can we upload a external mapping table.
    Is it possible?? if yes, then how??.
    Thanks
    Nikhil

    XI 3.0
    Hi,
    first of all one helpful information:
    You can see all data of the value mapping tables using the
    runtime workbench: Go to the IntegrationBuilder->
    Integration Monitoring->Cache Monitoring, select 'Search
    for Value-Mapping' and choose your context.
    The value mapping tables are located in the J2EE part of
    XI. You have to send your value mapping data to an Java proxy
    located in the J2EE part. First, the inbound proxies
    (synchronous and asynchronous) need to be activated.
    There are two urls, named in the docu, you have to call
    from a web browser:
    (asynchronous replication scenario)
    http://<Server>:<Port>/ProxyServer/register?ns=http://sap.com/xi/XI/System&interface=ValueMappingReplicationSynchronous&bean=localejbs/sap.com/com.sap.xi.services/ValueMappingApplicationSynchronous&method=valueMappingReplicationSynchronous
    (synchronous replication scenario)
    http://<Server>:<Port>/ProxyServer/register?ns=http://sap.com/xi/XI/System&interface=ValueMappingReplication&bean=localejbs/sap.com/com.sap.xi.services/ValueMappingApplication&method=valueMappingReplication
    You only need to perform this step once (for each
    installation).
    If you already have a sender for the mapping data, the
    next step is to configure the scenario in the directory
    Create a communication channel with
    Adapter type: XI
    Transport protocol: HTTP 1.0
    Message-Protocol: XI 3.0
    Adapter-Engine: Integration Server
    and host name and http port of the XI J2EE Engine and Path Prefix: /MessagingSystem/receive/JPR/XI
    The user XIAPPLUSER has the required permissions.
    For an asynchronous communication you can use the
    inbound interface ValueMappingReplication from the namespace http://sap.com/xi/XI/System.
    In that namespace there are also outbound interfaces you
    can use to generate a sender proxy and synchronous
    interfaces for the same purpose. Set the created communication channel as the receiver channel.
    You may need a mapping and so on depending on your
    sender. If you use the provided outbound interfaces there
    is no mapping required.
    The Data:
    You can create your own GUIDs using some function like GUID_CREATE in ABAP. You don't need to declare the context you use. Something like http://mycompany.com/Test should be ok.
    A sample in ABAP:
    CRM and R3 are the names of the business systems.
    data: lcl_value_mapping type ref to co_svmr_value_mapping_rep,
            ls_value_mappings type svmr_value_mapping_replication,
            ls_item type svmr_value_mapping_rep_item,
            lcl_system_fault type ref to cx_ai_system_fault.
      ls_item-operation = 'Insert'.
      ls_item-group_id = '315286378563858425463215845123548'.
      ls_item-context = 'http://Test'.
      ls_item-identifier-scheme = 'FormOfAddress'.
      ls_item-identifier-agency = 'CRM'.  <- Business System A
      ls_item-identifier-value = '2'.
      append ls_item to ls_value_mappings-value_mapping_replication-item.
      ls_item-operation = 'Insert'.
    Use the same guid for another value of the same group
      ls_item-group_id = '315286378563858425463215845123548'.
      ls_item-context = 'http://Test'.
      ls_item-identifier-scheme = 'FormOfAddress'.
      ls_item-identifier-agency = 'R3'. <- Business System B
      ls_item-identifier-value = '1'.
      append ls_item to ls_value_mappings-value_mapping_replication-item.
      create object lcl_value_mapping.
      try.
          call method lcl_value_mapping->execute_asynchronous
            exporting
              output = ls_value_mappings.
          commit work.
        catch cx_ai_system_fault into lcl_system_fault.
          write: 'Error: ', lcl_system_fault->errortext.
      endtry.
    See the XI documentation at SAP XI Design and Configuration Time -> Configuration -> Value Mapping -> Value mapping Replication for Mass Data.
    Hope that helps.
    Regards,
    Christian

  • Issue with ORERS05 IDOC sending immediately after Purchase Order creation.

    Hello,
    When output mode of an outbound partner profile was setup as Transfer
    immediately then when ever EDI output is generated in Purchase Order then
    system creates IDOC and sends immediately out of system. But middle
    ware has received only control record and whole data records were missing in IDOC file received by middle ware and we were receiving status 29 back from middle ware.
    Right now we changed outbound partner profile, output mode was set to
    Collect IDOC's and we are running RSNAST00 program in background to send those IDOC's but we
    were looking into go for first option to send idoc out of system as soon EDI output is generated in Purchase Order.
    Is there any way of fixing this issue.
    Thanks in advance.
    Regards
    Prasad

    Yes, I'm facing with PO IDOC only and as I said it is not issue with middle ware as they were receiving only IDOC control record.
    If I resend same idoc by setting status back to 30 they were able to receive whole IDOC and more over if we set partner profile to Collect IDOC and schedule back ground job every 5mins then middleware was bale to get whole idoc.
    Looks like it is SAP issue as this the message I got from SAP.
    The problem only exists if the messages are supposed to be output by
    means of transmission time-spot
    4, that is 'immediately' (during the saving of the application).
    With the output of the change message, the change documents are read for the purchasing document (all as of the last successful transmission).
    With the transmission time-spot 4, it can occur that the change
    documents do not physically exist on the database yet. No change message can be generated in this case and the system generates message ME140 or ME760 in the message log.

  • Starting issues with iMac 27 i5 quad after crucial RAM expansion

    I have read through a few threads regarding issues with crucial RAM upgrades in iMacs but they don't quite match what I am experiencing.
    I have installed 2 x 2 GB Crucial RAM (manufacturer 0x80CE) in addition to the pre-installed 4GB. The iMac works fine without any glitches, freezes or crashes. However, when I try to start it up in the morning I can hear the HD starting up and stopping once. The start chime doesn't sound and the display stays black. I take out the 4GB and the computer starts up without any problems. I then switch it off again, install the other 2 RAM again and lo and behold: all works fine. Until the next morning. I do not entirely disconnect the iMac, which is an Apple refurbished machine, I just switch it off.
    The first time that happened, I thought it was another problem like USB, bluetooth etc. So I systematically disconnected and reconnected all peripherals, I even used a USB mouse and keyboard and tried to start up from the restore DVD. So I went through all that pain.
    If there is an existing thread I would appreciate if you could point me in the right direction because I couldn't find anything like this on this forum.

    Did you test all 4 modules one at time in a top slot as suggested, to see if they are all working?
    ● If any one of the modules fail to properly boot the iMac, factory or crucial then do not reinstall it into the iMac.
    ● If all of the modules individually boot the iMac, then try reinstalling the Crucial in the top slots, the factory in the bottom slots and Startup the iMac reseting the PRAM.
    http://support.apple.com/kb/HT1379
    +1. Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.+
    +2. Turn on the computer.+
    +3. Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.+
    +4. Hold the keys down until the computer restarts and you hear the startup sound for the second time.+
    +5. Release the keys.+
    Now then if the iMac is not booting from all 8GB of RAM, then there is a compatibility problem with the Crucial RAM and you need to contact Crucial and tell them that there Ram is not working with your Factory RAM.
    Why would you only want RAM in the bottom slots, I thought the idea here was to upgrade from 4 to 8GB?
    The article clearly states that the iMac will not boot with only 1 module in a bottom slot.
    http://support.apple.com/kb/HT3918

  • Issue with execution of MessageChoicebean View Object at every row of table

    I have a table with 2 columns.
    First column is showing datatype.
    Second column is MesssageChoiceBean which is showing values from the VO.
    This choiceBean VO , i am executing based on the first column data type.
    Here the issue is,
    The data type at the last row of the table is executing the corresponsing choice bean VO and that is replacing all the above rows choice bean values.
    Please help me in this.

    1. When i run the model layer, open the operations of the "SecondEmpDetailsView" and perform filter, it is getting applied to "FirstEmpDetailsView" instead of "SecondEmpDetailsView"VO instances are defined in your AM (AM act as service facade for you). If you want to manipulate a specific VO instance, please move this logic to AM, get hold of specific VO instance and apply the criteria.

  • Web dynpro abap applications in filtering and sorting in tables

    Anyone can send me some simple applications based on
    webdynpro abap filtering and sorting concepts in tables....

    >
    cranjith kumar wrote:
    > Anyone can send me some simple applications based on
    > webdynpro abap filtering and sorting concepts in tables....
    First of why not use the ALV Component.  It has built in filtering and sorting so that you don't have to program those aspects.  It also has a nice UI for letting the user design the sorting and filtering that they want. 
    If you need sorting and filtering in the table UI element instead, you don't need anyone to send you sample applications. There are already some in your system.  Have a look at the component WDR_TEST_SORT_TAB_PROP.  Also have a look at the documentation on table events:
    [http://help.sap.com/saphelp_nw70/helpdata/EN/2d/390e422dfcde2ce10000000a1550b0/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/EN/2d/390e422dfcde2ce10000000a1550b0/frameset.htm]

  • Issues with Master Data Change Run after upgrade 7.3.1

    We have upgraded to 7.3.1 on both our BW and ECC clients.  When we first run out change run in BW it chose to drop and rebuild aggregates
    on changes that usually don't cause a drop and rebuild.  They usually do a delta.
    Has anyone had this issue once upgraded?
    We looked at our performance setting in SPRO for aggregates and the settings have not changed.

    I loaded data for 0Material, 4 fields are not getting populated....when I checked in R/3 base table and RSA3, I am able to see data for those 4 fields. But in PSA and 0MATERIAL I am not seeing data for those fields.
    THose 4 fields are Z fields mapped to Standard fields in MARA table.
    As you say you can see the values of these fields in RSA3, We can rule out that the fields arent hidden. Check the mapping on the BI side, do you have all the Zinfoobjects added to the Omaterial and the corresponding mapping of source fields to target fields.
    0CUSTOMER_ATTR has some data...I added new field in datasource as well as in BW also. After creating transformation I executed the DTP, it is throwing same error in every data package
    "Record filtered in advance as error records with the same key exist".
    Load till PSA is Init with data transfer and DTP is delta.
    there are some duplicate records in the master data values that are coming in. You can manually change them in PSA and load. And if you are sure the duplicated records can be dropped, you can tick the HANDLE DUPLICATE RECORDS in DTP - update tab

  • Issue with display of view attributes via page personalization

    Hi,
    We are having the standard search region whose VO we are extending to display additional columns.
    For this we did VO Ext, migrated the code to the instance. We added new columns in the ‘Result Region’ via personalization and mapped the corresponding view attribute to it.
    The issue is that, in spite of the mapping being correct, it is trying to display the value of previous view attribute from the same view instance.
    Example:
    Std Query fetches say Employee Name, Employee Id and we have extended the VO to include say DeptNo, DeptName.Now on doing Personalization for displaying the new fields we are getting Employee Id in DeptNo column and DeptNo in DeptName column.
    In short, we can say like, the newly added columns are displaying the values of the previous view attribute columns.
    Kindy provide your inputs for resolving this issue.
    Reagrds,
    Asha

    Hi,
    i think u need to import jpx also .
    Thanks
    Raju

  • Thunderbolt Display has issue with weird washed-out colors after waking from sleep (after upgrade to Mavericks)

    I've got a Thunderbolt Display that I use with my Macbook Air (mid 2012) - usually in clamshell mode.
    When I let the computer go to sleep, and then wake it up by clicking the mouse, the monitor turns back on but the colors are washed out and purple looking. 
    The display goes back to normal when I unplug and replug it to my laptop.
    I first noticed this problem after upgrading to Mavericks.
    I made a video demonstrating the issue here:
    http://www.youtube.com/watch?v=19179-MVpWA&feature=youtu.be
    Any ideas?
    Thanks!
    Will

    Same thing for me too.  Late 2012 13" MBP Retina.  I have to unplug the Thunderbolt cable and plug it back in.
    This has only started for me in the last two days.  The first two weeks of Mavericks was ok.
    Update:  I just got back from a trip.  I was using the laptop separate from the Thunderbolt display.  I hadn't restarted since I returned and connected the monitor.  I've just rebooted, and put the computer to sleep.  After resuming from sleep, the display is ok.  Maybe try rebooting?  I'll update if it continues.

  • Syncing issues with iTunes to iPhone 4 after new update

    After the recent software update of ios 7.0.4., my music was no longer syncing to my iPhone 4. All the songs are ticked and ready to go but nothing would happen. I tried doing it manually. I also restarted my computer and phone but nothing is still happening. I don't want to restore my iPhone. Just curious if there's another way to go around or if anyone else is having the same issues as of this new update.

    So far there is no fix, there are many threads on this topic and many people with this problem. We are all ticked off and Apple needs to fix this ASAP. They don't seem to care.

Maybe you are looking for

  • How to Open BPM worklist when a link is pressed in custom ADF application

    Hi Guru's I have a requirement where i have to open BPM worklist app when a user clicks on a custom ADF application link. Scenario 1) In custom ADF application we have a link. 2) user selects the link and we have to open the users BPM worklistapp pag

  • Import returns

    Hi, I've a problem. Our client imports material. We create import PO, with import pricing proc.After paying duties n other charges, at the time of GRN, we found that few of them are not ok. So now we want to return it to vendor in Japan. How to map t

  • Who has the lowest Video Call rates!

    Guys, this isn't about support, but as this is a DISCUSSION forum, I thought of starting this topic. Which network has the lowest video call rates? Please tell about the network (ie, UMTS or HSPA) and state the charges in US Dollars. I'll start. In S

  • Sharing wifi to ethernet port troubles

    I am trying to share my wireless internet connection (from a public wifi spot) to my ethernet connection on my mac. I get the wireless connection just fine on my iMac and connect to the internet directly from there, so I know that's working. I have t

  • PXI-4071 Calibration Date Update

    Is there a process to have the internal Calibration Date update [using the Cal Executive software] without running the adjustment-reverify routines?