IllegalArgumentException in VerticalFieldManager to add several ObjectChoiceFields

Hi all

I'm IllegalArgumentException in VerticalFieldmanager to add several ObjectChoiceFields.


VerticalFieldManager row = new VerticalFieldManager(VerticalFieldManager.NO_HORIZONTAL_SCROLL |VerticalFieldManager.NO_VERTICAL_SCROLL);VerticalFieldManager row1 = new VerticalFieldManager(VerticalFieldManager.NO_HORIZONTAL_SCROLL |VerticalFieldManager.NO_VERTICAL_SCROLL); for(int i = 0; i < blackBerryContacts.size(); i++){BlackBerryContact item =(BlackBerryContact)blackBerryContacts.elementAt(i);             choiceP[i] = new ObjectChoiceField("", choiceFld,0, FIELD_RIGHT);
                int index = choiceP[i].getSelectedIndex();
                String selectedChoice = choiceFld [index];
                chkBoxField[i] = new CheckboxField(sb.toString(), true,
                        Field.USE_ALL_WIDTH | CheckboxField.FIELD_LEFT)
                {
                     //Invoked when this field receives the focus.
                    protected void drawFocus(Graphics g, boolean on)
                    {
                        if (g.getBackgroundColor() != 3098850)
                        {
                            XYRect xy = g.getClippingRect();
                            g.setBackgroundColor(0xf9f8f5);
                            //g.fillRect(xy.x,xy.y,xy.width,xy.height);
                            g.clear();
                        }
                        super.paint(g);
                    }
                    protected void paint(Graphics g)
                    {
                        int x = this.getIndex();
                        XYRect xy = g.getClippingRect();

                        if (g.getBackgroundColor() != 3098850)
                        {
                            g.setBackgroundColor(0xf9f8f5);
                            //g.fillRect(xy.x,xy.y,xy.width,xy.height);
                            g.clear();
                        }
                        super.paint(g);
                    }
                    protected boolean navigationClick(int status, int time) {
                        if (this.getChecked())
                            this.setChecked(false);
                        else
                            this.setChecked(true);
                        //fieldChangeNotify(1);
                        return true;
                    }
                };//----------
                row.add(chkBoxField[i]);
                row1.add(choiceP[i]);
            }

chkBoxField can be added in VerticalFieldManager but ObjectChoiceField is exception.

Please help me.

Thank you

DK.

Unfortunately, ObjectChoiceField does not allow to have another field in the same row. This area needs the line of the screen. When you try to add the field to the line where the ObjectChoiceField - you get an error.

I recommend the following approach.

Data model

public class BlackberryContact {

    private String Fullname;

  ....

  private Vector contactInfo;

  public void addContactInfo(BlackberryContactInfo info) {      contactInfo.addElement(info);     ....  }}

public class BlackberryContactInfo {

    public final int CONTACT_TYPE_HOME_PHONE = 1; public final int CONTACT_TYPE_WORK_PHONE = 2; public final int CONTACT_TYPE_EMAIL = 3;

    // type of contact: phone, email, etc private final int contactType; 

  // contact info: phoneNumber, emailAddress    private final String contactInfo;

  // constructor, use CONTACT_TYPE_.. constants as contactType      public BlackberryContactInfo(String contactInfo, int contactType) {       this.contactInfo = contactInfo;       this.contactType = contactType;   }   

  public int getType() {        return contactType;   }   

    public String getInfo() {     return contactInfo;   }   }

VIEW

Implement a screen to display BlackberryContact, say BlackberryContactView

Add the text field to refer to and add ListField to view available contact information (emails, phones, etc.).

Each person can have different qty of coordinates, ListField is the best choice.

Will look like the screen layout is shown on the picture:

http://picasaweb.Google.ru/tbilisoft/BlackberryForum#5285460326711217906

Tags: BlackBerry Developers

