Adding Components And There Value Bindings  Programmatically

Dear Friends ,
In One of assignment I have requirement of creating JSF Components
and There Value Bindings Programmatically
on valuechange event of a SelectOneListBox I need to create some componenet and add them to a panelGrid...up to this it's okay I have already achieved this goal but my next big challenge is creating value bindings programmatically for those components...
suppose I have created a textbox component in which user has to insert some text and that text I want to store in a database ..
how to do that...?

tht's simplest way ..I know but suppose
my code is like this....
public void buildComponenets(int selectedId) {
ArrayList arrList = new ArrayList();
arrList = objABC.GetDocumentParameter(selectedId);
Iterator iterate = arrList.iterator();
HtmlInputText htmlText;
HtmlSelectBooleanCheckbox htmlSelect;
HtmlOutputLabel htmlLabel;
HtmlMessage htmlMess;
int i = 1;
ABC objABC= new ABC();
while(iterate.hasNext())
objABC = (ABC)iterate.next();
String compType = objABC.getControlName();
if(compType.equals("TextBox"))
htmlText = new HtmlInputText();
htmlLabel=new HtmlOutputLabel();
htmlMess = new HtmlMessage();
htmlLabel.setValue(objABC.getLabelName());
htmlLabel.setId("lble"+i);
htmlText.setId("txt"+i);
htmlText.setImmediate(true);
htmlMess.setId("message"+i);
htmlMess.setFor("txt"+i);
htmlText.setRequired(objABC.isValidationRequired());
if(cotrolsPan.getChildren().contains(htmlText))
cotrolsPan.getChildren().remove(htmlText);
cotrolsPan.getChildren().add(htmlLabel);
cotrolsPan.getChildren().add(htmlText);
cotrolsPan.getChildren().add(htmlMess);
if(compType.equals("CheckBox"))
htmlSelect = new HtmlSelectBooleanCheckbox();
htmlLabel=new HtmlOutputLabel();
htmlMess = new HtmlMessage();
htmlLabel.setValue(objABC.getLabelName());
htmlLabel.setId("lble"+i);
htmlLabel.setValue(objABC.getLabelName());
htmlLabel.setId("lble"+i);
htmlSelect.setId("check"+i);
htmlSelect.setImmediate(true);
htmlMess.setId("message"+i);
htmlMess.setFor("check"+i);
htmlSelect.setRequired(objABC.isValidationRequired());
if(cotrolsPan.getChildren().contains(htmlSelect))
cotrolsPan.getChildren().remove(htmlSelect);
cotrolsPan.getChildren().add(htmlLabel);
cotrolsPan.getChildren().add(htmlSelect);
cotrolsPan.getChildren().add(htmlMess);
i++;
now How to create value bindings for these components

Similar Messages

  • Query to reterive the list of parameters and there values for scheduling

    I am develeoping a web application using java sdk want to reterive a parameter list for scheduling.
    i want a query that will reterive the list of parameters
    as we see on the parameters screen in CMC when we schedule the report.

                   // Loop through the parameters to get the parameter names and parameter values.
                            for(int i=1;i<=numberPrompts;i++)
                           // Each prompt has the name SI_PROMPT + a digit starting from 1.  For example, if
                           // there are 2 prompts, the first one would be called SI_PROMPT1 and the second
                           // one would be called SI_PROMPT2.
                       IProperties prompt = (IProperties)siPrompts.getProperty("SI_PROMPT"+i).getValue();
                           // Get the parameter name.
                       String promptName = prompt.getProperty("SI_NAME").getValue().toString();
                           // Start displaying a row.
                           out.println("<tr>");
                              // First column in the row is the parameter name.
                       out.println("<td>Parameter Name = "+promptName+"</td><td><table>");
                           // Get the current values property bag.
                       IProperties currentValues = (IProperties)prompt.getProperty("SI_CURRENT_VALUES").getValue();
                           // Get the number of values for this particular parameter.
                           int numberValues = ((Integer)currentValues.getProperty("SI_NUM_VALUES").getValue()).intValue();
                           // Loop through all of the values for this particular parameter.
                           for(int j=1;j<=numberValues;j++)
                               // Print out the values.
                            // Each value has the name SI_VALUE + a digit starting from 1.  For example, if
                            // there are two values, then the first value would be called SI_VALUE1 and the
                            // second value would be called SI_VALUE2.
                        IProperties currentValue = (IProperties)currentValues.getProperty("SI_VALUE"+j).getValue();
                            // Check for the existence of the "SI_MIN" and "SI_MAX" properties.
                            // If it exists, then display the value.
                            if (currentValue.getProperty("SI_MIN") != null && currentValue.getProperty("SI_MAX") != null)
                                     // The SI_MIN and SI_MAX properties exist.
                                if (currentValue.getProperty("SI_MIN").getValue() != null && currentValue.getProperty("SI_MAX").getValue() != null)
                                    // The properties have values.
                                 // Get the SI_MIN property bag.
                                 IProperties minRange = (IProperties)currentValue.getProperty("SI_MIN").getValue();
                                 // To store the minimum and maximum values.
                                 String minValue = "";
                                 String maxValue = "";
                                 // Get the SI_DATA property of the SI_MIN property bag.
                                 // First verify that SI_DATA exists.
                                 if (minRange.getProperty("SI_DATA") != null)
                                                // SI_DATA exists within SI_MIN
                                     if (minRange.getProperty("SI_DATA").getValue() != null)
                                         // SI_DATA has value so set the minValue to this.
                                      minValue = minRange.getProperty("SI_DATA").getValue().toString();
                             // Get the SI_MAX property bag.
                             IProperties maxRange = (IProperties)currentValue.getProperty("SI_MAX").getValue();
                             // Get the SI_DATA property of the SI_MAX property bag.
                             // First verify that SI_DATA exists.
                                 if (maxRange.getProperty("SI_DATA") != null)
                                     // SI_DATA exists within SI_MAX
                                     if (maxRange.getProperty("SI_DATA").getValue() != null)
                                         // SI_DATA has value so set the maxValue to this.
                                      maxValue = maxRange.getProperty("SI_DATA").getValue().toString();
                             // Print out the Minimum and Maximum values for the parameter.
                             out.println("<tr><td>Range " + j + " Min Value " + minValue + " Max Value " + maxValue + "</td></tr>");
                                else
                                    // The SI_MAX and SI_MIN properties exist, but they don't have values.
                                 out.println("<tr><td>The SI_MIN and SI_MAX properties exist, but they don't have any values.</td></tr>");

  • Deleting and Adding components in a Sub contracting PO, for every line item

    Hi,
    I have requirement where in I need to change the Item category from Blank to 'L' for a given Line item, and for this Line Item I need to go to the Delivery Schedule lines and delete the existing Components and add new components to every Delivery Schedule line. This is going to be a LSMW object with a custom program.
    I tried for recording ME22N, but couldn't do this as ME22N  is not BDC friendly, and in ME22 the Item category field is Display only. I also tried with Function modules/BAPIs but nothing seems to be working out.
    Can anybody help me get a solution to this requirement. Would appreciate a quick response as its a priority requirement for me.
    Thanks in Advance,
    Saleem.
    Ph : +91-9845627631

    1. You will definitely create two subcontracting info records for two raw materials say RAW1 and RAW2.
    2. There will be two seperate production versions for these two materials.
    3. Update respective production versions in respective subcontracting info-records.
    4. This will help to upload the alternate BOM even you changed the material from PO
    Amol

  • HT1040 I created a book, but in adding pages, somehow, the back cover and flap have now become pages, and there aren't and layouts now for the flap or back cover.  How can I fix this?

    I created a book in iphoto, and in the adding and deleting of pages, somehow the back flap and back cover are now showing as a page layout, and there isn't a back flap/cover anymore, and I can't seem to add it.  I have spend hours on this project, is there a way to fix this without having to start all over?

    Try cohnfamilly's solution posted in this topic: Cover Page Disappeared: Apple Support Communities
    OT

  • ReferenceError: Error #1069: Property DSPriority not found on String and there is no default value.

    Hi All
                      This is the Error where i got from my sample chatting application...
    ReferenceError: Error #1069: Property DSPriority not found on String and there is no default value.
    at mx.messaging::Producer/handlePriority()[E:\dev\4.x\frameworks\projects\rpc\src\mx\messagi ng\Producer.as:190]
    at mx.messaging::Producer/internalSend()[E:\dev\4.x\frameworks\projects\rpc\src\mx\messaging \Producer.as:169]
    at mx.messaging::AbstractProducer/send()[E:\dev\4.x\frameworks\projects\rpc\src\mx\messaging \AbstractProducer.as:561]
    at SampleMessagin/sendMessage()[D:\FlexJavaPrograms\SampleMessagin\src\SampleMessagin.mxml:2 9]
    at SampleMessagin/___SampleMessagin_Button2_click()[D:\FlexJavaPrograms\SampleMessagin\src\S ampleMessagin.mxml:74]
                        this is the code
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
          currentState="{st}"
          creationComplete="consumer.subscribe()">
    <fx:Script>
      <![CDATA[
       import mx.messaging.events.MessageEvent;
       import mx.messaging.messages.AsyncMessage;
       import mx.messaging.messages.IMessage;
       import mx.modules.IModule;
       import mx.states.State;
       [Bindable]
       public var st:String="";
       public function changeStateHandler(event:Event):void
        st = "Login"
       //send message throug this method
       protected function sendMessage():void
        var msg:IMessage = new AsyncMessage();
        msg.headers = uname.text;
        msg.body = sendText.text;
        producer.send(msg);
        sendText.text = " ";
      //message  Handler  
       protected function consumer_messageHandler(event:MessageEvent):void
        // TODO Auto-generated method stub
        var resp:IMessage = event as IMessage;
        dispText.text = resp.headers.toString()+" :: "+resp.body.toString()+"\n";
      ]]>
    </fx:Script>
    <fx:Declarations>
      <s:Producer id="producer"
         destination="chat"/>
      <s:Consumer id="consumer"
         destination="chat"
         message="consumer_messageHandler(event)"/>
      </fx:Declarations>
    <s:states>
      <s:State name="State1"/>
      <s:State name="Login"/>
    </s:states>
    <s:Panel x="246" y="137" width="366" height="200" title="Login Here" includeIn="State1">
      <mx:HBox horizontalCenter="2" verticalCenter="-30">
       <s:Label text="Enter UR Name"/>
       <s:TextInput id="uname"/>
       <s:Button id="login" label="Login" click="changeStateHandler(event)"/>
      </mx:HBox>
    </s:Panel>
    <s:Panel includeIn="Login" x="327" y="78" width="353" height="369"  title="Welcome:{uname.text}">
      <s:TextArea x="6" y="11" height="222" width="335" id="dispText"/>
      <s:TextArea x="10" y="241" height="85" width="258" id="sendText"/>
      <s:Button x="276" y="241" label="Send" height="76" click="sendMessage()"/>
    </s:Panel>
    </s:Application>
    and my messaging-config.xml is as follows
                 <?xml version="1.0" encoding="UTF-8"?>
    <service id="message-service"
        class="flex.messaging.services.MessageService">
        <adapters>
            <adapter-definition id="actionscript" class="flex.messaging.services.messaging.adapters.ActionScriptAdapter" default="true" />
            <!-- <adapter-definition id="jms" class="flex.messaging.services.messaging.adapters.JMSAdapter"/> -->
        </adapters>
        <default-channels>
            <channel ref="my-polling-amf"/>
        </default-channels>
        <destination id="chat"/>
    </service>
                      can any one help me what is the error present here.............
                         why it is showing error .. am i wrote anything wrong in this code .. please help me....

    I'm not the expert on this topic, but I think this line:
    msg.headers = uname.text;
    ...is throwing the error. Look into how to properly construct the headers for the message. They should be in name/value pairs.

  • Is there any function module to get vc characteristics and its value using material number?

    Hi Experts,
    I am using BAPI_CLASS_GET_CHARACTERISTICS, BAPI_OBJCL_GETCLASSES to get characteristics description and its values.
    Is there any other Function module to pull this values using material number?
    Thanks in Advance.
    Ramkumar

    Have you tried this BAPI_OBJCL_GETDETAIL
    Import parameters
    MATNR value in the OBJECTKEY
    MARA in OBJECTTABLE
    Class name in CLASSNUM
    '001' in CLASSTYPE
    You will get the Class Characteristics data into these tables:
    ALLOCVALUESNUM
    ALLOCVALUESCHAR
    Jogeswara Rao K

  • Error code -2146827284 when trying to programmatically assign X and Y values to an excel chart series

    I am trying to export data to an excel spreadsheet from Labview 6.1 using Activex Automation, then plot a chart in excel using this data. I can successfully move the data and can build the chart, but I can only assign one of the data axis (either the XValues, or the Values (ie Y values) property of the class, depending which I set first). I get a message "Exception occured in Microsoft Excel, Unable to set the Values property of the Series class." with an error code of -2146827284. See example code in case I have done anything stupid. Anyone got any ideas?
    Attachments:
    excel_activex_test.vi ‏82 KB

    Robert, thanks for responding. I was aware of the excel size limits but I don't think this is the issue here. The code I attached before tries to set first "XValues" to A2:A5 and then "Values" to c2:c5 (well within the range of excel I think ;-) ). I have attached this again and also added an image of the diagram with probes on the key places. It always succeeds on the first "set" function, and then fails on the next one. Just to confuse things it works fine if I set the "XValues" and "Values" to an array of integers. I am running Labview 6.1 on windows XP with Office XP installed as well.
    Gavin
    Attachments:
    Write_Table_and_Chart_to_XL.llb ‏226 KB
    excel_test_run.jpg ‏231 KB

  • I've been adding MP3s from LPs, and there's a lot of stopping

    I've been adding a lot of MP3s from LPs, and there's a lot of stopping & starting due to the old records having scratches.  Once I finally get each song to transfer over succesfully to itunes, the album tracks are all out of order.  Is there a way to reorder the album tracks?  I don't want to create a separate Playlist for every album, if it can be avoided.

    Samp Huck,
    If your conversion program is not correctly populating the track data, you can do it yourself in iTunes.  Right-click, Get Info, go to the Info tab, and fill in the Track number.

  • Examples of creating Page Def and Data Bindings programmatically by API

    We are trying to find any examples creating Page Def and Data Bindings programmatically by API. We are working on a new project in which we need to generate Page Def and Data Bindings dynamically by API.

    Hi,
    I am not aware of such an API
    Frank

  • TS1815 I just added an album I uploaded from my turntable and there are no tabs for artwork or lyrics to add. Any suggestions?

    I just added an album to Itunes that I uploaded from my turntable and there are no tabs for artwork or lyrics to add.  Any suggestions, please?  Thanks.

    Select album or individual tracks: Control click > Get Info.

  • Flash Components and XML Binding

    I just ran through the XML binding Bike Trails tutorial about
    a hundred times. I can get that to work just fine. But when I try
    to work with my XML file, it keeps falling apart. I just don't get
    it! I've been working on it for 2 days and it's still not working
    right.
    For one, the bindings are not showing up right. I have 2
    combo boxes and then a final one I'd like to use to list the
    stores. Here's a link to basically what I'm trying to do:
    http://www.thinkseed.com/test/stores.html
    My bindings keep falling apart. I get null values all the
    time for the second drop box that's supposed to house the States
    (the one on the site is a fluke...I accidentally had the
    <store> node on a separate line instead of nested in the
    <state> node. No idea why that one sort of worked.)
    Here's an example of the XML code:

    The flashComponents are standard AS2 components, and you can look up their APIs in the Flash documentation.  Here is the button docs:
    http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00001977.html#3654189
    Looking at that, there is a getStyle() method, and I just tested it out:
    put sprite(1).getStyle("borderStyle")
    -- "inset"
    put sprite(1).getStyle("fontFamily")
    -- "_sans"
    put sprite(1).getStyle("color")
    -- 734012.0000
    I'm not real sure what that means (probably the hex color converted to a float), but you can change the color like this:
    sprite(1).setStyle("color","red")
    And here is a page that lists all the styles that are defined:
    http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00001973.html#3136306

  • Panel adding Components

    Hi all,
    I have a problem here with Java swing. I tried to create a JPanel and add all the components in to it like Label, JRadioButton,JCheckBox, etc., and finally adding them in to a container which gets the content pane and display it. The problem here is the panel is adding the Label properly but not the other JComponents. I have tested it by adding some more JComponents and non-JComponents and those with nonJs are added properly and displays only those components.
    Model Code:
    Container cp = getContentPane();
    cp.setLayout(new FlowLayout());
    JPanel secPanel = new JPanel();
    secPanel.setLayout(new BoxLayout(secPanel,BoxLayout.Y_AXIS));
    Label lbl = new Label("Heading");
    secPanel.add(lbl);
    secPanel.add(new JCheckBox("Choice 1");
    secPanel.add(new JRadioButton("choice 2");
    cp.add(secPanel);Further, I have also tested by creating a new JApplet and same as above, I did the panel and added JComponents in to that and it seems to work fine there.
    Completely, bizarre for me!!!
    Can anybody shed their views you have here?
    Thanks,
    Shivaram.

    Sure. I now removed all the nonJComponents and pasted down the code
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    public class TestSwingCheck02 extends JApplet implements ItemListener{
        String order;
        int numSections=0;
        String[] alpha = { "A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V",
                "W","X","Y","Z"};
                int score = 0; //default value
                int ansSetID = 0;
                boolean validParams = true;
                Vector panelVector;
                Vector choiceVector;
                Vector labelVector;
                Vector boxGroupVector;
                Vector correctAnswers;
                Vector sectionScores;
                Vector ansSets;
                String itemSelected=""; //for debugging
                String errorMessage="";
                boolean shuffle;
                Container mainPanel;
                /** Initialization method that will be called after the applet is loaded
                 *  into the browser.
                public void init() {
                    try {
                        javax.swing.SwingUtilities.invokeAndWait(new Runnable() {
                            public void run() {
                                createGUI();
                    } catch (Exception e) {
                        System.err.println("createGUI didn't successfully complete");
                private void createGUI() {
                    // TODO start asynchronous download of heavy resources
                    panelVector = new Vector();
                    choiceVector = new Vector();
                    labelVector = new Vector();
                    boxGroupVector = new Vector();
                    correctAnswers = new Vector();
                    sectionScores = new Vector();
                    shuffle = false;
                    mainPanel = getContentPane();
                    order = this.getParameter("order_type");
                    numSections = Integer.parseInt(this.getParameter("num_sections"));
                    if(order.equalsIgnoreCase("C")){
                        mainPanel.setLayout(new FlowLayout());
                    }else if(order.equalsIgnoreCase("R")){
                        mainPanel.setLayout(new FlowLayout());
                    }else{
                        errorMessage = "Order type '"+order+"' is not recognised. Please specify either 'R' for rowwise layout or 'C' for columnwise layout.";
                    if(!(order.equalsIgnoreCase("C") || order.equalsIgnoreCase("R"))){
                        validParams = false;
                        score = -99;
                    if(validParams){
                        for(int i=0; i<numSections; i++){
                            Box secPanel = new Box(BoxLayout.Y_AXIS);
                            String sectionPart = "sec"+alpha;
    String heading = this.getParameter(sectionPart+"_head");
    String secType = this.getParameter(sectionPart+"_type");
    int totalChoices = Integer.parseInt(this.getParameter(sectionPart+"_choicenum"));
    String choiceList = this.getParameter(sectionPart+"_choices");
    String correctAns = this.getParameter(sectionPart+"_correct");
    String sShuffle = this.getParameter(sectionPart+"_shuffle");
    String secScore = this.getParameter(sectionPart+"_score");
    ansSets = new Vector();
    boolean hasMultipleAnswers = false;
    if(ansSets.size()==0){
    if(this.getParameter("answer_set") != null){
    ansSets.add(this.getParameter("answer_set"));
    }else if(this.getParameter("answer_set1") != null){
    for(int q=1;q<=100;q++){
    if(this.getParameter("answer_set"+q) != null){
    ansSets.add(this.getParameter("answer_set"+q));
    }else{
    break;
    if(sShuffle != null){
    shuffle = Boolean.parseBoolean(sShuffle);
    if(correctAns != null){
    correctAnswers.add(correctAns);
    sectionScores.add(secScore);
    String[] choices = null;
    if(choiceList != null){
    if(!choiceList.equals("")){
    choices = this.splitChoiceList(choiceList);
    if(choices.length != totalChoices){
    errorMessage = "Choicenum value doesnot match with the total number of choices in "+sectionPart;
    if(order.equalsIgnoreCase("C")){
    }else if(order.equalsIgnoreCase("R")){
    if(secType.equalsIgnoreCase("chk")){
    hasMultipleAnswers = true;
    }else if(secType.equalsIgnoreCase("rdo")){
    Font fnt = new Font("Monospaced",Font.BOLD,14);
    JLabel lbl = new JLabel(heading);
    lbl.setFont(fnt);
    labelVector.add(lbl);
    secPanel.add((JLabel)labelVector.get(i));
    secPanel.add(new JLabel("Check label"));
    secPanel.add(new JRadioButton("Check1"));
    Vector tempChoice = new Vector();
    for(int j=0; j<choices.length; j++){
    if(hasMultipleAnswers) {
    tempChoice.add(new JCheckBox(choices[j]));
    }else{
    tempChoice.add(new JRadioButton(choices[j]));
    secPanel.add(new JRadioButton("Check2"));
    if(shuffle){
    Vector afterShuffle = this.shuffleChoices(tempChoice);
    for(int j=0; j<afterShuffle.size(); j++){
    if(hasMultipleAnswers){
    JCheckBox chkBox = (JCheckBox)afterShuffle.get(j);
    chkBox.setVisible(true);
    chkBox.setEnabled(true);
    chkBox.addItemListener(this);
    secPanel.add(chkBox);
    }else{
    JRadioButton rdoBtn = (JRadioButton)afterShuffle.get(j);
    rdoBtn.setVisible(true);
    rdoBtn.setEnabled(true);
    rdoBtn.addItemListener(this);
    secPanel.add(rdoBtn);
    choiceVector.add(tempChoice);
    }else{
    for(int j=0; j<tempChoice.size();j++){
    if(hasMultipleAnswers){
    JCheckBox chkBox = (JCheckBox)tempChoice.get(j);
    chkBox.setVisible(true);
    chkBox.setEnabled(true);
    chkBox.addItemListener(this);
    secPanel.add(chkBox);
    }else{
    JRadioButton rdoBtn = (JRadioButton)tempChoice.get(j);
    rdoBtn.setVisible(true);
    rdoBtn.setEnabled(true);
    rdoBtn.addItemListener(this);
    secPanel.add(rdoBtn);
    choiceVector.add(tempChoice);
    //secPanel.setVisible(true);
    secPanel.setBackground(Color.YELLOW);
    mainPanel.add(secPanel, BorderLayout.NORTH);
    mainPanel.setVisible(true);
    public void itemStateChanged(ItemEvent ie){
    public void paint(Graphics g){
    Thanks,
    Shivaram.

  • JavaDoc with Web Dynpro Components and SS9

    Hi All,
         Has anyone been able to get custom JavaDoc linkages to work correctly in NDS when working with components?
         I know I can get it to work if I manually attach the source and the JavaDoc location in the Properties -> Java Build Path for each of the .jar files (in each project that uses the Web Dynpro components in question), but I feel this should carry over automatically if I configure this information in the included project.
         The good news is that the configuration stays with a using project even when choosing the "Refresh from DC settings" option, but when adding a used DC the first time isn't there some way to have this information automatically added?  This information is already configured at the project level for the used components.
         Any suggestions, or should I just grit my teeth and say everyone has to add in these values manually?
         Thanks,
            --Greg

    Hi Naddy,
    Check the standard tables that are being used in the application for display/change/create of data. If these tables have a "Customer Include", your first step should be to define the Customer Include Structure and define your new custom components in it (the ones that you need to show on the statndard view.)
    Step 2: Create and enhancement of the standard component in which the view is present. In this enhancement, update the context so that the new fields that are present in the standard table (due to Customer Include) become available in the Context.
    Step 3: Create enhancement of the view on which the field has to be included. Firstlyupdate context of view from context of controller. Now ur fields will be available in context of view. Also create context attributes that will control visibility, read-only etc of UI elements. Now enhance the layout of the view, create your custom fields and bind value/visibilty/read-only etc to the respective context attributes that you have created.
    Also write a post exit method for domodify and check the mode of the standard application (create/change/display). Accordingly set values of the read-only, visibility etc.
    Regards,
    Reema.

  • NULL and Space value in ABAP

    Hi All,
           I like to know, is it NULL and Space value is same in ABAP, if it is not how to check null value.
    Thank you.
    Senthil

    everything is correct though some answers are not correct.
    A Database NULL value represents a field that has never been stored to database - this saving space, potentially.
    Usually all SAP tables are stored with all fields, empty fields are stored with their initial value.
    But: If a new table append is created and the newly-added fields do not have the 'initial value' marked in table definition, Oracle will just set NULL values for them.
    as mentioned: There is no NULL value to be stored in an ABAP field. The IS NULL comparison is valid only for WHERE clause in SELECT statement. WHERE field = space is different from WHERE field IS NULL. That's why you should check for both specially for appended table fields.
    If a record is selected (fulfilling another WHERE condition) into an internal table or work area, NULL values are convertted to their initial values anyway.
    Hope that sheds some light on the subject!
    regards,
    Clemens

  • ADD ITEMS TO DROPDOWN BOX FROM A TEXT FIELD(USER ENTERS THE ITEM) AND BOUND VALUE ALSO

    I WANT TO ADD ITEMS  THE DROPDOWN BOX FROM THE TEXT FIELD(ITEM NAME) WHERE USER ENTER'S THE ITEM DESCRIPTION
    AND BOUND VALUE ALSO SHOULD BE ADDED TO THE SAME ITEM.
    SAME WAY REMOVE ITEMS FROM DROPDOWN BOX
    PLEASE GIVE SAMPLE FORM OR JAVASCRIPT FOR THE ABOVE SCENARIO.....
    INDEED HELPFUL FOR MY PROJECT PLEASE SEND ATTACHED PDF FORM

    Hi Praveen,
    Your form is not shared so I have not been able to access it.  But I have updated mine.  There are now two approaches, one that follows on from the above method and updates each drop down list in each row.  The second updates a separate dataset that the drop down list is bound to.  This second approach requires the remerge() method which can cause problems if your code has updates some form properties like a borders color as these will be reset, but the code is simplier and you will only have one list to maintain.  The add button click code is;
    var particulars = xfa.datasets.resolveNode("particulars");
    if (particulars === null)
        particulars = xfa.datasets.createNode("dataGroup","particulars");
        xfa.datasets.nodes.append(particulars);    
    var particular = xfa.datasets.createNode("dataValue","particular");
    particular.value = ItemName.rawValue;
    var boundValue = xfa.datasets.createNode("dataValue","id");
    boundValue.value = BoundValue.rawValue;
    particular.nodes.append(boundValue);
    boundValue.contains = "metaData";
    // find sorted position to insert
    for (var i = 0; i < particulars.nodes.length; i++)
        p = particulars.nodes.item(i);
        if (p.value > particular.value)
          particulars.nodes.insert(particular, p);       
                 break;
    // add to end if greater than all existing items
    if (particular.parent === null)
        particulars.nodes.append(particular);
    // clear source fields
    ItemName.rawValue = null;
    BoundValue.rawValue = null;
    // remerge form data to pick up new item
    xfa.form.remerge();
    And the binding looks like;
    I have updated my sample to include both methods, https://workspaces.acrobat.com/?d=OwysfJa-Q3HhPtFlgRb62g
    Regards
    Bruce

Maybe you are looking for

  • How to move .plist files from /Library/Preferences

    Hi, We are trialing using software called Deep Freeze to take a snap shot of the OS that is restored upon reboot thus removing the majority of configuration changes and thus reducing the amount of support calls. When setting up the software you have

  • WRT160N wireless MAC Filter settings reset on their own

    I recently purchased and setup a WRT160N router.  Having no real problems with router - it works fine with exception of the MAC filter settings.  I most often access the router config from an XP machine (used to initially setup the router) which is w

  • How can i tell if my prwrbk is ti or aluminum?

    the box doesnt say and well....?

  • Have i lost my library forever???

    Hi all, I know other people have asked this. I have my itunes library on a pc which has recently packed up. The computer does not power up the hard drive so i have no way of getting in to it. I have bought a laptop to replace it and now need to retri

  • JDev3: http basic auth

    Can the web-to-go(?) httpd in JDev3 be configured to support http basic auth? How do I configure it to setup my realms? thnx.