List ItemRenderer contains old values

Hi Everyone,
     I have used List for show the data from db. Data will update periodically. My problem is some rows contains old values. I have tried validateNow(), invalidateList...
But I cant achieve the result.
Kindly Suggest me the possible ways to reset the Data.
Thanks in Advance.
Arun P. Ganesh

If you are using custom ItemRenderer, you need to declare a variable within custom ItemRenderer and use that variable to display the data.

Similar Messages

  • OAM- http header containing old value

    Hi,
    I am using OAM to protect one web application and need to pass few http headers to the application for funtioning.
    Issue is one of my http header takes older value only even after its value is changed in repository. Due to this user is stuck in that loop only for some time and after 15-20 mins it gets updated in http header.
    Please let me know what could be the reson for this. Is this caching issue? if yes where excatly can this be updated.
    Thanks
    Sandy

    Hi Sandy,
    Yes, it sounds like a caching issue. If the user has an existing OAM session when the attribute is changed, the attribute is stored in the Access Server cache. You can lower the cache (Access Server settings) but this couls have a detrimental effect on perfomance. If you are updated the attributes from the WebPass, then you can enable automatic cahce flushing for this purpose. (Answer assume OAM 10g, by the way.)
    Regards,
    Colin

  • JTextFields sometimes still contains old values even setText("") performed

    I have a program which let user enter 3 JTextFields : hostname, userid, password, and one JButton. When the button is clicked, below function will be executed to get the value of the JTextField, then relevant function will be called.
    My problem is when I run the program, sometimes it will get the "previous" value, sometimes it works correctly. I make sure all JTextFields values will be cleared each time, but no help. Here is part of my code:
        private void sendActionPerformed(java.awt.event.ActionEvent evt) {                                    
            String hn = hostname.getText();
            String ln = login.getText();
            String pd = password.getText();
            hostname.setText("");
            login.setText("");
            password.setText("");
            result.setText("");
            p  = new Process();
            p.setPara(hn,ln,pd);
            result.setText(p.sendmail());
            p = null;      
        }Does anyone have ideas or suggestion? Thx.

    Ok, there are 2 files, the main class is the Email.java file.
    Email.java
    public class Email extends javax.swing.JFrame {
        /** Creates new form Email */
        public Email() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">
        private void initComponents() {
            jLabel1 = new javax.swing.JLabel();
            jLabel2 = new javax.swing.JLabel();
            jLabel3 = new javax.swing.JLabel();
            hostname = new javax.swing.JTextField();
            login = new javax.swing.JTextField();
            password = new javax.swing.JTextField();
            send = new javax.swing.JButton();
            jScrollPane1 = new javax.swing.JScrollPane();
            result = new javax.swing.JTextArea();
            jLabel4 = new javax.swing.JLabel();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jLabel1.setText("HostName (blank for localhost):");
            jLabel2.setText("Login:");
            jLabel3.setText("Password:");
            hostname.setText("smtp.test.com");
            login.setText("[email protected]");
            login.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    loginActionPerformed(evt);
            password.setText("mypassword");
            send.setText("Send");
            send.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    sendActionPerformed(evt);
            result.setColumns(20);
            result.setEditable(false);
            result.setLineWrap(true);
            result.setRows(5);
            jScrollPane1.setViewportView(result);
            jLabel4.setText("Result:");
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(jLabel2)
                                .addComponent(jLabel3)
                                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 159, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(layout.createSequentialGroup()
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                        .addComponent(hostname, javax.swing.GroupLayout.Alignment.TRAILING)
                                        .addComponent(login, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 249, Short.MAX_VALUE)))
                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(password, javax.swing.GroupLayout.PREFERRED_SIZE, 249, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(jLabel4)
                            .addGap(161, 161, 161)
                            .addComponent(send))
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 441, Short.MAX_VALUE)))
                    .addGap(123, 123, 123))
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addGap(24, 24, 24)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel1)
                        .addComponent(hostname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 12, Short.MAX_VALUE)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel2)
                        .addComponent(login, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jLabel3)
                        .addComponent(password, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(20, 20, 20)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jLabel4)
                        .addComponent(send))
                    .addGap(20, 20, 20)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(110, 110, 110))
            pack();
        }// </editor-fold>
        private void sendActionPerformed(java.awt.event.ActionEvent evt) {                                    
            String hn = hostname.getText();
            String ln = login.getText();
            String pd = password.getText();
            //result.setText("hn:"+hn+",ln:"+ln+"pd:"+pd);
            hostname.setText("");
            login.setText("");
            password.setText("");
            result.setText("");
            p  = new Process();
            p.setPara(hn,ln,pd);
            result.setText(p.sendmail());
            p = null;
         * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new Email().setVisible(true);
        // Variables declaration - do not modify
        private javax.swing.JTextField hostname;
        private javax.swing.JLabel jLabel1;
        private javax.swing.JLabel jLabel2;
        private javax.swing.JLabel jLabel3;
        private javax.swing.JLabel jLabel4;
        private javax.swing.JScrollPane jScrollPane1;
        private javax.swing.JTextField login;
        private javax.swing.JTextField password;
        private javax.swing.JTextArea result;
        private javax.swing.JButton send;
        // End of variables declaration
        private Process p;
    Process.java
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    import java.io.*;
    import java.util.Random;
    public class Process {
    private Boolean shouldAuth = false;
    private String SMTP_HOST_NAME = "";
    private String SMTP_AUTH_USER = "";
    private String SMTP_AUTH_PWD  = "";
    private String emailMsgTxt;
    private String emailSubjectTxt;
    private String emailFromAddress;
    private Boolean isError = false;
    private String output = "";
    private Random ran;
      public Process(){}
      public void setPara(String hostname, String username, String password){
          if((hostname.equalsIgnoreCase(""))||(hostname == null)){
            SMTP_HOST_NAME = "localhost";
                shouldAuth = false;
          }else{
              shouldAuth = true;
              SMTP_HOST_NAME = (hostname == "") ? "" : hostname;
              SMTP_AUTH_USER = (username == "") ? "" : username;
              SMTP_AUTH_PWD = (password == "") ? "" : password;
          emailFromAddress = "[email protected]";
          emailSubjectTxt = "testing email from abchk";
          emailMsgTxt = "This is a testing message to test the JavaMail."; 
      private class SMTPAuthenticator extends javax.mail.Authenticator{
          public PasswordAuthentication getPasswordAuthentication()
              String username = SMTP_AUTH_USER;
              String password = SMTP_AUTH_PWD;
              return new PasswordAuthentication(username, password);
      public String debug(){
          String tmp = "Output is: ";
          ran = new Random();
          Integer no = ran.nextInt(100);
          return tmp + no.toString();        
      public String sendmail(){
        //Set the host smtp address
        Properties props = new Properties();
        props.put("mail.smtp.host", SMTP_HOST_NAME);
        props.put("mail.smtp.auth", (shouldAuth==true)? "true":"false");
        Session sess;
        if(shouldAuth==true){
            Authenticator auth = new SMTPAuthenticator();
            sess = Session.getDefaultInstance(props, auth);
            //System.out.println("true");
        }else{
            sess = Session.getInstance(props);
            //sess = Session.getDefaultInstance(props, null);
            //System.out.println("false");
        sess.setDebug(false);
        //Create a message
        Message msg = new MimeMessage(sess);
        //Set message
        String tmp = "";
        try{
          msg.setFrom(new InternetAddress(emailFromAddress));
          msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse("[email protected]"));
          msg.setSubject(emailSubjectTxt);
          msg.setText(emailMsgTxt);
          Transport.send(msg);
        }catch(SendFailedException sfe){
          tmp += "SendFailedException:"+sfe.toString()+"\r\n";
        }catch(AddressException ae){
          tmp += "AddressException:" +ae.toString()+"\r\n";
        }catch(MessagingException me){
          tmp += "MessagingException:" +me.toString()+"\r\n";
        }catch(Exception e){  
          tmp += "Exception:" + e.toString()+"\r\n";       
        if(tmp.equalsIgnoreCase("")){
          tmp += "Email will be successfully delivered IF(*) information is correct.";
        String more = debug();
        return tmp + "\r\n" + more;
    }the problem was described as the 1st post, after pressing the send button, the later output message MAY NOT reflect the result, that means even try catch catches the error, the output message still MAY display the previous message, which will misleads the user.

  • How to change the dynamically  LOV value to old value if it errors out

    We have an use case like when a value is selected from LOV, some validations(EO validations) occur on that and if the validation fails we are throwing exception.But the new value is appearing in LOV text box. We need to display the old value in the LOV if the validation fails. Can you please let me know if there is any way to do that?

    After thinking about this, I wondered if I had mis-read the use-case....so I added #2
    Please state your Jdeveloper version, and elaborate on your use-case:
    *1. Are you saying that the LOV contains incorrect values that the user has chosen?*
    If so you should restrict the LOV values to what is acceptable for the row (based on what other values are in the row)
    By restricting the values in the LOV the wrong value can no longer be selected, you would not need to build in functionality to revert back to previous values.
    I woud start by creating a view criteria for the view object the LOV is based on. The form values would send the binding variables to the view criteria, and that would then execute the query (invoking the view criteriea). The LOV would then contain some information on only acceptable values.
    You may be able to adapt some of the ideas presented in this video (on cascading list boxes) to make your LOV work properly. http://youtu.be/WTevRnXq04o
    This video shows some ways to manipulate view criteria: http://youtu.be/dX93fiBCxEg
    *2. Are you saying that the user has selected other fields in the form -- validation on those fields fails, and you want to revert back, but the LOV still contains the values selected?*
    In that case, you need to clear the values in the form and re-execute the view object -- and refreshing to the correct value.
    Stuart
    Edited by: Stuart Fleming on Sep 12, 2012 12:04 PM
    Edited by: Stuart Fleming on Sep 12, 2012 6:52 PM
    Edited by: Stuart Fleming on Sep 12, 2012 6:52 PM

  • This field contains duplicate values. Remove all duplicate values and try the operation again.

    Greetings Everyone,
    I am getting the follow up errors: "This field contains duplicate values. Remove all duplicate values and try the operation again."
    when I tried to make the field "Claim Number" from the list in site collection library. See the screen below:
    1- I selected on the "List" and I clicked on the list name
    "Claim Tracking Report"
    2- After I clicked on the list name then I went to the ribbon and selected list setting to choose Enforce Unique for the Field Column
    "Claim Number"
    3- Then I went down and selected
    "Yes" to Enforced the Unique for the Field Column "Claim Number".
    4- Then after I clicked "Yes" I got the error
    "Sorry, something went wrong. This field contains duplicate values. Remove all duplicate values and try the operation again."  But I don't have any duplicates values Items, because I had them removed before I tried
    to Enforce the field column values to Unique. Can someone help or provide me a suggestions on how I can solve this issue please. Thank you
    FYI: I am using a Nintex Workflow

    Hope this is a list, how many total items are there?
    Please try to open this list as access(link in IE) and run this query in access
    SELECT Claim.[Claim Number], Count(*) AS Expr1
    FROM Claim
    GROUP BY Claim.[Claim Number]
    HAVING (((Count(*))>1));
    Hope it will show something! if this does not show you dups then better to create a separate list and migrate items after configuring unique column.
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Select List to check duplicate values before putting into another item

    Hi All ,
    I have a select list which contains .. country regions like ( APAC , EMEA etc ) .
    When I select any region , all the countries belonging to the region fills in another item .
    Suppose I select APAC , all the countries like India , Japan etc all fills in another item .
    But the problem is , if I select twice APAC , it fills duplicate values . Its filling duplicate values .
    I want to put validation or check for country value ...
    Suppose I select ' APAC ' it fills all APAC countries in another item . Now Again If I select APAC then it first check the item whether the country is there or not . If already APAC countries are there in the Item then it will show an error message that " Value already Exist ' .
    I am not able to fix this problem . it is creating duplicate values in database table .
    Please some one help me on this ..
    Thanks
    Prashant

    Patrick ,
    Sorry , I am correcting my words ..
    I am using Multiselect List ( P11_REGION) having regions APAC , EMEA , LAD etc .
    When I select Region like APAC , it fills all the countries of APAC and puts into a List .
    If again I select APAC , it again fills all the APAC countries and puts into a list which causes duplicacy .
    I have one Application Process which returns Country according to Region selection and puts in the list .
    So , what i want is when user twice selects region APAC , it searches the list whether APAC countries are there or not . If countries are already exists then it show an error otherwise Puts the countries in the list .

  • How to get the old value of the ValueChangeEvent

    I'm using the JSF component selectManyListbox. I have assigned a value change listener to it. When I try get the old value using getOldValue() of the ValueChangeEvent Im always getting a null value. The only value Im getting is from the method getNewValue(), which is the last item I clicked in the selectManyListbox items before submitting the whole form. Is there a way to get the old value of this component or Im doing something wrong?

    Here is the partial bean code
    public class TestUI extends PageCodeBase {
         private static Logger logger = Logger.getLogger(pagecode.protected1.TestUI.class);
         protected Object [] menuValue;
         protected Object [] listBoxValue;
         protected List allTaskCodes;
         * @return Returns the listBoxValue.
         public Object[] getListBoxValue() {
              return listBoxValue;
         * @param listBoxValue The listBoxValue to set.
         public void setListBoxValue(Object[] listBoxValue) {
              this.listBoxValue = listBoxValue;
    public void handleSelectManyListboxValueChange(
                   ValueChangeEvent vce) {
              logger.debug(".. first component was heard..");
              String[] s1 = (String[]) vce.getOldValue();
              String[] s2 = (String[]) vce.getNewValue();
              //vce.getComponent().
              if (s1!=null&&s1.length!=0) {
                   logger.debug("length of first array is " + s1.length );
              //for(int i=0; i<s1.length; i++)
                        logger.debug("value of old is " + s1[0] );
              if (s2!=null&&s2.length!=0) {
                   logger.debug("length of second array is " + s2.length );
                   //for(int i=0; i<s1.length; i++)
                        logger.debug("value of new is " + s2[0]);
    Here is the jsf code
    <h:selectManyListbox styleClass="selectManyListbox" id="listbox1"
                        size="3" valueChangeListener="#{pc_TestUI.handleSelectManyListboxValueChange}"
    onchange="submit()" value="#{pc_TestUI.listBoxValue}">
    <f:selectItem itemValue="value1" itemLabel="select1" />
                        <f:selectItem itemValue="Value2" itemLabel="select2" />
                        <f:selectItem itemValue="Value3" itemLabel="select3" />
    <f:selectItem itemValue="value4" itemLabel="select1" />
                        <f:selectItem itemValue="Value5" itemLabel="select2" />
                   </h:selectManyListbox>

  • Extending a component which already extends a spark list ItemRenderer

    Hello everyone,
    I have the following situation: Im displaying lists of very similar data objects (they extend the same parent) so in order to avoid a lot of changes to many itemrenderers (if i need to change something in the common properties) when displaying this data, i defined a spark list ItemRenderer (in MXML) which displays the common properties (file called BaseRenderer.mxml):
    <s:ItemRenderer>
         //in the script section i override the set data property
         //some MXML labels, checkboxes, etc
    </s:ItemRenderer>
    Then i created a specific itemrenderer which extended it (file SpecificRenderer.mxml):
    <model:BaseRenderer>
         //again i override the set data property
         //some ADITIONAL MXML labels, checkboxes, etc
    </model:BaseRenderer>
    When i run the app, and when the specific renderer is used, it works (no errors are thrown) , but it only shows the content of specific renderer, nothing from base renderer is visible. Is this the right way to do this, or do i have to override some additional stuff in my specific renderers?
    Thank you.
    One more thing, i just noticed, if i remove all MXML tags from specific renderer, the content from base renderer becomes visible, seems as if specific content overrides base content. Is there a way to add mxml tags into the specificrenderer?

    Yes i suspected them to be merged, and you gave me a great idea. As you say this behavior is true across all mxml defined components, not just itemrenderers. I want to avoid actionscript renderers because i dont (and wont) have any performance issues anyway and i like flexibility in design view, so instead i found another solution which i slightly modified. Some spark components inherit property mxmlContent, which you can override. This is what i came up with in the end: I added the property override into specific renderer and everything is shown as expected (because base elements are merged with the ones from extended component).
    override public function set mxmlContent(value:Array):void {
                                            var adding:Boolean = true;
                                            var index:int = 0;
                                            while (adding) {
        var element:IVisualElement = null;
        try {          element = super.getElementAt(index); } catch(e:Error) {          }
        if ( element != null )  {
           value.push(element);
           index += 1;
        else
          adding = false;
                                            value.reverse();
                                            super.mxmlContent = value;

  • Store an array containing CLLocation values, in NSUserDefaults

    Hi,
    Am working with location based application and need to store an array containing cllocation values, in userdefaults , have tried using :
    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
    [defaults setObject:yourArray forKey:@"clArray"];
    [defaults synchronize];  
    but it gives following error :
    [NSUserDefaults setObject:forKey:]: Attempt to insert non-property value '( "<MapLocationVO: 0x169440>" )' of class '__NSArrayI'
    thanks in advance
    Regards

    Hi,
    from NSUserDefaults Class Reference:
    +The value parameter can be only property list objects: NSData, NSString, NSNumber, NSDate, NSArray, or NSDictionary. For NSArray and NSDictionary objects, their contents must be property list objects. See “What is a Property List?” in Property List Programming Guide.+
    The only way is to archive the array into an NSData-Object and store that data-object.
    NSData *data = [NSKeyedArchiver archivedDataWithRootObject:yourArray];
    [[NSUserDefaults sharedUserDefaults] setObject:data forKey:@"arrayKey"];
    Dirk

  • How to hide one column in Alv if it doesnt contain any value

    Hi,
      In alv Grid if one coulmn doesnt conatin any value.I doesnt want to display in ALV grid.Is dat possible. Plz help.

    Hello Anu
    When you prepare your fieldcatalog check the column of the output itab for its contents, e.g.:
    " Itab GT_FCAT contains fieldcatalog.
    " Itab GT_OUTTAB contains ALV list data.
    " Condition: column "MY_COLUMN" should contain at least single value > 0
      LOOP AT gt_outtab TRANSPORTING NO FIELDS
                     WHERE ( my_column > 0 ).
        EXIT.
      ENDLOOP.
      IF ( syst-subrc NE 0 ).  " Column "MY_COLUMN" contains no value > 0, then hide column
        READ TABLE gt_fcat INTO ls_fcat
                  WITH KEY fieldname = 'MY_COLUMN'.
        IF ( syst-subrc = 0 ).
          ls_fcat-no_out = 'X'.  " not displayed, but visible in layout
          ls_fcat-tech = 'X'.     " not displayed, not available in layout
          MODIFY GT_FCAT FROM ls_fcat INDEX syst-tabix.
        ENDIF.
      ENDIF.
    Regards
      Uwe

  • Searching Web Apps with Data Source fields containing multiple values

    I have a Web App with a field allowing multiple values to be entered similar to the checkbox list. I need to restrict allowed values to a large, finite list of values currently stored in another Web App as the data source. I can't apply the Data Source field type as that only allows single value selection. I also need to be able to use the Web App Search form to search for items containing 1 OR more values in this field (the search functionality of a checklist field type). Here's what I've tried for field types:
    Text (string) or Text (multiline) field type - By saving a list of comma separated values (the same way that checkbox list outputs) to a text input or textarea, the search logic only searches for exact string (including commas) and doesn't parse the individual values.
    List (checkbox list) field type - This allows me to search multiple values using OR logic, but the web app will only store values that have been entered as options in the actual web app field setup. I tried using a checkbox list with minimal or empty options hoping that whatever values I sent over in a comma separated string value would still get stored, but because the values came from my Web App data source and not the list of options stored with the field, they were not saved.
    Has anyone found a way to do this?
    My other question is about how I might use a similar multi-value field as described above but return search results containing items with ALL selected values for that field (AND logic).
    Can anyone enlighten me to the inner workings of BC web app search logic?

    Thanks Robert.
    You'll need to create your own interface to the webapp database for those kind of data operations
    by this, are you speaking of the internal BC database which stores web app schema data? That would be great if it were possible to update that programmatically because I need to use the List (Checkbox List) field type (for the search functionality), but I need to supply the checkbox options from a web app rather than by manually updating the list entered in the Fields view of the web app settings (shown below).
    I'm curious if anyone else has tried this?
    Again, my reason for needing to use the List (Checkbox List) field type is that the page which processes searches knows to expect a comma separated list for this field type and then appears to be parsing out the individual values for searching out web app items with 1 or more matching values. You're right that text fields (string and multiline) just check for 'string contains' matches, and this would be ok if I was only ever needing to search just one value at a time. Here's an example of what I might do:
    Web App item field value (as recorded against the List (Checkbox List) field type:
    8294877,8294878
    Web App Search value (for this same field):
    8294879,8294877,8294885
    The search would return this web app item because the field contains 2 (1 or more) individual values even though they were entered into the search field in a different order. If this web app item were just a Text (string or multiline) field, the searched value is not a substring of the web app item's stored value, so it would not find a match. Hence the need to use Checkbox List field type.
    The web app will have thousands if not 10s of thousands of records, so dumping them all into one big array or object and searching on the front-end won't be practical (though it works great on smaller datasets).

  • How to move up the List Box for para. values in the "Edit Values" window?

    Hi,
    I am using Crystal Reprots 11.
    I create 10 subreports, and each subreport contains a Parameters Field.
    The 10 subreports are put in 10 footer sections in increasing order, i.e. subreport1, subreport2, subreport3, ..., subreport10.
    When I use "Print Preview" to take a look at the whole report, CR prompts a "Edit Values" window for selecting parameter values.
    Maybe because I created subreport3 & subreport4 after I completed other subreports, the List Box with the values required to select for subreport3 & subreport4 were located at the bottom of the "Edit Values" window.
    How to move List Box with the values required to select for subreport3 & subreport4 up to the proper location (based on the order of subreports) in the "Edit Values" window?
    Thank you in adavance.

    Hi,
    Yes, that is true. The subreport parameters are prompted in the order you insert the subreport.
    The only way to fix this is to save subreports from 5 through 10 (Right-click subreport > select Save Subreport as) first.
    So, now all you have is Subreports 1, 2 and 3. Go ahead and add the Subreports from 5 to 10 in order and the prompts should be in order too.
    -Abhilash

  • Search help - from a list of user  secific valu

    hi
    how to create a serach help for a select-options or parameters
    which contains only a list of user specified values not entirely of the DDIC values
    Thx for any replies

    For example ...
    DATA: ltab_fields LIKE help_value OCCURS 0 WITH HEADER LINE,
            BEGIN OF ltab_values OCCURS 0,
              feld(40) TYPE c,
            END OF ltab_values.
      create F4 for Molga.
    SELECT-OPTIONS : s_molga for t500l-molga.
    AT SELECTION-SCREEN  ON VALUE-REQUEST FOR s_molga-low.
      clear : ltab_fields[] ,
              ltab_values[].
      ltab_fields-tabname    = 'T500T'.
      ltab_fields-fieldname  = 'MOLGA'.
      ltab_fields-selectflag = 'X'.
      APPEND ltab_fields.
      ltab_fields-tabname    = 'T500T'.
      ltab_fields-fieldname  = 'LTEXT'.
      ltab_fields-selectflag = space.
      APPEND ltab_fields.
    *-- Fill values
      SELECT * FROM T500T WHERE spras = sy-langu
                          and   MOLGA in <b>r_molga.</b>
        ltab_values-feld = T500T-molga.
        APPEND ltab_values.
        ltab_values-feld = T500T-LTEXT.
        APPEND ltab_values.
      ENDSELECT.
    or Append the ltab_values with your own values .. first should be the value and the
    second should be the text for it ...
    Here I have r_molga which is a range ... and has user specified values ..
    say 10 , 11 , 12 , ......... 20
      CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE'
           EXPORTING
                fieldname                 = 'MOLGA'
                tabname                   = 'T500T'
               title_in_values_list      = 'Select a value'
                 show_all_values_at_first_time = 'X'
           IMPORTING
                select_value              = s_molga-low
           TABLES
                fields                    = ltab_fields
                valuetab                  = ltab_values
           EXCEPTIONS
                field_not_in_ddic         = 01
                more_then_one_selectfield = 02
                no_selectfield            = 03.
    Similarly for High .. just replace the LOW with High ...
    Hope this helps you ...

  • Type 2 SCD -- does not update the old value.

    I have following columns in the source table:
    SSN, credit_score
    In the target, I have following columns,
    SK_ID, SSN, credit_score, flag
    I am flagging the old credit_score as 'N' when updating the row and at the same time it is supposed to enter a new credit score with flag 'Y' in another row.
    Second, If a row is completely new, It should be inserted with the flag 'Y'.
    SK_ID is the surrogate key and SSN is the natural key, My trigger column is credit_score.
    The problem is that when I run this type 2 mapping, it does not update anything but inserts the new rows only.
    I have posted the screen shots at the following link.
    http://www.box.net/shared/ea9v48r0xa
    Thanks for your help in advance.

    First of all, thanks for the reply...
    You can also look at the screen shots I posted in previous post.
    Here is how I am updating the rows (update logic).
    If source_SSN=target_SSN and source_credit_score!=target_credit_score
    then flag = 'N' (this is the update from 'Y' to 'N' after which i will insert a new row containing new value of credit_score with flag 'Y')
    As an example, if my old rows in the target table were:
    sk_id SSN credit_score flag
    101 2212 654 Y
    102 3023 707 Y
    Now let's say my source table has these values.
    SSN credit_score
    2212 648
    2220 690
    Then my target table should be like this:
    sk_id SSN credit_score flag
    101 2212 654 N
    103 2212 648 Y
    102 3023 707 Y
    104 2220 690 Y
    Do you see what I mean...

  • I am getting old values after changind the data in CRM ISA B2B.

    Hi,
    I am modifying Standard CRM ISA B2B application. Under "My Account" section. there are two options 1) Password change and 2) Address Change.
    I changed "addresschange.jsp" for Look and feel. I also changed Telephone and Fax input filed by braking them into three input field and made Standard telephone and fax field to hidden. Through Java script I am taking value from Standard file and braking them into 3 part and then display in appropriate field also while saving the record I am taking value from three input fields and assigned to standard field before saving the changes.
    When  I click on Submit button after making changes to name, phone or any field I am getting success  message that your record has been updated successfully but when I revisit it I am getting the old values.
    pl. guide me How  I can resolve this issue?
    Thanks.
    Ashish Patel.

    Hi Gareth
    My understanding is that you want to store some extra attribute for items in your CRM catalog and want to display that extra attribute in the list page ei ProductISA.jsp. If this is all you need to do, then good thing is you dont need to make any changes to any business object class.
    Define a custom attribute in CRM catalog and assign its value. You may need to republish the catalog once you've done this.
    On the Java side to access this extra attribute you can use the following code.
    WebCatItem item = (WebCatItem) lstItems.get(nCount);
    String strOrderCD = item.getAttribute("ZORDERCODE");
    getAttribute() method reads the value of any custom parameter you may define in your CRM catalog. In case you want to send some extra data to CRM, you'll need to use the addExtensionData() method and would need to handle this extra info in the corresponding BADI.
    Cheers
    PB

Maybe you are looking for

  • Are you a UK O2 iPhone user? Want to recieve MMS on your iPhone? Read on...

    For those based in the UK with an iPhone on any of the O2 tariffs, you can now view your recieved MMS Messages on your iPhone itself, rather than just getting a link to view it on a computer. All you have to do is use the iPhone's Safari and navigate

  • Export To Excel in new popup window

    Hi all, I am trying to implement the 'exportToExcel' functionality in which will open a XL file in a new window(which has to be the MS EXcel window,not the browser).My code snippet is as follows: public ModelAndView exportToExcel(HttpServletRequest r

  • Captivate 4 (Windows7 & 64bit) Audio Issue

    Hello, I have read the Windows 7 & 64 bit thread about how Captivate 4 not work within a Windows 7/ 64-bit environment, some how it worked on this computer before I adopted it.  I am trying to record audio on a project and when I go into Audio-Settin

  • Ftps and connect to server

    Does anyone know if OS X has a built-in ftps (not sftp) client? Also, is there a list of supported protocols for "connect to server"? Thanks!

  • Elements 12 Box--Can I Use Software on a PC and a Mac Air?

    I know this was discussed previously with respect to an earlier version of Elements, but the software licensing language is confusing. Is this correct for Elements 12: 1)  If I were to download the software, I would need to make separate purchases fo