Loading the values of data in the Label component

I display a set of values from a sql database via php method call.

$sql = "SELECT username as employees FROM label;";

I can use the dataProvider method in datagrid to display the values of user names, but what property can I assign him if I have to post in a label component?

. Text does not - it displays '[object Object] ".

Oops... I read the label as a list...

I don't think you can display multiple values in a label... it's only one element and you try to pass a table...

You try to start a list of user names or user name?

Tags: Flex

Similar Questions

  • Remove the empty space of the entry component labeling

    Hi, OTN,.

    Some components entry such as inputNumberSpinBox or date. MinValue has the integrated label attribute.
    Between the label and the component itself, there is an empty space (5px width).

    If I erase label of the component that the space still exists – it makes my page look messy.
    How to remove this space empty?

    Thank you.
    11.1.1.3 JDev

    Hello

    you have the simple property = "true"; on the pane?

    I don't know, but I think that it removes unwanted space, but also removes the page label.

    In my case, I used panelLabelAndMessage container with the date inside and the label component in the panelLabelAndMessage.
    He helped me keep things lined up.

    Hope this helps,

    Kind regards

    Dimitris.

  • Change the text aline of the part of the label of af: inputText

    Hello

    I want to change the text aline of the part of the label component af:inputText to "right". So I put the

    AF | inputText::label
    {
    text-align: right;
    }

    inside my css file, but it does not work. If I put

    AF | inputText:disabled:label
    {
    text-align: right;
    }

    It works for disabled inputText components, but I want to "text-align: right" to apply to all of the components of af: inputText. You have an idea?

    Thank you
    Will do

    Do, please always tell us your version jdev as the solution may depend on it!

    Depending on where you put the inputText you nee on the skin for example

    af¦panelFormLayout::label-cell{
        text-align: left;
    }
    

    Timo

  • How to use a Label component under the skin?

    Hello

    I try to use the Label component as part of the skin of a component skinnable AS3 and Flash Builder report about it:

    Incompatible component skinnable custom ActionScript: part skin type spark.components.Label is not compatible.

    It's the same for ComboBox, NumericStepper.

    Do you know why? You have a list of all the components that we use in the pieces of skin?

    Thank you very much.

    Julien

    Hello

    Flash uses catalyst "RichText", which is an advanced as control label. So, your part of skin should be of type 'RichText' instead of 'Label' so that you can use in the catalyst.

    Similarly, as ComboBox and NumericStepper are not supported in Flash Catalyst, you may not like parts of your skin.

    Basically, whatever components you see in "Convert the work by dialing" combobox are supported as parts of skin.

    I hope this helps.

    Concerning

    Srinivas Annam

  • Handful of sequence data contains incorrect values when loading the saved project

    Hi people!


    I ran into a problem where my values of sequence data are not correct when you open a project with an instance of my effect plugin.

    The values look good if I manually inspect when they are flattened and written in a fine when handle memory and restore AE sends PF_Cmd_SEQUENCE_RESETUP once the backup is complete.  But when I open / load the saved project, the values are not correct.  In other words, my logic flattening/unflattening works within the same session, but during the loading of a saved project, the flattened data is incomplete or has bad values.

    I write several objects to the handful of flat sequence data, and I was wondering if this could be the cause.

    The flattened sequence data manage memory looks like this:

    [[type struct A] [type struct b] [b] of type struct] [struct type b] <.. .arbitrary number of struct type BS... >]

    NB of struct type B varies, so when I ask AE for a handle of memory, I have this:

    size_t flatSequenceDataSize = sizeof(structTypeA) + (sizeof(structTypeB)* numberOfBStructsNeeded);
    PF_Handle flat_seq_dataH = suites.HandleSuite1()->host_new_handle(flatSequenceDataSize);
    
    
    

    Then, to write the data to the handle:

    structTypeA myDataA = <... populate struct values ...>
    std::vector<structTypeB> allStructB_V;
    <... populate vector ...>
    
    void *flat_seq_dataP = suites.HandleSuite1()->host_lock_handle(flat_seq_dataH);
    
    structTypeA *structA_P = reinterpret_cast<structTypeA*>(flat_seq_dataP);
    memcpy(flat_seq_dataP, &myDataA, sizeof(structTypeA));
    
    structTypeB *structB_P = reinterpret_cast<structTypeB*>(flat_seq_dataP);
    
    //offset pointer by the size of the first struct in the handle
    structB_P += sizeof(structTypeA);
    
    for (A_long vectorIndex=0; vectorIndex < allStructB_V.size(); vectorIndex++) {
        *structB_P = allStructB_V.at(vectorIndex);
        structB_P+= sizeof(structTypeB);
    }
    
    out_data->sequence_data = flat_seq_dataH;
    suites.HandleSuite1()->host_unlock_handle(flat_seq_dataH);
    
    
    

    When I access the handful of sequence data loading stage, the first struct in the flattened handle has correct values, but all following structs have false values.  I check if the handle is always the right size (I save the size of the handle inside the first structure) and it is indeed the correct size.  I wonder if AE doesn't like how I write from the structB to the handle.

    I'm doing something wrong here?  Is there a better way to store data of arbitrary sizes?

    Thanks for your help!

    -Andy

    Ah, I missed actually a significant error in your pointer arithmetic! You're actually in the land of UB ("undefined behavior") with your code!

    You add byte offsets to a pointer type, which is doomed to failure if you don't know what you're doing.

    If you have

    structTypeB * structB_P = reinterpret_cast(flat_seq_dataP);

    and do you

    structB_P += sizeof (structTypeA);

    most of compiler that turn into something like this:

    structB_P = (structTypeB *) ((unsigned char*) + sizeof (structTypeA) * sizeof (structTypeB));

    Wrong in your case (in most cases actually).

    Or more simple put:

    If you have a pointer

    structTypeB * structB_P =...

    and you do:

    structB_P += 3;

    It actually means

    structB_P = strucB_P + 3 * sizeof (structTypeB);

    already!

    Try running your pointer to an unsigned char * or another type of 1 byte basis and then make the increment, and then recast.

    Here's a site with more information on this:

    http://StackOverflow.com/questions/15934111/portable-and-safe-way-to-add-byte-offset-to-an y-pointer

    It could then look like this (on the top of my head, did not check!):

    void * flat_seq_dataP = suites. HandleSuite1()-> host_lock_handle (flat_seq_dataH);

    structTypeA * structA_P = reinterpret_cast(flat_seq_dataP);

    memcpy (myDataA, sizeof (structTypeA) & flat_seq_dataP);

    structTypeB * structB_P = reinterpret_cast(reinterpret_cast(flat_seq_dataP) + sizeof (structTypeA));

    memcpy (structB_P, allStructB_V.data (), sizeof (structTypeB) * allStructB_V.size ());

    out_data-> sequence_data = flat_seq_dataH;

    Suites. HandleSuite1()-> host_unlock_handle (flat_seq_dataH);

  • Feed the list component with labels that have only certain values.

    I have to be able to sort out shorter labels in the component 'listHolder.list' by values in 'Fan', 'Herdighet', etc., which will be selected of the other items in the list
    (those who do not need to be fed by XML, but the list items own dataProvider)

    Practical example: displays only the labels in listHolder.list that are connected to the "H1" value in "Herdighet" or "H2" "Herdighet" etc.

    I am fairly new to AS3, so I do not know how to start. I appreciate everything you can give clues.

    Here's the code so far:

    //--------------------------

    var loader: URLLoader = new URLLoader();

    loader.addEventListener (Event.COMPLETE, onLoaded);

    listHolder.list. addEventListener (Event.CHANGE, itemChange);

    function itemChange(e:Event):void {}

    var selectedObj:Object = a [listHolder.listSelectedIndex]

    var xml;

    var a: Array = [];

    function onLoaded(e:Event):void {}

    XML = new XML (e.target.data);

    var it: XMLList = xml. Lauvtre;

    for (var i: uint = 0; i < il.length (); i ++) {}

    listHolder.list.addItem ({.child('Botanisk_navn').toString ()label: it [i]+ "\n"+ "-" + it [i].child('Norsk_navn').toString () "});

    a [i] = {'Fan': it [i].child('Farge').toString (), 'Herdighet': it [i].child('Herdighet').toString (),}

    "Høyde": he [i].child('hoyde').tostring (), "Botanisk_navn": he [i] .one ('Botanisk_n avn') m:System.NET.SocketAddress.ToString (),.

    'Norsk_navn': it [i].child('Norsk_navn').toString (), 'Image': it [i] .child ('image'). toString(),

    {"Blomstring": he [i].child('Blomstring').toString (), "Lysforhold": he [i] .one ('Lily book') m:System.NET.SocketAddress.ToString ()};

    }

    }

    Loader.Load (new URLRequest ("lauvtre.xml"));

    Fusion is a good thing.  The more you have to understand this, easy it all comes together when the lights start to go.

    In regard to the 'a' table... If you look at how values are it is attributed originally, they are attributed to the 'i' value of the index.  So, if the first element that passes the test of H1/H2 is the 10th 'i', it means that 10 of the table value is assigned to the first value you found.  The first 9 values in the table are zero as a result.

    But if you use the method push of the array class.

    a.push ({"Fan": he [i].child('Farge').toString (),... etc...});

    then the item is added to the index of the table rather than the 'i' the next clue.  If a table will have the same number of elements as the list and the list and table will agree in regard to pair them up.

  • Where is my form PHP error? Two values of the label are received in an e-mail, but three others are not

    Hello

    I have a form on my web page developing, written by a programmer at the top of the page.

    http://www.collegestudentvoice.com/form/form.php

    Of all the labels, I received emails with attachments.

    Except in the label 'College Sports' I will receive 2 values

    Football and Basketball.

    The three values, I CAN'T receive are:

    ((1) baseball, Softball) 2 and 3) of others.

    It seems to me that php script is written in a dynamic

    and structured way.

    SEND-FORM FILE - START-> > > > > > > > > > > > > > > > >

    <? PHP

    PEAR library includes

    You should have the installed pear lib

    include_once ('Mail.php');

    include_once('Mail/MIME.php');

    Parameters

    $max_allowed_file_size = 10000000; size in KB

    $allowed_extensions is array ("jpg", "jpeg", "gif", "bmp");.

    $upload_folder = "files /';" <-this folder must be writable by the script

    $your_email = ' [email protected] ';//<<-- this day to your email address

    $errors = ";

    If (isset($_POST['submit']))

    {

    //Get the uploaded file information

    $name_of_uploaded_file = basename($_FILES['uploaded_file']['name']).

    //get the file extension

    $type_of_uploaded_file = substr ($name_of_uploaded_file,)

                                                                                          strrpos($name_of_uploaded_file, '.') + 1);

    $size_of_uploaded_file = $_FILES ['uploaded_file'] ['size'] / 1024;

    ///---Do validations.

    if (empty($_POST['name']) |) Empty($_POST['email']))

                {

    $errors. = '\n name and Email are required.';     

                }

    if (IsInjected ($visitor_email))

                {

    $errors. = "\n bad email value!"

                }

    if($size_of_uploaded_file > $max_allowed_file_size)

                {

    $errors. = "\n file size must be less than $max_allowed_file_size";

                }

    / /-Validate file extension.

    $allowed_ext = false;

    for ($i = 0; $i < sizeof ($allowed_extensions); $i ++)

                {

    if (strcasecmp($allowed_extensions[$i],$type_of_uploaded_file) == 0)

                            {

    $allowed_ext = true;                

                            }

                }

    if(!$allowed_ext)

                {

    $errors. is "\n the loaded file only is not supported file type.".

    "Only the following file types are supported:".implode(',',$allowed_extensions); "

                }

    //send email

    if (empty ($errors))

                {

    //copy the temp. file uploaded to the uploads folder

    $path_of_uploaded_file = $upload_folder. $name_of_uploaded_file;

    $tmp_path = $_FILES ['uploaded_file'] ['tmp_name'];

    if (is_uploaded_file ($tmp_path))

                            {

    if (! copy($tmp_path,$path_of_uploaded_file))

                                {

    $errors. = "\n error during the copy of the downloaded file";

                                }

                            }

    //send email

    $name = $_POST ['name'];

    $visitor_email = $_POST ['email'];

    $user_message = $_POST ['message'];

    $to = $your_email;

    $subject = "new submission of form."

    $from = $your_email;

    $text = "a user $name sent you this message: \n $user_message";

    $message = new Mail_mime();

    $message-> setTXTBody ($text);

    $message-> addAttachment ($path_of_uploaded_file);

    $body = $message-> get();

    $extraheaders = array ('From' = > $from, 'Topic' = > $subject, "Reply-To" = > $visitor_email);

    $headers = $message-> headers ($extraheaders);

    $mail = Mail::factory ("mail");

    $mail-> send ($à, $headers, $body);

    //redirection to ' thank you page

    header ('Location: .html thank you ');

                }

    }

    ///////////////////////////Functions/////////////////

    Function to validate against any attempt to electronic fuel injection

    function IsInjected ($str)

    {

    $injections = array ('(\n+)',

                  '(\r+)',

                  '(\t+)',

                  '(%0A+)',.

                  '(% + 0D)',

                  '(% 08 +)',

                  '(% + 09)'

                  );

    $inject = join ('|) (', $injections);

    $inject = "/ $injecter / I";

    if (preg_match ($inject, $str))

        {

    returns true;

      }

    else

        {

    return false;

      }

    }

    ? >

    <! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / IN" "http://www.w3.org/TR/html4/loose.dtd" > ""

    < html >

    < head >

    download < title > file < /title > form

    <! - define some elements of style - >

    < style >

    label, one, body

    {

    are-family: Arial, Helvetica, without serif.

    are-size: 12px;

    }

    < / style >

    <! - a script for vaidating help shape - >

    < script language = "JavaScript" src = "scripts/gen_validatorv31.js" type = "text/javascript" > < / script > "

    < / head >

    < body >

    <? PHP

    If (!) Empty ($Errors))

    {

    echo nl2br ($errors);

    }

    ? >

    < are method = "POST" name = "email_form_with_php".

    action = "<?" PHP echo htmlentities($_SERVER['PHP_SELF']);? ' > ' enctype = "multipart/form-data" >

    < p >

    < label for 'name' = > name: < / label > < br >

    < input type = "text" name = "name" >

    < /p >

    < p >

    < label for = "e-mail address" > Email: < / label > < br >

    < input type = "text" name = "email" >

    < /p >

    < p >

    < label for 'message' = > Message: < / label > < br >

    < textarea = 'message' name > < / textarea >

    < /p >

    < p >

    < label for = "uploaded_file" > select a file to download: < / label > < br >

    < input type = "file" name = "uploaded_file" >

    < /p >

    < input type = "submit" value = "Submit" name = "submit" >

    < / make >

    < script language = "JavaScript" >

    For the validation of the code of

    / / Visit http://www.JavaScript-coder.com/HTML-form/JavaScript-form-validation.p html

    For more information

    var frmvalidator = new Validator ("email_form_with_php");

    frmvalidator.addValidation ("name", "req", "Please enter your name");

    frmvalidator.addValidation ("email", "req", "Please enter your email address");

    frmvalidator.addValidation ("email", "email", "Please enter a valid email address");

    < /script >

    < noscript >

    < small > < a href =' ml http://www.html-Form-Guide.com/email-Form/php-email-Form-Attachment.HT '

    > How to attach the file to email in PHP < /a > article page. < / small >

    < / noscript >

    < / body >

    < / html >

    -END SEND FORM-> > > > > > > > > > > > > > > > > > > > >

    -FORM BEGINNING-> ACTION > > > > > > > > > > > > > > > > > > > > > > > > > > > > >

    <? PHP

    require_once ('recaptchalib.php');

    $privatekey = "6LfwwsISAAAAAAPShkJ6nV3qkgLDHCe2uXj9RTWw";

    $resp = recaptcha_check_answer ($privatekey,

    $_SERVER ['REMOTE_ADDR'],

    $_POST ["recaptcha_challenge_field"],

    $_POST ["recaptcha_response_field"]);

    if (! $resp-> is_valid) {}

    die ("the reCAPTCHA has not been entered correctly. Go back and try again. ».

             "");

      }

    {else}

    include_once ('Mail.php');

    include_once('Mail/MIME.php');

    $errors = ";

    $max_allowed_file_size = 10000000; size in KB

    $allowed_extensions is array ("jpg", "jpeg", "gif", "bmp");.

    $upload_folder = "files /';"

    $name_of_uploaded_file = basename($_FILES['uploaded_file']['name']).

    $type_of_uploaded_file = substr ($name_of_uploaded_file,)

                                                                                          strrpos($name_of_uploaded_file, '.') + 1);

    $size_of_uploaded_file = $_FILES ['uploaded_file'] ['size'] / 1024;

    if($size_of_uploaded_file > $max_allowed_file_size)

                {

    $errors. = "\n file size must be less than $max_allowed_file_size";

                }

    $allowed_ext = false;

    for ($i = 0; $i < sizeof ($allowed_extensions); $i ++)

                {

    if (strcasecmp($allowed_extensions[$i],$type_of_uploaded_file) == 0)

                            {

    $allowed_ext = true;                

                            }

                }

    if(!$allowed_ext)

                {

    $errors. is "\n the loaded file only is not supported file type.".

    "Only the following file types are supported:".implode(',',$allowed_extensions); "

                }

    if (empty ($errors))

                {

    $path_of_uploaded_file = $upload_folder. $name_of_uploaded_file;

    $tmp_path = $_FILES ['uploaded_file'] ['tmp_name'];

    if (is_uploaded_file ($tmp_path))

                            {

    if (! copy($tmp_path,$path_of_uploaded_file))

                                {

    $errors. = "\n error during the copy of the downloaded file";

                                }

                            }

    $Business = Trim (stripslashes($_POST['Business']));

    $ProfessionalSports = Trim (stripslashes($_POST['ProfessionalSports']));

    $Humor101 = Trim (stripslashes($_POST['Humor101']));

    $CollegeSports = Trim (stripslashes($_POST['CollegeSports']));

    $Politics = Trim (stripslashes($_POST['Politics']));

    $EmailToBusiness = $Business. "@collegestudentvoice.net";

    $EmailToProfessionalSports = $ProfessionalSports. "@collegestudentvoice.net";

    $EmailToHumor101 = $Humor101. "" @collegestudentvoice.net ";

    $EmailToCollegeSports = $CollegeSports. "[email protected]"; "

    $EmailToPolitics = $Politics. "@collegestudentvoice.net";

    $EmailTo = "[email protected]"; ""

    $EMailSubject = Trim (stripslashes($_POST['Subject']));

    $First = Trim (stripslashes($_POST['First']));

    $Last = Trim (stripslashes($_POST['Last']));

    $Email = Trim (stripslashes($_POST['Email']));

    $Suggestions = Trim (stripslashes($_POST['Suggestions']));

    $Body = "was filled the following form;

                            $Body. = "\n";

                            $Body .= "-------------------------------------------------------------------- -------------";

                            $Body. = "\n";

                            $Body. = "\n";

    $Body. = ' First name: '; "

                            $Body. = $First;

                            $Body. = "\n";

    $Body. = ' last name: '; "

                            $Body. = $Last;

                            $Body. = "\n";

                            $Body. = "email:";

                            $Body. = $Email;

                            $Body. = "\n";

    $Body. = ' business: '; "

    $Body. = $Business;

                            $Body. = "\n";

    $Body. = "Professional sports: «;»»

    $Body. = $ProfessionalSports;

                            $Body. = "\n";

    $Body. = ' humor 101: '; "

    $Body. = $Humor101;

                            $Body. = "\n";

    $Body. = "College sports: «;»»

    $Body. = $CollegeSports;

                            $Body. = "\n";

    $Body. = ' policy: '; "

    $Body. = $Politics;

                            $Body. = "\n";

    $Body. = ' suggestions: «;»»

    $Body. = $Suggestions;

                            $Body. = "\n";

                            $Body. = "\n";

                            $Body .= "-------------------------------------------------------------------- -------------\n";

    //$Body. = "e-mails sent to:". "." $EmailToBusiness. « / ». $EmailToProfessionalSports. « / ». $EmailToHumor101. « / ». $EmailToCollegeSports. « / ». $EmailToPolitics. « » ;

    $to = "[email protected]"; ""

    $subject = $EMailSubject;

    $from = "[email protected]"; ""

                            $text = "\n $Body";

    $message = new Mail_mime();

    $message-> setTXTBody ($text);

    $message-> addAttachment ($path_of_uploaded_file);

    $body = $message-> get();

    $extraheaders = array ('From' = > $from, 'Topic' = > $subject, "Reply-To" = > $Email);

    $headers = $message-> headers ($extraheaders);

    $mail = Mail::factory ("mail");

    $mail-> send ($à, $headers, $body);

                            If ($Business! = "")

                            {

    $mail-> send (strtolower ($EmailToBusiness), $headers, $body);

                            }

    if ($ProfessionalSports! = "")

                            {

    $mail-> send (strtolower ($EmailToProfessionalSports), $headers, $body);

                            }

                            If ($Humor101! = "")

                            {

    $mail-> send (strtolower ($EmailToHumor101), $headers, $body);

                            }

    if ($CollegeSports! = "")

                            {

    $mail-> send (strtolower ($EmailToCollegeSports), $headers, $body);

                            }

                            If ($Politics! = "")

                            {

    $mail-> send (strtolower ($EmailToPolitics), $headers, $body);

                            }

      }

    print "< meta http-equiv =-"refresh\"content =------"0; " URL = Form.php? suc = y\ "' >"; "

      }

    ? >

    ---------------------------------------------------------------------  END FORMACTION  FILE---

    $Body. = "College sports: «;»»

    I see a space between the College and the sport. Also, make sure that your form fields are named exactly as the names of variables.

  • HP connection manager exe. Could not load the Assembly system.data, Version = 1.0.61.0, culture = SQ Lite...

    have new laptop dv7 and continue to receive the window... HP connection manager exe.

    "Cannot load the Assembly system.data, SQ Lite, Version is 1.0.61.0, culture = neutrral, db937bc2d44ff139 = public key token.

    The application will now exit.

    Please identify your laptop / pc

    Look at the basic/back/side of the pc/laptop to the sticker with barcode.

    Item number of pole 2 as seen on the following example of label with barcode of a HP laptop. The barcode on your HP product may be slightly different in appearance, but will still have important information necessary for us to help you.

    #Do not post not the serial number of your product because it is private and considered to be personal information. ###

    Display the version of the operating system installed (State whether 32 or 64 bit) and the processor as one product AMD or Intel

    Not showing information as requested could delay our responses and troubleshooting slow the question that led you to create a thread. We want to help you, so please help us help you.

    Have you gone to your laptop's web support portal and tried the HP software box software?

    This would certainly be a good starting point.

    Removing and reinstalling the software HP Connection manager is also a good plan. It is also located on the web portal of support for your laptop.

    Best regards

    ERICO

  • How to calculate the load time, max - min date query

      CREATE TABLE TEST ( GID VARCHAR2(100 BYTE), SGID VARCHAR2(100 BYTE), PID VARCHAR2(100 BYTE), DATES TIMESTAMP (6) );
    
    REM INSERTING into TEST
    SET DEFINE OFF;
    Insert into TEST (GID,SGID,PID,DATES) values ('1','1000','ABC',to_timestamp('24-AUG-13 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('1','1001','BCD',to_timestamp('24-AUG-13 05.21.46.491000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('1','1002','CDE',to_timestamp('24-AUG-13 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('2','1004','EDF',to_timestamp('23-AUG-13 05.22.20.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('2','1003','FEG',to_timestamp('24-AUG-13 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('2','1001','GHI',to_timestamp('24-AUG-13 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('2','1006','JKL',to_timestamp('24-AUG-13 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('3','1007','LMN',to_timestamp('24-AUG-13 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('3','1001','OPQ',to_timestamp('24-AUG-13 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));
    

    Hello

    I need a sql query which gives me the time taken to load the records ie., Max date less date min. I ran a query that gives me the result "0 23:59:26.491" below.

    select (max(DATES) - min(DATES)) from test;
    

    When I apply the same logic in Peoplesoft enterprise manager, it generates the sub query and throw me the "ORA-01722: invalid number" error.

    select max(TO_CHAR(cast((DATES) as timestamp),'YYYY-MM-DD-HH24.MI.SS.FF'))
    -min(TO_CHAR(cast((DATES) as timestamp),'YYYY-MM-DD-HH24.MI.SS.FF'))
    from test; 
    

    Can you please modify the above query?

    user11872870 wrote:

    1. CREATE TABLE TEST (VARCHAR2(100 BYTE), VARCHAR2(100 BYTE), PID VARCHAR2 (100 BYTE) SGID GID, DATES TIMESTAMP (6));
    2. INSERTION of REM in TEST
    3. TOGETHER TO DEFINE
    4. Insert into TEST (GID, SGID, PID, DATES) values ('1 ', ' 1000', 'ABC', to_timestamp (12.00.00.000000000 AM Aug 24, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    5. Insert into TEST (GID, SGID, PID, DATES) values ('1 ', ' 1001', "BCD", to_timestamp (24 August 13 05.21.46.491000000 PM ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    6. Insert into TEST (GID, SGID, PID, DATES) values ('1 ', ' 1002', "COE", to_timestamp (12.00.00.000000000 AM Aug 24, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    7. Insert into TEST (GID, SGID, PID, DATES) values ('2 ', ' 1004', "EDF", to_timestamp (05.22.20.000000000 PM Aug 23, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    8. Insert into TEST (GID, SGID, PID, DATES) values ('2 ', ' 1003', "FEG", to_timestamp (12.00.00.000000000 AM Aug 24, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    9. Insert into TEST (GID, SGID, PID, DATES) values ('2 ', ' 1001', 'GHI', to_timestamp (12.00.00.000000000 AM Aug 24, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    10. Insert into TEST (GID, SGID, PID, DATES) values ('2 ', ' 1006', 'JKL', to_timestamp (12.00.00.000000000 AM Aug 24, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    11. Insert into TEST (GID, SGID, PID, DATES) values ('3 ', ' 1007', "LMN", to_timestamp (12.00.00.000000000 AM Aug 24, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    12. Insert into TEST (GID, SGID, PID, DATES) values ('3 ', ' 1001', "Professions", to_timestamp (12.00.00.000000000 AM Aug 24, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));

    Hello

    I need a sql query which gives me the time taken to load the records ie., Max date less date min. I ran a query that gives me the result "0 23:59:26.491" below.

    1. Select (max (DATES) - min (DATES)) of the test;

    When I apply the same logic in Peoplesoft enterprise manager, it generates the sub query and throw me the "ORA-01722: invalid number" error.

    1. Select max (TO_CHAR (cast ((DATES) as timestamp),'YYYY-MM-DD - HH24.MI.)) SS. FF'))
    2. -min (to_char (Cast ((dates) as timestamp),'YYYY-MM-DD - HH24.MI.)) SS. FF'))
    3. of the test;

    Can you please modify the above query?

    1. SELECT max (cast (DATE) as date)-mIN (cast (DATE) as date) test;
  • Problem loading the data in the table

    Hi friends,

    I'm using ODI 11 g.
    I'm doing a flat file for the Table mapping. I have 10 records in the flat file when loading the data in an Oracle table, I can see only 1 card is loaded.
    I use IKM SQL add and control using separate option.

    Can you please let me know where exactly the problem.

    Thank you
    Lony

    Hi Lony,

    Please let us know other KM by in your ODI interface.
    Please check in the flat file, column PK have same value or it idifferent?
    Please check if the header is present in your flat file.
    When you load the file in the table of the model > right click on the table (flat file adding that model table) and click Show data and see all 10 records are you able to see at ODI level

    Kind regards
    Phanikanth

  • How do I load the data calculated in HFM

    Hi gurus

    1. how to load the data calculated in HFM?

    I extracted the calculated data and when I tried to load the data calculated in HFM is partially responsible, showing the errors you can not load data for parent members of the account, Custom personalized 1 4...
    Then I ran the consolidation to get the values of the parent company.
    Is there an alternative way to load the data calculated in HFM?

    Concerning
    Hubin

    Hi Hubin,

    Calculated data cannot be loaded in HFM manually, these accounts with calculated field data should be generated through the logic of the computation.

    And parent members also don't take the data they are parents for the sum of some basic level accounts.

    So just load the data for basic level accounts and make sure they are consolidated accounts of field, that there was no error and calculated accounts data automatically generates through the logic written in the Rules file.

    And after loading data just run the consolidation and sink also rules file in both cases to the work of the logic of the computation.

    Kind regards
    Srikanth

  • Can't view the data after loading the XML into RTF model

    Hi friends

    I am unable to view data in PDF after loading the XML into RTF model
    After I load the XMl file to my model
    The complement of the tab, I'm trying to get a glimpse of the output as pdf/xml etc, but he throws and error
    Window does not
    'C:\DOCUME~1\SYSNAME~\LOCALS~\APPLIC~1\Oracle\BIPUBL~1\TEMPLA~\tmp\3513518782149421out.pdf214921out.pdf '. Make sure you typed the name correctly and then try again. To search for a file, click the Start button and click Search

    I gave the name correctly only, but don't know y it displays error I have to reinstall the Office of Oracle BI Publisher once more please advice me what needs to be done to solve my problem of my PC

    Thank you
    Thiliban

    It seems that the problem is with the working directory of the BIP Office.

    If you have administrator access to the computer, please do the following:
    1 Windows-> Run-> regedit
    2. find the value of the next entry
    Publisher\Template HKEY_CURRENT_USER\Software\Oracle\XML for Word\TB_WORK_DIR generator
    3. change your path C:\DOCUME~1\SYSNAME~\LOCALS~\APPLIC~1\ORACLE\BIPUBL~1\TEMPLA~\tmp

    See you soon,.
    ND
    Use the buttons "useful" or "correct" to award points to the answers / mark the thread as answered, if your question is answered.

  • How do I load the csv into table values

    Hi Experts,

    could you please tell me how to load csv values in the table.

    for example, I have a column given as: E01_0, actual work, FY12, Local, Total (data type is string)

    by manually
    Kind regards
    Surya

    Published by: surya on 6 March 2012 10:20

    Hi Surya,
    You can use the external table to load csv data.

    CREATE TABLE EXT_TABLE (COL1 VARCHAR2 (256))
    EXTERNAL ORGANIZATION
    (TYPE ORACLE_LOADER DEFAULT DIRECTORY DUMPDIR
    (SETTINGS) ACCESS
    RECORDS DELIMITED BY NEWLINE
    FIELDS TERMINATED BY ', '.
    SURROUNDED OF POSSIBLY "" "
    MISSING FIELD VALUES ARE NULL
    )
    LOCATION('TEST.) CSV')
    )
    REJECT THE LIMIT 0.

    Then EXT_TABLE, you can insert your values into your target table.

  • get rid of the labels if value is not

    Hello
    I use Reports6i. I have a group above report like that.
    Organisation1
           Location1
                  Application1
                          Module1
                                Program Id    Req.By    Type RelDt   ComplDt  Ststus ... -- in same line
                                ......    --here all those record matches the above orgn1,loc1,app1,mod1 will come here
                                        EmpID    Description    Start Date    End Date     Status      Notes
                                .....
                          Module2
                                Program Id    Req.By    Type RelDt   ComplDt  Ststus ... 
                                 -- here all those record matches the above orgn1,loc1,app1,mod2 will come here
                  Application2
                       .....
           Location2
    Organisation2
    .....
    But each program ID must not have an Emp Id (so that the value of all of the line won't be there), in this case, I don't want to show the label also.
    Now even if we do not have values for the EmpID line, etiquette is coming. I want to get rid of this.

    Any help?
    Thank you

    Hi Sandra,.

    In the group above group EMPID which is the ID of group program create a summary column say 'cs_count' function: count, reset to: Group ProgramID.

    Now place all labels in the EMPID group within a framework and have a trigger image format, if you do not frame, you will need to create the format for each trigger create labels. Also have vertical elasticity of the frame to variable as well as in the case of labels should not be displayed space, vacant space will not appear.

    In the use of trigger of format:

    IF :CS_COUNT > 0 THEN
     RETURN (TRUE);
    ELSE
     RETURN (FALSE);
    END IF;
    

    I hope this helps.

    Best regards

    Arif Khadas

  • Load the data from a text file into a table using pl/sql

    Hi Experts,

    I want to load the data from a text file (sample1.txt) to a table using pl/sql

    I used the pl/sql code below

    ***********************************
    declare
    f utl_file.file_type;
    s varchar2 (200);
    c number: = 0;
    Start
    f: = utl_file.fopen('TRY','sample1.txt','R');
    loop
    UTL_FILE.get_line (f, s);
    insert into sampletable (a, b, c) values (s, s, s);
    c: = c + 1;
    end loop;
    exception
    When NO_DATA_FOUND then
    UTL_FILE.fclose (f);
    dbms_output.put_line('No. deles de lignes insérées: ' || c);
    end;

    ***************************************

    and my sample1.txt file looks like

    ***************************************
    1
    2
    3
    ***************************************

    Gets the data inserted, with way below

    Select * from sampletable;

    A, B AND C

    1-1-1
    2-2-2
    3 3 3

    I want that data to get inserted as

    A, B AND C

    1 2 3

    The text file I have is to have three lines, and the first value of each line should go to each column

    Help, please...

    Thank you
    declare
    f utl_file.file_type;
    s1 varchar2(200);
    s2 varchar2(200);
    s3 varchar2(200);
    c number := 0;
    begin
    f := utl_file.fopen('TRY','sample1.txt','R');
    utl_file.get_line(f,s1);
    utl_file.get_line(f,s2);
    utl_file.get_line(f,s3);
    insert into sampletable (a,b,c) values (s1,s2,s3);
    c := c + 1;
    utl_file.fclose(f);
    exception
    when NO_DATA_FOUND then
    if utl_file.is_open(f) then utl_file.fclose(f); ens if;
    dbms_output.put_line('No. of rows inserted : ' || c);
    end;
    

    SY.

Maybe you are looking for

  • Safari 10 stuttering during scrolling

    After updating to Mac OS and safari 10, I noticed that when scrolling the page animation stutters when slowing down. It is not consistent, but it seems quite often. I can't do with extensions, after you disable Adblock (the only extension I was using

  • How to get rid of istartsurf!

    Everytime I open Firefox browser starts a new tab for "istartsurf."Tenderly, I would like to be rid of this intrusive and persistent intruder.I uninstalled in (programs and features"and attempted unsuccessfully to Adware Removal Tool)Thanks in advanc

  • Awesome army suspends my Twitter

    Whenever I try to use the Army of Awesome app to answer the questions of people on Twitter, he suspends my account because I'm tweeting too many people. He thinks that I am spamming when I'm not, so it automatically suspends my Twitter account. What

  • Cannot start update BIOS on Qosmio G30

    Hello I ve a Qosmio G30-188 (PQG30E) and after a few problems and a few messages that I read on the internet I wanted to update my BIOS. So I went to the page of the selected Toshiba driver my laptop downloaded the update to the BIOS, but it does not

  • How to rotate a group of objects in 3d photo

    There are examples on how to rotate an object independently as the solar system.  However, I am having a challenge that I created one side of the rubik's cube that has several small cubes in ti and want to rotate just a row of small cubes on the face