Similar Questions

  • How to add several presets in a reactive mode design without having to resize the screen every time

    I want to be able to add several screen size presets with the ability to view sensitive design but do not want to resize the screen and add each individually through the predefined custom function.

    Have you seen some messages on the internet (http://g-liu.com/blog/2013/08/firefox-rdm-presets/) who say it can be done, but could not find where the config is required to worm 26.0?

    Hello

    Work now how to do this. You first create an entry called "devtools.responsive.UI.presets" in the configuration file, and then add in the predefined string:

    If the steps are:

    (1) open a new tab in Firefox or window and enter about: config

    (2) (if a warning message appears, click OK.)

    (3) create a new entry devtools.responsive.UI.presets - right click and select 'new', then 'string' - under enter the preference name of the type "devtools.responsive.UI.presets" and then click OK. When the box of the input string appears simply add the following shows

    [{"key": "CGA: 320 x 200", "width": 320, "height": 200}, {"key": "QVGA: 320 x 240", "width": 320, "height": 240}, {"key": "CIF: 352 x 288", "width": 352, "height": 288}, {"key": "SIF: 384 x 288", "width": 384, "height": 288}, {"key": "HVGA: 480 x 320", "width": 480, "height": 320}, {"key": "(NTSC) VGA: 640 x 480", "width": 640, "height": 480}, {"key": "PAL: 768 x 576", "width": 768, "height": 576}, {"key": "WVGA: 800 x 480", "width": 800, "height": 480}, {"key": "SVGA: 800 x 600", "width"}] {: 800, "height": 600}, {"key": "WVGA (NTSC): 854 x 480", "width": 854, "height": 480}, {"key": "PAL: 1024 x 576", "width": 1024, "height": 576}, {"key": "WSVGA", "width": 1024, "height": 600}, {"key": "XGA: 1024 x 768", "width": 1024, "height": 768}, {"key": "1152 x 768", "width": 1152, "height": 768}, {"key": "XGA: 1152 x 864", "width": 1152, "height": 864}, {"key": "WXGA: 1280 x 600", "width": 1280, "height": 600}, {"key": "HD 720: 1280 x 720", "width": 1280, "height": 720}, {"key": "WXGA} {: 1280 x 768 ","width": 1280,"height": 768}, {"key":" WXGA: 1280 x 800 ","width": 1280,"height": 800}, {"key":" SXGA: 1280 x 1024 ","width": 1280,"height": 1024}, {"key":" 980 x 1280 ","width": 980,"height": 1280}, {"key":" Microsoft Surface RT: 320 x 240 ","width": 1366,"height": 768}, {"key":" 1400 x 900 ","width": 1400,"height": 900}, {"key":" 1400 x 960 ","width": 1400,"height": 960}, {"key":" SXGA +: 1400 x 1050 ","width": 1400,"height": 1050}, {"key":" 1400 x 1080 ","width": 1400,"height": 1080}, {"key":"1600 x 900"} {, "width": 1600, "height": 900}, {"key": "UXGA: 1600 x 1200", "width": 1600, "height": 1200}, {"key": "WSXGA +: 1680 x 1050", "width": 1680, "height": 1050}, {"key": "1920 x 900", "width": 1920, "height": 900}, {"key": "HD 1080: 1920 x 1080", "width": 1920, "height": 1080}, {"key": "WUXGA: 1920 x 1200", "width": 1920, "height": 1200}, {"key": "2K: 2048 x 1080", "width": 2048, "height": 1080}, {"key": "QXGA: 2048 x 1536", "width": 2048, "height": 1536}, {"key": "WQHD: 2560 x 1440", "width": 2560, "height": 1440}, {"key" {: "WQXGA: 2560 x 1600", "width": 2560, 'height': 1600}, {'key': "QSXGA: 2560 x 2048", "width": 2560, 'height': 2048 '}, {'key': "2160 p: 3840 x 2160", "width": 3840, 'height': 2160 '}, {'key': "4 k: 4096 x 2160", "width": 4096, 'height': 2160 '}, {'key': "4320 p: 7680 x 4320", "width": 7680, 'height': 4320 "}, {'key':" 8 k: 8192 x 4608 ","width": 8192, 'height': 4608 '}, {'key':" 8640 p: 15360 x 8340 ""} [{, "width": 15360, 'height': 8640}]

    then click OK

    All new presets should now be sensitive design mode.

    Worked for me!

  • Whenever I add several or even just a trac to my iphone, it takes several minutes 'PREPARATION OF the UPDATE.

    Hello world...
    Whenever I add several [or one] track from my iTunes to my iPhone library, there are several minuets 'PREPARE to UPDATE' and then he goes to copy the tracks I wanted with 900 or so titles and several videos I did not update..., can someone explain why this is happening?
    I think I have all the auto update features are disabled, and I do not use the cloud or new music thingy.

    Thank you!

    Fredy

    The following steps should solve the problems around the synchronization, assuming that all the content you want in your library.

    (If it isn't see recover your iTunes from your iPod or an iOS device)

    1. Backup device.
    2. Restoration as a new device.
    3. Restore the backup that you made earlier.

    NB. A feature introduced with iOS 9 called thinning or slicing app app allows each device to download just the code and resources required by this device, resulting in smaller downloads and a better use of the storage on the device. Therefore the device is no longer the universal version of the application that can be installed on any device to transfer applications is no longer supported. I hope that Apple will bring some changes to how it works, but in the meantime, you can download past purchases from iTunes or activate the automatic shopping app downloads to ensure that iTunes has always the apps you want on your device. As long as you make sure that all of the apps are present and updates in iTunes before you attempt a restore there should be no loss of data. I cannot confirm, but it seems a way to recent update all data are restored and apps that are not in the library are waiting to download from the iTunes Store over Wi - Fi, in a similar way to the restoration of the iCloud way works.

    TT2

  • Is touchId slowly if you add several fingerprints?

    Is touchId slowly if you add several fingerprints?

    I added 4 prints of my impressions on my iPhone 6s and I think that touchId is slowly... Is that possible or is it just my feeling?

    Thank you for your answer

    (I'm not English sorry)

    Hi ValMineFirst,

    I understand that you want to know if Touch ID is slower when you add more traces of fingers. It might be possible, but it should not be extremely slow. I've also included some useful information below in this post who can help you if you have problems with Touch ID, or if it's slow:

    Useful information:

    • Remember, lotions, dry skin can even affect touch ID, as well as some activities as in the shower.
    • Make sure that your fingers are clean and dry before using the contact ID.
    • For Touch ID activate, it must collect your finger. By putting the finger on the metal ring, he tells touch ID to start playback of your fingerprint.
    • Remove all accessory, or protective screen which can cover the metal ring or the home button.
    • Try to register another finger
    • Cover your finger on the button home completely and touch the metal ring.
      • Contact ID is scanning, do not press too hard home button, type too fast or move your finger.
    • Make sure that the "home" button and the metal ring are clean and dry.
    • Clean the 'home' button and ring of metal with a clean, dust free of lint to remove any dirt or debris.
    • Make sure that you use the latest version of iOS too.

    I use Touch ID most of the time on my iPhone, and I noticed that if the home button is not clean, it can be harder to Touch ID scan your finger, so I would definitely recommend cleaning the House button every once in a while is much easier to Touch ID scan your fingers.

    I hope this helps. If you have more questions, feel free to ask!

  • Add several domain in Active Directory

    Add several domain in Active Directory

    Hello vinod Thakur Linux,.

    Microsoft Communities is consumer related questions about Windows 8, Windows 7, Windows Vista and Windows XP. For questions about the field of issues related to Active Directory, it would be best to ask your question on the TechNet forum.

    Click here to transfer your question in TechNet for Windows Server in the Directory Services forum.  They will be able to solve your problem.

    Thank you

    Marilyn

  • How to add several records of existing virtual machines

    Is it possible to add several drives in one shot to a virtual machine?

    I know it's possible with the new - vm cmdlet, and if I manually modify the virtual machine, I can add as much as I want.

    The cmdlet New-hard drive allows only 1 at a time, I can say.

    Any suggestions?

    You are right, that the cmdlet New - hard drive allows the addition of 1 HDD at the time.

    If you want to add several hard disks, you will need to use the ReconfigVM_Task method.

  • Prime Minister CC does not allow me to add several MTS files in the same sequence?

    Hello. I've been shooting on a Sony A7s ii. When editing first CC does not allow me to add several MTS files in the same sequence? It will add the audio but no Visual.

    Any ideas?

    Hi Bunglefoot,

    Hello. I've been shooting on a Sony A7s ii. Which first CC edition does not allow me to add several MTS files in the same sequence? It will add the audio but no Visual.

    Please visit this link:

    FAQ: Why no audio or video will not at the track where I let down?

    Thank you

    Ilyes Singh

  • How to add several tracks with offset path?

    Hello

    I would like to create a script that can create multiple strokes with offset path (incremental or material (user will enter value))

    Is it possible to add several traces? I have found no examples in the script reference or elsewhere.

    Note: Mixtures does not give exactly the same results because sometimes especially when you are dealing with fonts outline paths is to be wrongly mixed a way.

    I'd be happy if someone give at least the main command loop.  I'll try to rest and will share here because I find the solution.

    Thank you

    Best regards.

    question.jpg

    OK, I'm going to assume your sub windows through the capture in the opening screen post.

    This is a completely different approach.

    This example uses executeMenuCommand so is only compatible with CS6 +.

    and Windows is only used from VB

    //-------------------------------------------------------------------
    
    // Offset Path in apperence panel
    
    // Script by Qwertyfly
    // contact [email protected]
    // version 0.1 beta
    
    //-------------------------------------------------------------------
    
    //number of offset paths
    var Qty = 5;
    
    //amount to offset
    var Offset = -5;
    
    //units to offest in
    var Unit = "px"; 
    
    //time to wait in milliseconds before sending keys.
    // more time is slower but more stable
    // I was able to run this with it set to 0, but a little bit of a pause is a good idea.
    var wait = 10;
    
    //-------------------------------------------------------------------
    function FillDialog_Windows(distance){
        var VB = [
            'WScript.Sleep ' + wait + '',
            'Set WshShell = WScript.CreateObject("WScript.Shell")',
            'WshShell.SendKeys "' + distance + '"',
            'WshShell.SendKeys "{ENTER}"'
            ].join('\n');
        var VBgo = new File('~/go.vbs');
        VBgo.open('w');
        VBgo.write(VB);
        VBgo.close();
        VBgo.execute();
    }
    function MakeStroke(offset){
        app.executeMenuCommand('Adobe New Stroke Shortcut');
        FillDialog_Windows(offset);
        app.executeMenuCommand('Live Offset Path');
    }
    
    for(var i = 1; i		   
  • I used him copy / paste to add several checkboxes on my form, but now in preview mode when I check the first box it automatically checks all the boxes.  How can I stop this from happening?

    I used him copy / paste to add several checkboxes on my form, but now in preview mode when I check the first box it automatically checks all the boxes.  How can I stop this from happening?

    For later use, it happened because your fields have the same field name, and fields with the same name automatically have the same value.

    So all you had to do was so each had a unique name and it would have worked, but using the command create several fields is preferable because it renames the fields for rename you them.

  • Add several lines in tabular form which object to list different shows to all rows

    Hello

    Apex 4.2, oracle 11 g 2

    I have a table on the emp table where when I click on Add button line

    then I get no lines that are stored in the string.

    for this element of the page creation PX_job that return the value of separate employment with two points separate values by the

    for example seller: Analyst: Clerk: Manager: President

    to add several lines to add lines.

    by using the dynamic action

    event: click on

    selection type: button

    Action: run javascript code

    as follows

    var a = $v("PX_job").split(":") // Delimiter is a string
    for (var i = 0; i < a.length; i++)
    {
    
    apex.widget.tabular.addRow();
    
    }
    
    

    This work that well it adds the number ranks equal to 5

    now I'm post job as select list

    now I want to display the list of work in form of tables as row 1 poster list entry, second row entry list second poster... last line shows last entry from list

    but working this column in all the rows by first writing list of projects in the work list

    How to solve this problem.

    Leave.

    Hi, go,

    Yes, you need to replace "myvalue" with the return value of the select list. But even in this case it would be a problem because it would change all the lines.

    In any case, I changed the code to do this:

    apex.widget.tabular.addRow (); Add the line

    var checkboxIndex is apex.jQuery('input[name=f01][value=0]').eq (i) .parent () .parent () .index ();. get the number of the line that was added

    var SelectItem = apex.jQuery('select[name=f04]').eq (checkboxIndex); Use this number to get the selection list

    iOption var = apex.jQuery (SelectItem) .children () .eq (i) .val (); Get the i option value

    apex.jQuery (SelectItem) .val (iOption); Set the value of the option

    I hope it's clear.

    Kind regards

    Joni

  • Add several different nodes from one xmltype to another

    Hello

    Given the two following bits of XML:

    < root >
    < xmlnode >
    val1 < subnode1 > < / subnode1 >
    val2 < subnode2 > < / subnode2 >
    < / xmlnode >
    < xmlnode >
    val3 < subnode1 > < / subnode1 >
    < subnode2 > val4 < / subnode2 >
    < / xmlnode >
    < / root >

    < a >
    < b > < /b > valb
    valc < c >/< c >
    < d >
    vald1 < d1 > < / d1 >
    < d2 > vald2 < / d2 >
    / < d: >
    Vale of < e > < /e >
    valf < f > < /f >
    < g >
    valg1 < g1 > < / g1 >
    valg2 < g2 > < / g2 >
    / < g >
    < h >
    valh1 < h1 > < / h1 >
    valh2 < h2 > < / h2 >
    < HR >
    < /a >

    I need to insert a few nodes of the second xml in a new node at the top of the first xml, as follows:

    < root >

    < InfosSuppl >

    < b > < /b > valb

    < d >

    vald1 < d1 > < / d1 >

    < d2 > vald2 < / d2 >

    / < d: >

    valf < f > < /f >

    < h >

    valh1 < h1 > < / h1 >

    valh2 < h2 > < / h2 >

    < HR >

    < / extrainfo >

    < xmlnode >

    val1 < subnode1 > < / subnode1 >

    val2 < subnode2 > < / subnode2 >

    < / xmlnode >

    < xmlnode >

    val3 < subnode1 > < / subnode1 >

    < subnode2 > val4 < / subnode2 >

    < / xmlnode >

    < / root >

    At the time I thought that I had to only add a few nodes (eg. b and f), I used:

    with sample_data as (select xmltype ("< root >

    < xmlnode >

    val1 < subnode1 > < / subnode1 >

    val2 < subnode2 > < / subnode2 >

    < / xmlnode >

    < xmlnode >

    val3 < subnode1 > < / subnode1 >

    < subnode2 > val4 < / subnode2 >

    < / xmlnode >

    (< / root > ') xml_to_update,.

    XmlType ("< a >

    < b > < /b > valb

    valc < c >/< c >

    < d >

    vald1 < d1 > < / d1 >

    < d2 > vald2 < / d2 >

    / < d: >

    Vale of < e > < /e >

    valf < f > < /f >

    < g >

    valg1 < g1 > < / g1 >

    valg2 < g2 > < / g2 >

    / < g >

    < h >

    valh1 < h1 > < / h1 >

    valh2 < h2 > < / h2 >

    < HR >

    (< /a > ') xml_to_extract_from

    the double)

    Select sd.xml_to_update,

    SD.xml_to_extract_from,

    insertXMLbefore (sd.xml_to_update,

    "/ root/xmlnode [1]."

    XmlType ("< extrainfo > ' |")

    "< b >" |

    ExtractValue (sd.xml_to_extract_from, ' / a/b / text () ').

    "< /b > < f >" |

    ExtractValue (sd.xml_to_extract_from, ' / a/f / text () ').

    ' / f <>|

    ((/ extrainfo > ')) updated_xml

    of sample_data sd;

    that worked, but I now need to add several other knots, I don't think that is the wisest way to continue to use. I tried Googling and forum searching but my search-fu must be low today, because I have not found similar examples that I can copy base my solution to. I'm sure that there is a funky way of doing it using xquery or something, but I admit not having a clue about where to start even with xquery!

    We are on 11.2.0.3, and the xmltype columns are stored as a CLOB (sorry Marco Gralike!).

    Can anyone help point me in the right direction please?

    Hello

    Using XQuery Update:

    SQL > with sample_data like)

    2 Select xmltype (')

    3

    4                        val1

    5                        val2

    6

    7

    8                        val3

    9                        val4

    10

    11 ') xml_to_update,.

    12 xmltype (')

    13                      valb

    14                      valc

    15

    16                        vald1

    17                        vald2

    18

    19                      vale

    20                      valf

    21

    22                        valg1

    23                        valg2

    24

    25

    26

    valh1

    27

    valh2

    28

    29 ") xml_to_extract_from"

    30 double

    31)

    32 select xmlserialize (document

    33 xmlquery)

    34 ' copy $d: = $old

    35 edit)

    36 Insert element extrainfo {} node

    $37 new/a/b

    38, $ new/a.

    39, $ new/e/f

    40, $/ a/h new

    41} as the first in $d / root

    42              )

    43 return $from

    44 from sd.xml_to_update as "old."

    45, sd.xml_to_extract_from as 'new '.

    46 by returning the content

    47           )

    dash 48

    49         )

    50 to sample_data sd;

    XMLSERIALIZE (DOCUMENTXMLQUERY)

    --------------------------------------------------------------------------------

    valb

    vald1

    vald2

    valf

    valh1

    valh2

    val1

    val2

    val3

    Val4

  • is it possible to add several portfolios in a slide show?

    I would like to add a slideshow on a page of my site. I would like to add several records with different images in this slide show. How is that possible?

    Thanks for the reply!

    Just delete all the content you find on maps, including the image. Then place a slide show on the map and fill with images.

  • Script to add several vPortGroups on a vSvitch on the mulpitple hosts

    Hello

    I have a small script to add several vPortGroups on a vSvitch on mulpitple of the hosts.

    The Script looks like:

    $ObjHosts = get-VMHost host12 * | Sort-Object-property name

    Import-Csv "C:\vPortGroups.csv" - UseCulture | %{
    {foreach ($objHost to $ObjHosts)
    $strVSwitch = get-Virtualswitch - VMHost (Get-VMHost $objHost) | WHERE-object {$_.} {Name - match "$_.strVSwitch"}
    Write-Host "Adding virtual port group" $_.strNewVPG "with VLAN Tag' $_.strNewVlanTag 'to' $_.strVSwitch 'on' $objHost
    New-VirtualPortGroup-name "$_.strNewVPG"-VirtualSwitch "$_.strVSwitch"-VLanId ' $_.strNewVlanTag '.
    }
    }

    The input file looks like:

    strNewVPG; strVSwitch; strNewVlanTag
    "4.244.151.0 - 24"; «vSwitch1 «;» 120

    If we use only the line "Write-Host"Adding Virtual Port Group"$_.strNewVPG" with VLAN Tag ' $_.strNewVlanTag 'to' $_.strVSwitch 'on' $objHost' "

    the output is "add the port group virtual 4.244.151.0 - 24 with VLAN Tag 120 to vSwitch1 on d100spwesxc3101.d100.intern.

    Thus, the input file is correct and legible for the script.

    If I use the full script, the output message is:

    New-VirtualPortGroup: cannot bind parameter 'VLanId '. Cannot convert value ' @{strNewVPG = 4.244.151.0 - 24;} '. strVSwitch = vSwitch1; "strNewVlanTag = 120} .strNewVlanTag" to type "System.Int32". Error: "I."
    nput string was not in a correct format. »
    C:\Dokumente und Einstellungen\user1\Eigene Dateien\VMWare PowerShell Scripte\add_VirtualPortGroup_by_inputfile.ps1:7 tank: 83
    + New-VirtualPortGroup-name "$_.strNewVPG"-VirtualSwitch ' $_.strVSwitch ' VLanId - < < < < "$_.strNewVlanTag."
    + CategoryInfo: InvalidArgument: (:)) [new VirtualPortGroup], ParameterBindingException)
    + FullyQualifiedErrorId: CannotConvertArgumentNoMessage, VMware.VimAutomation.ViCore.Cmdlets.Commands.Host.NewVirtualPortGroup

    What's not here?

    I made a few changes to your script. You can try the new version?

    $ObjHosts = Get-VMHost host12* |Sort-Object -Property Name
    
    Import-Csv "C:\vPortGroups.csv" -UseCulture | %{
        $vPortGroup = $_
        foreach($objHost in $ObjHosts){
            $strVSwitch = Get-Virtualswitch -VMHost (Get-VMHost $objHost) | where-object { $_.Name -match $vPortGroup.strVSwitch }
            Write-Host "Adding Virtual Port Group" $vPortGroup.strNewVPG "with VLAN Tag" $vPortGroup.strNewVlanTag "to" $vPortGroup.strVSwitch "on" $objHost.Name
            New-VirtualPortGroup -Name $vPortGroup.strNewVPG -VirtualSwitch $strVSwitch -VLanId $vPortGroup.strNewVlanTag
        }
    }
    

    One of the main problems was that $_ represents only the object from the pipeline last. So I added the line $vPortGroup = $_ to keep the line from the file entry in the variable $vPortGroup.

    Best regards, Robert

  • Add several attribute of a tag in the xml file

    Hello

    I have a donnees_xml in the xml_test_table of the table in the format

    <? XML version = "1.0"? >
    rowset <>
    < ROW >
    < CLASS > XII has < / CLASS >
    KATE < TEACHER > < / TEACHER >
    < STUDENT_STRENGTH > 30 < / STUDENT_STRENGTH >
    < 50 OFFICES > < / DESKS >
    < / ROW >
    < ROW >
    B XII < CLASS > < / CLASS >
    < STUDENT_STRENGTH > 40 < / STUDENT_STRENGTH >
    < NUMBER OF GIRLS 15 > < / NUMBER OF GIRLS >
    < NUMBER_OF_BOYS > 25 < / NUMBER_OF_BOYS >
    < / ROW >
    < / LINES >

    I need to change the xml in this format:

    <? XML version = "1.0"? >
    rowset <>
    < ROW >
    < CLASS > XII has < / CLASS >
    < age TEACHER subject = "37" = "Math" > KATE < / TEACHER >
    < STUDENT_STRENGTH > 30 < / STUDENT_STRENGTH >
    < 50 OFFICES > < / DESKS >
    < / ROW >
    < ROW >
    B XII < CLASS > < / CLASS >
    < STUDENT_STRENGTH > 40 < / STUDENT_STRENGTH >
    < NUMBER OF GIRLS 15 > < / NUMBER OF GIRLS >
    < NUMBER_OF_BOYS > 25 < / NUMBER_OF_BOYS >
    < / ROW >
    < / LINES >

    You will need to add several attribute to all the 'teacher' in the XML tag.
    I am able to add a single using attribute

    Select insertChildXML (donnees_xml, 'game of LINES/LINES/TEACHER', '@age', ' 37 ") of test_xml_table;

    Thanks in advance

    In this scenario, we have a simple find and replace the XML function using which i can replace the tag with (I understand this is not good was to solve this).

    Why not use two calls separate insertChildXML?
    The premiera adds the attribute to @age, and the other adds the attribute @subject on the result of the first.

  • Add several tables on a Page

    Hello

    I am building an application that handles (APEX 4.0) material inventory. I have an entry page that adds data to two or more tables at once. The page has two forms on it pointing to two separate tables. However when I try to run the page, it fails and returns an error:

    ORA-06550: line 1, column 437: PL/SQL: ORA-00904: "ORH_LAST_UPDATE_DATE": invalid identifier ORA-06550: line 1, column 7: PL/SQL: statement ignored
    Error failed to process row in the IDD_ID_DATA table.

    As far as I can see in the application, this column is not in question (I don't even do anything for her and she is nullable). I looked at the application itself as well as some research online but can't find anything useful...


    So my question is this: is it possible to add several tables to a page? If yes how?

    I'm new to APEX so any help would be greatly appreciated!

    UPDATE:

    I received an email from support of APEX team:

    «The answer is simple, it's you will need manually code processes query (and DML) If you want to maintain multiple tables on a page (there is a limit of a table when you use the integrated process).»
    For this I suggest that you remove the process generated by the wizards and create processes of PL/SQL with insert, update, delete statements as needed. "This encoding is not difficult but takes much longer when you can use the integrated process.

    I've been playing with code PL/SQL and the final result is the following:

    Start
    INSERT INTO table1
    VALUES)
    : P2_Item_Field1,.
    (: P2_Item_Field2);
              
    INSERT INTO table2
    VALUES)
    : P2_Item_Field1,.
    (: P2_Item_Field2);
    end;

    I used this code in a PL/SQL custom in the treatment process > section to the Page processing and it seems to work fine now. The only downside to this method is that if the name of a Page element is changed the code will also have to be changed. Except that I had no problem.

Maybe you are looking for

  • How to make a library of firefox fron video movie maker?

    I downloaded a video, instead of save I clicked on in open, now it's in the library of firefox, but I seem unable to move to live movie maker, what should I do? It is in my computer or should I save it all first, now I'm learning how to do this so an

  • Apple's policy on iMac replacement

    Hello forum. I own an iMac 27 inch screen retina since January 2016 5 k and the first week I've known Kernel Panic black screens, reboots and a lot of application and connect to the screen freezes. Communicating with the Apple Support line, I was adv

  • Windows XP Pro the cloning of new hard drives (ready to use to backup discs).

    Hello. I use a system dual-boot Windows XP Pro at the moment. The first instance of XP, I use for internet, test new applications, etc... (a beat hard drive). The second instance of XP, I only use my Audio Studio. Due to an an external sound card ver

  • Intermittent operation (especially just a power indicator light flashes) on WRT-150N

    Anyone know if these symptoms mean that my router is dead all just please? It runs for about a week or two and then the power light flashes quickly. It is then assigns IPs constantly, whenever I have try refreshing the DNCP on my Mac (or Linux). I ca

  • Filtering groups does not.

    Hi all I have a new SRA 1600 with 8.1.0.2 - 14sv and use a domain authentication with Active Directory. It works perfectly, but now I need more security with filter of ad groups. OK, I added a group among the users of > local groups > Edit Local Grou