palo_eadd & C-Elements

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • palo_eadd & C-Elements

    Hello,

    I'm trying to develop an csv import tool on php. But my problem is, that i cant create consolidated elements.

    Sample Code:
    [PHP]
    // the line from the class
    $this->Res = palo_eadd($this->connection, $this->aPaloDbConf['db'], $aElAdd['dim'], $aElAdd['type'], $aElAdd['name'], $aElAdd['parent'], $aElAdd['con_factor'], $aElAdd['clear']);
    [/PHP]
    --
    [PHP]
    $aElAdd = array (
    'dim' => "JAHRE",
    'type' => $value[0], // "C"
    'name' => $value[1], // "1992"
    'parent' => $conElement, // "Normal"
    'con_factor'=> $value[2], // ""
    'clear' => FALSE
    );

    $aResult = $oPalo->eadd($aElAdd);
    [/PHP]

    But ist doesn't work, everytime i get only numeric Elements.

    Please give me a hint, how to add Consolidated Elements and how to create "N" Elements in a Consolidated Element

    Thanks for your help.
    --------------
    Greetings eXo
  • Hello eXo,

    Here is a small code sample:

    $res = palo_eadd($connection, DATABASE_NAME, DIMENSION_NAME, 'C', 'All Rooms', NULL, 0.0, FALSE);
    $res = palo_eadd($connection, DATABASE_NAME, DIMENSION_NAME, 'N', 'Office Room 1', 'All Rooms', 1.0, FALSE);
    $res = palo_eadd($connection, DATABASE_NAME, DIMENSION_NAME, 'N', 'Office Room 2', 'All Rooms', 1.0, FALSE);

    Does that help?

    Regards,
    Stephanie