Anyone has code to dynamically create a datatable?

Thanks a lot!
-Jie

Hi,
The following threads has some relevant discussions.
http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=46893
http://swforum.sun.com/jive/thread.jspa?threadID=55594
Regards.

Similar Messages

  • Anyone has ideas how to create Google Calendar as an embedded web applet

    Hello...
    Anyone has ideas how to create Google Calendar as an embedded web applet in CRM On Demand? I would like to create an embedded web applet to show up the user's Google Calendar. I may have users Google credentials saved in its user record of CRMOD.

    This can be enabled with InBound SSO implementation where your CRMOD Credentials and Google Apps Credentials are mapped.
    if it would help consider reading something on OpenSSO on SAML for this requirement
    Regards.
    Deepak H Andeli

  • How to access a dynamic created attribute in a context node?

    <i>Hello,</i>
    <i>who could help? I can't set a value for a dynamically created attribute which is bind to a table.</i>
    <i>My context of the view looks as follow (is defined in NetWeaver):</i>
      - Context
         - Availability (Node)
             - vctxService (Attribute)
             - vctxServiceDesc (Attribute)
             - ... (further predefined attributes)
             - ... (some have to be set dynamically as follows)
    <i>Then I have added attributes dynamically in the wdDoModifyView(...) - method, as follows:</i>
    for (int i = 0; i < max; i++) {
       // some code to dynamically create table columns
       // adding attributes dynamically
       IWDAttributeInfo attrInfo =       wdContext.nodeAvailability().getNodeInfo().      addAttribute("vctxAvailability_" + i, "ddic:com.sap.dictionary.string");
       tv.bindText(attrInfo); // bind to TextView in table
    <i>In the method onPlugFrom... I tried to set the values for the attributes "vctxAvailability_ + i" as follows:</i>
    for (int i = 0; i < max; i++) {
       IAvailabilityElement newAvailNodeElement =     wdContext.createAvailabilityElement();
       // some values will be set for the
       // predefined attributes of AvailabilityNode
       // newAvailNodeElement.set...( value );
       // newAvailNodeElement.setVctxService( xy.getServ() );
       // now the values of dynamically created and added
       // attributes in AvailabilityNode will be added
       // THIS DOESN'T WORK
       newAvailNodeElement.setAttributeValue    ("vctxAvailability_" + i, "value" + i);
    <i>It would be great if someone could help me.
    Thanks in advance.
    Kind regards,
    Carsten</i>

    Carsten,
    Here is a sample code that creates context attributes dynamically and also sets values:
    //Creates a node
    IWDNodeInfo nodeInfo = wdContext.wdGetAPI().getRootNodeInfo().addChild("TestNode", null, true, true, false, true, false, true, null, null, null);
    //If you want to bind the node to a model node then the
    //second argument to the above method should be the
    //model class.
    //Creates an attribute under the node just created.
    IWDAttributeInfo testAttrib = wdContext.wdGetAPI().getRootNodeInfo().getChild("TestNode").addAttribute("testAttrib", "ddic:com.sap.dictionary.string");
    IWDNodeElement testNode = wdContext.getChildNode("TestNode", IWDNode.LEAD_SELECTION).getCurrentElement();
    IWDNode testNode2 = wdContext.getChildNode("TestNode", IWDNode.LEAD_SELECTION);
    //Now you can bind testNode with the Model Node
    //You can also set a value to the newly created attribute
    testNode.setAttributeValue("testAttrib", new String("Value"));
    Hope this helps.
    Shakeel

  • Is it possible to dynamically create psp variables?

    I'd like to be able to dynamically create psp variables on the fly.  Without getting into details; using straight shared variables defined in a library is too constraining for my application.  I've found that I can create PSP variables dynamically using DataSocket VIs in the System directory (psp://localhost/system/), though I can't seem to do it with the LV Shared Variable VIs.  I was just curious if there was any way to programmatically create psp variables without using DataSocket VIs.

    In the client yes,
    Dynamically Creating Shared Variables
    The SVE will automatically create the target variable with default properties when a client attempts to connect to a URL with the following format.
    psp://computer/System/shared_variable, where shared_variable is the named tag for the data."
    On the server you create them. I believe, if my memory is correct, if you have DSC option there is code to dynamically create them on server side.

  • How to create customized DataTable???

    Hi all,
    I will have to create Customized DataTable.
    Requirements for the DataTable are mentioned below
    1.*DataTable Should Accept An Array from which Column Name Values are iterated.*
    2.*DataTable Should Accept List from which rows are iterated as usual.*
    can anyone guide me how to create this dataTable?
    Thanks & Regards,
    sundar

    sundar82 wrote:
    Thanks 4 d reply Reymand,is it possible to write the DataTable by extending Tomahawk DataTable?That sounds like a reasonable approach to me.

  • Dynamically creating a CR by code

    Post Author: ffderennes
    CA Forum: .NET
    Hello, I am discovering crystal reports (I have the basic version included with VS 2005).  I would like to dynamically create a report by the code.I need to generate a report from a Dataset or DataTable but this source is variable.The columns of the table are not always the sames. I did research, and all the tutorials I have seen create models primarily via visual studio (with known column names). I wonder if it is possible to create and edit from A to Z the report by the code.  I tried (creation of the object ReportDocument, but I can not add a section, TextObject ...).  Visual Studio back me errors and tells me that these objects have no constructor.  I began to wonder if it was possible to do that.If yes, in which version (maybe mine is too old).  In any case, if someone has a runway, an example or a tutorial to advise me, I am taker.  thank you in advance.

    Post Author: JonathanP
    CA Forum: .NET
    You can use the Report Application Server (RAS) engine to dynamically create reports, or add items to existing reports. RAS is not included with the verison of Crystal Reports that comes with .NET. Full versions such as XI R2 do include RAS.
    Some samples can be found on the support site.
    http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=http--supportbusinessobjectscom-communityCS-FilesandUpdatesNoNav-rasvbnetwebsamplesexeasp&sliceId=&dialogID=22114090&stateId=1 0 22112331

  • Urgent help!  does anyone has sample code to do encry in c & decry in java

    Does anyone has a very simple code to encrypt a string in c (openssl for example) and then decrypt the same string in java?
    it should be very simple but i just can get the ball rolling. i always get different data (even in hex string representation) using the same key and plain text (all in hex) to even just do encryption (not even decryption yet). To my understanding, DES is just bits manipulation. So the output bit pattern should be the same regardless C or Java, right?
    for example, in openssl, when i do ecb:
    the key:
    0123456789ABCDEF
    the plain text:
    0101010101010101
    the in:
    0101010101010101
    the out:
    B4FD231647A5BEC0
    but doing the same in java i got
    3A2EAD12F475D82C as the encryption output
    It is very strange.
    Hope someone could help me.
    Thanks
    -- Jin

    whew! i finally get the base64 working. Here is my data from openssl run using DES with ECB mode and no padding: (the des_ecb_encrypt function is des/ecb/nopadding, right?)
    thanks alot
    -- jin
    0123456789ABCDEF
    the key in base64 encoding is:ASNFZ4mrze8=
    the plaintext in hex:
    0101010101010101
    the plaintext in base64 encoding is:AQEBAQEBAQE=
    the encrypted output in hex:
    B4FD231647A5BEC0
    the encrypted output in base64 encoding is:tP0jFkelvsA=
    the decrypted text in hex:
    0101010101010101
    the decrypted text in base64 encoding is:AQEBAQEBAQE=
    here is the code. see if you see the same thing. it works fine alone but just not the same result i use the SUN JCE ... that is the frustration part.
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <sys/types.h>
    #include <ctype.h>
    #include <openssl/des.h>
    #define Assert(Cond) if (!(Cond)) abort()
    static const char Base64[] =
            "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
    static const char Pad64 = '=';
    int main(int argc, char *argv[])
            int i;
            des_cblock in,out,outin;
            unsigned char base64EncodedText[255];
            unsigned char temp[255];
            size_t targsize;
            size_t srclength;
            des_key_schedule keySchedule;
            unsigned char plainText[8] = {0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01};
            unsigned char key[8] = {0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF};
            // now create the key schedule
            if(DES_set_key(&key, &keySchedule) != 0) {
              // something is wrong, unable to create key schedule
              printf("Unable to create the key schedule.");
              return 1;
            // now the key schedule is created, encrypte the data
            // in block contains the plain text, the out block contains the encrypted cyphertext,
            // and outin contains the decrypted plain text (should be the same value as in)
            memcpy(in,plainText,8);
            memset(out,0,8);
            memset(outin,0,8);
            // ecb mode is the simplest mode, takes in only 8 bytes (a cblock) and output a cblock
            des_ecb_encrypt(&in, &out, keySchedule, DES_ENCRYPT);
            des_ecb_encrypt(&out, &outin, keySchedule, DES_DECRYPT);
            printf("\nthe key in hex:\n");
      for(i = 0; i < 8; i++) {
        printf("%02X", key);
    printf("\nthe key in base64 encoding is:");
    memcpy(temp, key, 8);
    temp[8] ='\0';
    targsize = base64encode(temp, 8, base64EncodedText, targsize);
    printf("%s", base64EncodedText);
    printf("\nthe plaintext in hex:\n");
    for(i = 0; i < 8; i++) {
    printf("%02X", in[i]);
    printf("\nthe plaintext in base64 encoding is:");
    memcpy(temp, in, 8);
    temp[8] ='\0';
    targsize = base64encode(temp, 8, base64EncodedText, targsize);
    printf("%s", base64EncodedText);
    printf("targsize is %d", targsize);
    printf("\nthe encrypted output in hex:\n");
    for(i=0; i<8; i++) {
    printf("%02X", out[i]);
    printf("\nthe encrypted output in base64 encoding is:");
    memcpy(temp, out, 8);
    temp[8] ='\0';
    targsize = base64encode(temp, 8, base64EncodedText, targsize);
    printf("%s", base64EncodedText);
    printf("\nthe decrypted text in hex:\n");
    for(i = 0; i < 8; i++) {
    printf("%02X", outin[i]);
    printf("\nthe decrypted text in base64 encoding is:");
    memcpy(temp, outin, 8);
    temp[8] ='\0';
    targsize= base64encode(temp, 8, base64EncodedText, targsize);
    printf("%s", base64EncodedText);
    printf("\n");
    return 1;
    int base64encode(unsigned char *src, size_t srclength,
    char *target, size_t targsize)
    size_t datalength = 0;
    unsigned char input[3];
    unsigned char output[4];
    size_t i;
    while (2 < srclength) {
    input[0] = *src++;
    input[1] = *src++;
    input[2] = *src++;
    srclength -= 3;
    output[0] = input[0] >> 2;
    output[1] = ((input[0] & 0x03) << 4) + (input[1] >> 4);
    output[2] = ((input[1] & 0x0f) << 2) + (input[2] >> 6);
    output[3] = input[2] & 0x3f;
    Assert(output[0] < 64);
    Assert(output[1] < 64);
    Assert(output[2] < 64);
    Assert(output[3] < 64);
    if (datalength + 4 > targsize)
    return (-1);
    target[datalength++] = Base64[output[0]];
    target[datalength++] = Base64[output[1]];
    target[datalength++] = Base64[output[2]];
    target[datalength++] = Base64[output[3]];
    /* Now we worry about padding. */
    if (0 != srclength) {
    /* Get what's left. */
    input[0] = input[1] = input[2] = '\0';
    for (i = 0; i < srclength; i++)
    input[i] = *src++;
    output[0] = input[0] >> 2;
    output[1] = ((input[0] & 0x03) << 4) + (input[1] >> 4);
    output[2] = ((input[1] & 0x0f) << 2) + (input[2] >> 6);
    Assert(output[0] < 64);
    Assert(output[1] < 64);
    Assert(output[2] < 64);
    if (datalength + 4 > targsize)
    return (-1);
    target[datalength++] = Base64[output[0]];
    target[datalength++] = Base64[output[1]];
    if (srclength == 1)
    target[datalength++] = Pad64;
    else
    target[datalength++] = Base64[output[2]];
    target[datalength++] = Pad64;
    if (datalength >= targsize)
    return (-1);
    target[datalength] = '\0'; /* Returned value doesn't count \0. */
    return (datalength);
    [code                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Dynamically create dataTable

    Hi,
    I need to know if it's possible to dynamically create a jsf data table and populate it with values from an ArrayList at runtime. I already have the array list but I won't know it's dimensions until runtime because the queries that fill the arrayList will be custom selected by the user. Can anyone pls help me? If you need any more information or any code I'll be glad to provide it.
    Thanks.

    Use value binding, or method binding, for its rows attribute value. Other attributes may serve parts of your specific needs. -- Or, depending on your use-case scenario, simple value binding for its value attribute might suffice.

  • Does anyone know if Apple has any plans to create an electronic medical records (EMR) program? And if not, who do I email to suggest just that as a new market in desperate need of some new innovation?

    Does anyone know if Apple has any plans to create an electronic medical records (EMR) program? And if not, who do I email to suggest just that as a new market in desperate need of some new innovation?

    There already are some tools in the App Store (eg. My Medical - https://itunes.apple.com/us/app/my-medical/id347860026?mt=8).
    If you mean something that would interact directly with a Hospitals main system or such, I don't know of any.  There are numerous companies now selling and setting up central records systems around the country, but I don't know of any that are working on companion patient tools yet.
    Some charity and non-profit companies, like MedicAlert Foundation are working on such things and may have mobile apps on their radar, as funds allow them to develop such thing.  MedicAlert already offers an EMIR service online, but no standalone mobile app for it yet (you manage it via their web portal).
    Epocrates (owned by Athena Health) might also have something in the works, or at least an interest in such a thing.

  • How to dynamically create a JSF dataTable from a String[][] array

    Hi, I�m developing an application that uses columns, rows and data instead of any other attributes, so I got from a database Resultset a String[] array with the rows headers, other String[] array with the columns headers, and a String[][] array with the information between every row[] and column[] header al this String arrays depend on a method that receives the group title as a parameter so they are dynamically created, anyway I can display this information in a jsp page but I don�t know how to display this information in a JSF dataTable.
    Does anybody knows how I could do this? and which is the proper way to create a dynamically rows and columns dataTable?

    Hi, I�m developing an application that uses columns, rows and data instead of any other attributes, so I got from a database Resultset a String[] array with the rows headers, other String[] array with the columns headers, and a String[][] array with the information between every row[] and column[] header al this String arrays depend on a method that receives the group title as a parameter so they are dynamically created, anyway I can display this information in a jsp page but I don�t know how to display this information in a JSF dataTable.
    Does anybody knows how I could do this? and which is the proper way to create a dynamically rows and columns dataTable?

  • Cannot create new folders on desktop. Cannot drag new items onto desktop. Desktop in Finder opens with Terminal. Not sure if this has anything to do with upgrading to Mavericks but I need help if anyone has ideas. Thank you.

    I can no longer create new folders on my desktop. The option to do that is now light gray on the drop down menu and can't be selected.
    I cannot drag new items onto desktop any longer either.
    The Desktop in Finder opens with Terminal.
    Folders and items on Desktop open and work normally.
    Not sure if this has anything to do with upgrading to Mavericks but I need help if anyone has ideas.
    Thank you.

    Take these steps if the cursor changes from an arrow to a white "prohibited" symbol when you try to move an icon on the Desktop.
    Sometimes the problem may be solved just by logging out or rebooting. Try that first, if you haven't already done it. Otherwise, continue.
    Select the icon of your home folder (a house) in the sidebar of a Finder window and open it. The Desktop folder is one of the subfolders. Select it and open the Info window. In the General section of the window, the Kind will be either Folder  or something else, such as Anything.
    If the Kind is Folder, uncheck the box marked Locked. Close the Info window and test.
    If the Kind is not Folder, make sure the Locked box is not checked and that you have Read & Write privileges in the  Sharing & Permissions section. Then close the Info window and do as follows.
    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    xattr -d com.apple.FinderInfo Desktop
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You should get a new line ending in a dollar sign (“$”). Quit Terminal.
    Relaunch the Finder.
    If the problem is now resolved, and if you use iPhoto, continue.
    Quit iPhoto if it's running. Launch it while holding down the option key. It will prompt you to select a library. Choose the one you want to use (not the Desktop folder.)

  • How do I reference a dynamically created MovieClip from another MovieClip?

    Hi,
    I'd be grateful for any pointers to the following problem:
         I'm having trouble referencing dynamically created MovieClips (links in a side panel on a Flash website, created from an XML file) from the current MovieClip (the currently selected link).
         I wish to freeze the the link/MovieClip in its mouseOver state once it has been clicked - this part works. When a new link/MovieClip is clicked on, I wish to release the previously clicked-on link from its mouseOver state, which is what I've so far been unable to do.
         My problem seems to be referencing the previous link/MoveClip. I've used the trace statement trace(MovieClip(this).name) to determine that the MovieClips are named item0, item1, item2 and so on. However, I've been unable thus far to reference the previous clip thus far. I've tried to trace the route to the MovieClip from the stage, and also tried MovieClip(parent).item0.gotoAndStop and lots of other different permutations, but to no avail. It's the fact they seem to be in a container called 'panel' which is defeating me.
         Here's a live version I've uploaded, which might explain the problem better. Click on "UBER UNS" in the top menu bar to get to the page in question. It's the links on the left-hand side (Historie, Unser Team, etc.) which are the problem. You'll see that once they've been clicked on they remain in their mouseOver state.
         This is the code in question on the fla file, which is a file I did not create myself. The parts in black work fine; it's the red parts where the problem lies:
    import flash.display.MovieClip;
    panel.buttonMode = true;
    var lang:uint = 1;
    var url_Link:String=MovieClip(root).program.websiteXML .language[lang].pages.titlePage[MovieClip(root).program.linkPage].texts.pageList.txt[numT XT].@link;
    var urlPage:Number=Number(MovieClip(root).program.webs iteXML.language[lang].pages.titlePage[MovieClip(root).program.linkPage].texts.pageList.tx t[numTXT].@linkPage);
    var request:URLRequest;
    var linkIndex:uint;
    var lastClickedLink:MovieClip;   //This is supposed to store the last link that has been clicked - it doesn't work
    panel.addEventListener(MouseEvent.CLICK, clicLink);
    panel.addEventListener(MouseEvent.ROLL_OVER, mouseOverLink);
    panel.addEventListener(MouseEvent.ROLL_OUT, mouseOutLink);
    function mouseOverLink(event:MouseEvent):void {
          MovieClip(this).gotoAndPlay('s1');
    function mouseOutLink(event:MouseEvent):void {
          if(numTXT !== (linkIndex - 1)/5){         //freezes mouseOver state if this is the link for the current page
               MovieClip(this).gotoAndPlay('s2');
    function clicLink(event:MouseEvent):void {
          var linkpage:uint = MovieClip(root).program.linkPage;
          if (url_Link) {
               request = new URLRequest(url_Link);
               navigateToURL(request);
          } else {
               linkIndex = numTXT * 5 + 1;
               if(linkpage == 1){
                   MovieClip(root).chPages.cont.page_about_mc.page3Tu  rner_mc.gotoAndStop([linkIndex]);
              } else if (linkpage == 2){
                   MovieClip(root).chPages.cont.page3_mc.page3Turner_  mc.gotoAndStop([linkIndex]);
         lastClickedLink.gotoAndPlay('s2');  // this is supposed to release the previous clicked-on link from it's mouseOver state - doesn't work
         lastClickedLink = MovieClip(this).name;    //this is supposed to set the new link as the last link clicked after the old one has been released from it's mouseOver state - doesn't work
    If anyone can help, that would be great.

    What you might be after for that line is to use:
    lastClickedLink = MovieClip(event.currentTarget);
    For what you show, the name property of an object is a String, so I would expect you to be getting an error regarding trying to get a String to act like a MovieClip when you try to tell it to gotoAndPlay('s2').

  • Adding AJAX support for dynamically created panelGrid components

    Hi everyone!
    I would like to ask help from anyone who may have encountered similar problem before...
    I have a panelGrid whose component is dynamically created by the backing bean. Here is my JSF code:
    <h:panelGrid styleClass="panelGrid"
              rowClasses="tsPanelGridRowClass" columns="8" cellpadding="0"
              cellspacing="2" bgcolor="transparent" style="margin-left: 10px"
              id="revCenterItemPanelGrid"
              binding="#{pc_Touchscreen_pull_select_item.revCenterItemPanelGrid}">
    </h:panelGrid>And here is the code for backing bean that adds content inside the panelGrid:
    HtmlOutputText index = (HtmlOutputText) app.createComponent(HtmlOutputText.COMPONENT_TYPE);
    index.setId("1");
    index.setValue(String.valueOf(1));
    index.setStyle("datagridtext");
    revCenterItemPanelGrid.getChildren().add(index);On click of a button...
    <a4j:commandButton value="Update"
              styleClass="commandExButtonPou2" id="button1" reRender="revCenterItemPanelGrid"
              actionListener="#{pc_Touchscreen_pull_select_item.doSortActionListener2}">
              <f:attribute name="order" value="2"></f:attribute>
              <f:attribute name="toggleState" value="off"></f:attribute>
    </a4j:commandButton>the backing bean is supposed to update the value of the outputText
    doSortActionListener2() {
    HtmlOutputText index = (HtmlOutputText) app.createComponent(HtmlOutputText.COMPONENT_TYPE);
    index.setId("2");
    index.setValue(String.valueOf(2));
    index.setStyle("datagridtext");
    revCenterItemPanelGrid.getChildren().add(index);
    }However, update doesn't seem to work. I have been successful in adding ajax support to a panelGrid that is not dynamically created but not for this one.
    Has anyone encountered this error before? Any ideas?
    Thanks in advance!

    Hi everyone!
    I would like to ask help from anyone who may have encountered similar problem before...
    I have a panelGrid whose component is dynamically created by the backing bean. Here is my JSF code:
    <h:panelGrid styleClass="panelGrid"
              rowClasses="tsPanelGridRowClass" columns="8" cellpadding="0"
              cellspacing="2" bgcolor="transparent" style="margin-left: 10px"
              id="revCenterItemPanelGrid"
              binding="#{pc_Touchscreen_pull_select_item.revCenterItemPanelGrid}">
    </h:panelGrid>And here is the code for backing bean that adds content inside the panelGrid:
    HtmlOutputText index = (HtmlOutputText) app.createComponent(HtmlOutputText.COMPONENT_TYPE);
    index.setId("1");
    index.setValue(String.valueOf(1));
    index.setStyle("datagridtext");
    revCenterItemPanelGrid.getChildren().add(index);On click of a button...
    <a4j:commandButton value="Update"
              styleClass="commandExButtonPou2" id="button1" reRender="revCenterItemPanelGrid"
              actionListener="#{pc_Touchscreen_pull_select_item.doSortActionListener2}">
              <f:attribute name="order" value="2"></f:attribute>
              <f:attribute name="toggleState" value="off"></f:attribute>
    </a4j:commandButton>the backing bean is supposed to update the value of the outputText
    doSortActionListener2() {
    HtmlOutputText index = (HtmlOutputText) app.createComponent(HtmlOutputText.COMPONENT_TYPE);
    index.setId("2");
    index.setValue(String.valueOf(2));
    index.setStyle("datagridtext");
    revCenterItemPanelGrid.getChildren().add(index);
    }However, update doesn't seem to work. I have been successful in adding ajax support to a panelGrid that is not dynamically created but not for this one.
    Has anyone encountered this error before? Any ideas?
    Thanks in advance!

  • Problem with dynamically created columnchart (FB 4 and 4.5)

    I have an application (written in FB4 but I've imported to FB4.5 with no difference in behaviour) which dynamically creates cartesian charts. The total column values should be the same but the user can group them according to different fields. This works fine except for one of the possible grouping options. When that is used, I can see that all the data is present in the dataprovider, but one of the groups is just not shown - or rather when you hover over the column it shows "0" as the value for that group.
    This is the code I run when the HTTP query comes back:
    private function gotGroupHistory():void{
        if (hsGroupHistory.lastResult.list.item is mx.utils.ObjectProxy) {
            histModelSource = new ArrayCollection;
            histModelSource.addItem(hsGroupHistory.lastResult.list.item);
        } else {
            histModelSource = hsGroupHistory.lastResult.list.item;
        var grouparray:Array=new Array();
        var cset:ColumnSet = new ColumnSet;
        cset.type="stacked";
        var csplan:LineSeries=new LineSeries();
        csplan.displayName="Target";
        csplan.yField="plan";
        for each(var thisitem:String in chartgroups) {
            var cs:ColumnSeries=new ColumnSeries();
            cs.yField=thisitem;
            cs.displayName=thisitem;
            cset.series.push(cs);
            columnchart1.series=[cset];
            columnchart1.series.push(csplan);
            columnchart1.invalidateSeriesStyles();
            columnchart1.series=columnchart1.series;
            legend1.dataProvider=columnchart1;
    As I said everything appears to be correct - the data provider has the data for all the groups but just 1 of them is not displayed. The legend also shows the name of the missing group. I really cannot figure out what is going on. Can anyone suggest my next line of investigation please?
    Thanks
    Martin

    This problem is solved after updating to IOS 7.

  • Dynamically Create Repeater Element in ActionScript

    Hi,
    I'm trying to dynamically create a repeater control with an
    image and a label control. I can do it directly in the MXML file
    but when I try and covert it into ActionScript it's not working.
    Can anyone see what the problem is with my code?
    public function GetPalettes():void{
    removeChild(document.FrontPage);
    Palettes.method = "GET";
    params = {"method": "GetPalettes", "BodyPartNo":
    document.PalettesMenu.selectedItem.@partNo};
    Palettes.cancel();
    Palettes.send(params);
    var VerticalBox:VBox = new VBox();
    VerticalBox.x = 10;
    VerticalBox.y = 10;
    VerticalBox.id = "VerticalBox";
    var PaletteRepeater:Repeater = new Repeater();
    PaletteRepeater.dataProvider =
    "{Palettes.lastResult.Palette}";
    PaletteRepeater.startingIndex = 0;
    PaletteRepeater.id = "PaletteRepeater";
    var PaletteImage:Image = new Image();
    PaletteImage.setStyle("HorizontalAlign", "left");
    PaletteImage.source = "
    http://localhost/Flex/Personalised%20Palettes-debug/{PaletteRepeater.currentItem.@PictureS rc}Med.png";
    PaletteImage.useHandCursor = true;
    PaletteImage.buttonMode = true;
    PaletteImage.mouseChildren = false;
    PaletteImage.id = "PaletteImage";
    var PaletteDescription:Label = new Label();
    PaletteDescription.text =
    "{PaletteRepeater.currentItem.@Description}";
    PaletteDescription.id = "PaletteDescription";
    document.MainPage.addChild(VerticalBox);
    VerticalBox.addChild(PaletteRepeater);
    PaletteRepeater.addChild(PaletteImage);
    PaletteRepeater.addChild(PaletteDescription);
    Thanks

    "katychapman85" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hey Amy,
    >
    > I've put a thread up about this but thought I'd ask you
    as well as you've
    > been
    > a great help to me so far.
    >
    > I have this function:
    > public function GetOptions(Menu:int):void{
    > document.MenuOptions.url =
    > "
    http://localhost/Flex/Personalised%20Palettes-debug/MenuOptions.php?Menu=";
    > document.MenuOptions.url += Menu;
    > document.MenuOptions.send();
    > }
    >
    > What I'm trying to do is when a user clicks on a Radio
    button this
    > function is
    > called and the number of the Menu required is sent to
    the function.
    >
    > I've added this Event Listener to my Radio Button:
    >
    >
    document.RadioButtons2.addEventListener(MouseEvent.CLICK,
    > function():void{GetOptions(2);});
    >
    > However, it's not working. Everything I've read suggests
    using an
    > anonymous
    > function in the Event Listener to pass the menu
    parameter but for some
    > reason
    > it's not working.
    What version of Flex are you using? The Help for Flex 3 has
    this to say:
    http://www.adobe.com/livedocs/flex/3/html/help.html?content=events_05.html
    Defining event listeners inline
    The simplest method of defining event handlers in Flex
    applications is to
    point to a handler function in the component's MXML tag. To
    do this, you add
    any of the component's events as a tag attribute followed by
    an ActionScript
    statement or function call.
    You add an event handler inline using the following syntax:
    <mx:tag_name event_name="handler_function"/>
    For example, to listen for a Button control's click event,
    you add a
    statement in the <mx:Button> tag's click attribute. If
    you add a function,
    you define that function in an ActionScript block. The
    following example
    defines the submitForm() function as the handler for the
    Button control's
    click event:
    <mx:Script><![CDATA[
    function submitForm():void {
    // Do something.
    ]]></mx:Script>
    <mx:Button label="Submit" click="submitForm();"/>
    Event handlers can include any valid ActionScript code,
    including code that
    calls global functions or sets a component property to the
    return value. The
    following example calls the trace() global function:
    <mx:Button label="Get Ver" click="trace('The button was
    clicked');"/>
    There is one special parameter that you can pass in an inline
    event handler
    definition: the event parameter. If you add the event keyword
    as a
    parameter, Flex passes the Event object and inside the
    handler function, you
    can then access all the properties of the Event object.
    The following example passes the Event object to the
    submitForm() handler
    function and specifies it as type MouseEvent:
    <?xml version="1.0"?>
    <!-- events/MouseEventHandler.mxml -->
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml">
    <mx:Script><![CDATA[
    import mx.controls.Alert;
    private function myEventHandler(event:MouseEvent):void {
    // Do something with the MouseEvent object.
    Alert.show("An event of type '" + event.type + "'
    occurred.");
    ]]></mx:Script>
    <mx:Button id="b1" label="Click Me"
    click="myEventHandler(event)"/>
    </mx:Application>
    It is best practice to include the event keyword when you
    define all inline
    event listeners and to specify the most stringent Event
    object type in the
    resulting listener function (for example, specify MouseEvent
    instead of
    Event).
    You can use the Event object to access a reference to the
    target object (the
    object that dispatched the event), the type of event (for
    example, click),
    or other relevant properties, such as the row number and
    value in a
    list-based control. You can also use the Event object to
    access methods and
    properties of the target component, or the component that
    dispatched the
    event.
    Although you will most often pass the entire Event object to
    an event
    listener, you can just pass individual properties, as the
    following example
    shows:
    <?xml version="1.0"?>
    <!-- events/PropertyHandler.mxml -->
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml">
    <mx:Script><![CDATA[
    import mx.controls.Alert;
    private function myEventHandler(s:String):void {
    Alert.show("Current Target: " + s);
    ]]></mx:Script>
    <mx:Button id="b1" label="Click Me"
    click="myEventHandler(event.currentTarget.id)"/>
    </mx:Application>
    Registering an event listener inline provides less
    flexibility than using
    the addEventListener() method to register event listeners.
    The drawbacks are
    that you cannot set the useCapture or priority properties on
    the Event
    object and that you cannot remove the listener once you add
    it.
    don't see anything in there about anonymous functions...?

Maybe you are looking for

  • How to change default DC that AD snap-in connects to

    I installed RSAT tools on a Windows 7 VM. Every time I open Active Directory it connects to the DC that is geographically the farthest away -- across the country!!! MAKES SOOOOOOOOO MUCH SENSE. How can I configure the snap-in to connect to something

  • Is using a Delta Electronics DTX power supply in a Quicksilver 2002 risky?

    After verifying that my original PSU was dead according to a procedure found in the forums, I purchased what was represented as an identical model (AcBel 614-0157 344W) but I received a Delta Electronics 614-0158 355W model instead. The main connecto

  • Show only with error messages

    How can I have this: <div class="userMessage"> show up in my page only if there are any error messages to display? I have tried to to bind an outputText to my backing bean like this: JSF page: <h:outputText value="<div class=userMessage>" id="userMes

  • HDDVD authoring

    hi iam a newbie to HDDVD authoring in DVDSP, i planned to buy a new macpro and aja or decklink card for capturing the HD content, pls explain me the process involved in making the source for HDDVD. i have my HD source in D5 and also suggest a good HD

  • MIGO BADI - Transfer Posting

    Dear forumers, I have a requirement as such:- Upon a transfer posting in the transaction MIGO, some data fields will need to be updated in RESB and another custom table based on certain conditions. This transfer posting will be for issuing / transfer