Sapce getting append to the value in textfield

Hi All,
In my project, for the value in one inputfiled i am calucating some value in new child,opening window like this
var win = window.open("fetchprice.htm?matnr="+matnr_value,"FETCH_VALUE",);
In the child window after calucating the value it posted back to the input filed in the parent using the following
opener.document.forms['myform'].elements['value1'].value = '<%=wr_test%>';
The input filed in the parent getting the value is
<htmlb:inputField id         = "value1"
                      type       = "bcd"
                      alignment  = "right"
                      doValidate = "TRUE"
                      decimals   = "2"
                      size       = "20"
                      maxlength  = "20" />
The problem is while the value is posted to parent inputfiled from child window a space is getting append to the last of the digits .How can i fix this problem?
Thanks & Regards
Sujith

is it only happenning when posted to parent input field from child window?
i just tried this code and i dont get any space at the end.
<%
data: test type i .
test = '1234.45' .
%>
<htmlb:inputField id         = "IP"
                        alignment  = "right"
                        size       = "20"
                        type       = "BCD"
                        value      = "<%= test %>"
                        maxlength = "20"
                        doValidate = "TRUE"/>
Regards
Raja

Similar Messages

  • How can I get rid of the values shown on x axis

    How can I get rid of the values shown on x axis ?
    The two diagrams are for illustrations .I want the A diagram like values and wanna get rid of 50 150 250 350on x axis
    Mudassar

    In Axis Options, set Interval to 1. Every category group label
    is displayed. If you want to show every other category group label on the x-axis, type 2.
    "If you want to show every other category group label on the x-axis, type 2."
    what does this mean ?
    when you set 1 as per it everything is shown and when you set 2 every other ????
    Any example on this ?
    Mudassar

  • Getting star(*) as the value of the column

    Dear All,
    i have created a report on the cube which will display the country wise Expected sales Volume and Weighted sales volume.
    for all country i am getting the correct value but for the country which are NOT ASSIGNED i am getting Star(*) as the value.
    My cube has proper data loaded.
    HELP ME ON THIS.

    What I meant is in Excel.
    Wherever you see * place the mouse pointer there.
    In the top where you can usually see values in excel.You will be able to see values.
    or
    Right click on the cell -
    > Format Cells and choose number
    You will be able to see
    or
    Use Nodim() in formula you will be able to see.
    The issue is :
    Country    field   unit
    A             20     KG
    B             30      LB
    Now if both A and B country are under hieararchy node NODE1 say
    Then on aggregation it  will be
    NODE1   (20 KG + 30 LB) displayed as *.
    When you place your mouse on this cell you will see 50.
    Hope this helps.
    Edited by: Praveen G on Oct 29, 2008 2:35 AM

  • Getting the value of textfield

    hi all,
    i have dynamically created multiple textfields in a frame.I dont know how to get the valuesin each textfield.Please help me to solve this problem.Very urgent.
    Thanks in advance
    Regards

    You can create item inside your LOV region, set the item style to formValue. You can associate this to a View Object field. It can also act as mirror of any other text input field.
    FormValue can hold the value and will not be diaplyed to user. You can read value from it controller
    example
    OAFormValueBean orgValue = (OAFormValueBean)webBean.findChildRecursive("OrgIdFormVal");
    Or you can read it fro the VO associated with this form value.

  • Double click and get and store the value in variable.

    Hi,
    My intention is when i double click a particular record on a tabular, i want to capture or store the particular value of record into a variable and call that variable in print/preview button PLSQL code.
    Below i show the screenshot which contain a tabular and print preview button. After populating the data. the user will double click on the agent code LC354 and click the print/preview button it should display report for only the
    agent code of LC354(this is what i want). But normally when i click the print preview button it wil show the report of agent code of LC354 and LC325(this what i dont want).
    http://imageshack.us/photo/my-images/811/printpb.png/
    My problem is how to capture the value((*LC354*)) of particular record after double click the agent code(*LC354*)?
    i tried to store agent code in variable AG_CNT in mouse double click trigger with following plsql code. but it dosent work.
    declare
    AG_CNT varchar2(10);
    begin
    *AG_CNT* :=GET_ITEM_PROPERTY('RFQ_AGENT_DETAILS.AGENT_CODE',CURRENT_RECORD);
    end;after that pass that AG_CNT value in *:AG_CODE*. below code is in print/preview button.
         cursor c1 is select nvl(count(ENQUIRY_NO),0) from scott.EXP_QUOTE_STATUS
         where ltrim(rtrim(upper(job_status))) like 'APPROVED%' and ENQUIRY_NO = :REQ_FOR_QUOT.ENQUIRY_NO
    AND AGENT_CODE=*:AG_CODE* ;how to do this?
    skud.

    Hi skud
    i juast want to store the agent code to variable.if i did get ur point...
    Why don't u just use a simple assign statment for example...
    DECLARE
    V_VALUE  NUMBER;
    BEGIN
    V_VALUE := LC354 ; -- IF it was a value as LC354 static i mean
    -- or u could use any value
    V_VALUE := :ur_form_item_name; --- if it was dynamic
    END;That's it .
    Hope this helps...
    Regards,
    Ammatu Allah.

  • How to split a varchar parameter say (2,4,7,24) and get each of the value

    Hi
    I have to create a function which takes in 2 paramters,
    first one is date
    second one is a list of codes within parentheses (varchar2) ex:- '(2,4,7,24)'
    Each of this number value brings out a table information such as
    table name
    where condition
    start and end dates and soon
    I need to build a dynamic SQL ..for each table information got from each value.
    In this case, their will be 4 select queries which needs to be joined.
    To start of, I want to know, how many codes have been passed in the second parm.
    Please let me know, if their is a function which contains the number of delimiters and a function which can be used to get each value
    basically from (2,4,7,24)
    I want
    the count of delimiters (here it is 3)
    using the count of delimiters (3+1 , will be giving me the count of numbers present)
    using the delimiter, I want to get each number
    ie.,
    2 first time and create the SQL
    4
    7
    24
    Atlast will join all 4 sql queries and create one which runs to produce my output
    Thank You
    I appreciate your help

    Sir,
    I did the same think, what you have posted, but I want some simpler way, and I dont know how to do it.
    create or replace
    PACKAGE BODY PKG_EXTRACT_FACILITY AS
    -- GET THE FACILITY INFO FOR A GIVEN YEAR .
    FUNCTION F_MAIN_FACILITY(PI_DATE DATE,PI_ORGEXT_ID varchar2) RETURN GC_RESULT_SET AS
    C_RESULT_SET GC_RESULT_SET;
    VN_TABLE VARCHAR2(20);
    VN_COLUMN VARCHAR2(40);
    VN_WHERE VARCHAR2(20);
    VD_START VARCHAR2(40);
    VD_END VARCHAR2(40);
    VN_MULTI NUMBER(2);
    VN_SQL VARCHAR2(4000);
    VC_QUERY VARCHAR2(2000);
    BEGIN
    DBMS_OUTPUT.PUT_LINE(PI_ORGEXT_ID);
    DBMS_OUTPUT.PUT_LINE(''''|| PI_ORGEXT_ID ||'''');
    --VN_SQL := 'SELECT REPLACE(' PI_ORGEXT_ID ','"' ,'') FROM dual' ;
    --DBMS_OUTPUT.PUT_LINE(VN_SQL);
    --PI_ORGEXT_ID := EXECUTE IMMEDIATE(VN_SQL);
    OPEN C_RESULT_SET FOR
    --SELECT ORGEXT_TABLE,count(*), ORGEXT_COLUMN, ORGEXT_WHERE,
    -- ORGEXT_START, ORGEXT_END, ORGEXT_MULTI
    -- FROM ORG_EXTRACT
    -- WHERE ORGEXT_ID IN
    -- (SELECT regexp_substr(''''|| PI_ORGEXT_ID ||'''','[^,]+', 1, level) from dual connect by regexp_substr(''''|| PI_ORGEXT_ID ||'''', '[^,]+', 1, level) is not null )
    -- group by ORGEXT_TABLE, ORGEXT_COLUMN, ORGEXT_WHERE,
    -- ORGEXT_START, ORGEXT_END, ORGEXT_MULTI;
    --SELECT ORGEXT_ID,ORGEXT_TABLE, ORGEXT_COLUMN, ORGEXT_WHERE,
    -- ORGEXT_START, ORGEXT_END, ORGEXT_MULTI
    -- FROM ORG_EXTRACT
    -- WHERE INSTR(''''|| PI_ORGEXT_ID ||'''',ORGEXT_ID) > 0 ORDER BY ORGEXT_ID;
    SELECT ORGEXT_TABLE, ORGEXT_COLUMN, ORGEXT_WHERE,
    ORGEXT_START, ORGEXT_END, ORGEXT_MULTI
    FROM ORG_EXTRACT
    WHERE ORGEXT_ID IN
    (SELECT * FROM TABLE(in_list(PI_ORGEXT_ID)));
    -- DBMS_OUTPUT.PUT_LINE(VN_SQL);
    LOOP
    FETCH C_RESULT_SET INTO VN_TABLE, VN_COLUMN, VN_WHERE, VD_START, VD_END, VN_MULTI;
    EXIT WHEN C_RESULT_SET%NOTFOUND;
    -- dbms_output.put_line('record '|| VN_TABLE || ' ' || VN_COLUMN );
    IF ( VN_MULTI > 0 ) THEN
    IF ( VD_START IS NULL AND VN_WHERE IS NOT NULL ) THEN
    --SELECT QUERY WITH XML FUNC NOT INCLUDING START AND END DATES.
    VC_QUERY := 'SELECT ORG_MAIN.ORG_ID, Q1.' || VN_COLUMN || '
    FROM ORG_MAIN,
    (SELECT ORG_ID, RTRIM(XMLAGG(XMLELEMENT(E, ' || VN_COLUMN || ' || '','')
    ORDER BY ' || VN_COLUMN || ').EXTRACT(''//text()''), '','') AS ' || VN_COLUMN || '
    FROM ' || VN_TABLE || '
    WHERE ' || VN_WHERE || '
    GROUP BY ORG_ID) Q1
    WHERE M.ORG_MAIN.ORG_ID = Q1.ORG_ID(+)
    ORDER BY ORG_ID';
    DBMS_OUTPUT.PUT_LINE('FIRST CONDITION ' || VC_QUERY);
    EXECUTE IMMEDIATE VC_QUERY;
    ELSIF ( VD_START IS NULL AND VN_WHERE IS NULL ) THEN
    --SELECT QUERY WITH XML FUNC INCLUDING START AND END DATES.
    VC_QUERY := 'SELECT ORG_MAIN.ORG_ID, Q1.' || VN_COLUMN || '
    FROM ORG_MAIN,
    (SELECT ORG_ID, RTRIM(XMLAGG(XMLELEMENT(E, ' || VN_COLUMN || ' || '','')
    ORDER BY ' || VN_COLUMN || ').EXTRACT(''//text()''), '','') AS ' || VN_COLUMN || '
    FROM rateprep.' || VN_TABLE || '
    GROUP BY ORG_ID) Q1
    WHERE ORG_MAIN.ORG_ID = Q1.ORG_ID(+)
    ORDER BY ORG_ID';
    DBMS_OUTPUT.PUT_LINE('SECOND CONDITION ' || VC_QUERY);
    EXECUTE IMMEDIATE VC_QUERY;
    ELSIF ( VD_START IS NOT NULL AND VN_WHERE IS NOT NULL ) THEN
    --SELECT QUERY WITH XML FUNC INCLUDING START AND END DATES, BUT NOT INCLUDING WHERE CLAUSE.
    VC_QUERY := 'SELECT ORG_MAIN.ORG_ID, Q1.' || VN_COLUMN || '
    FROM ORG_MAIN,
    (SELECT ORG_ID, RTRIM(XMLAGG(XMLELEMENT(E, ' || VN_COLUMN || ' || '','')
    ORDER BY ' || VN_COLUMN || ').EXTRACT(''//text()''), '','') AS ' || VN_COLUMN || '
    FROM ' || VN_TABLE || '
    WHERE ' || VN_WHERE || ' AND
    (TO_DATE( ' ||''''|| PI_DATE ||''''|| ', ''DD-MON-YY'') BETWEEN ' ||''|| VD_START ||''|| ' AND ' ||''|| VD_END ||''|| ')
    GROUP BY ORG_ID) Q1
    WHERE ORG_MAIN.ORG_ID = Q1.ORG_ID(+)
    ORDER BY ORG_ID';
    DBMS_OUTPUT.PUT_LINE('THIRD CONDITION ' || VC_QUERY);
    EXECUTE IMMEDIATE VC_QUERY;
    ELSIF ( VD_START IS NOT NULL AND VN_WHERE IS NULL ) THEN
    --SELECT QUERY WITH XML FUNC INCLUDING START AND END DATES, AND INCLUDING WHERE CLAUSE.
    VC_QUERY := 'SELECT ORG_MAIN.ORG_ID, Q1.' || VN_COLUMN || '
    FROM ORG_MAIN,
    (SELECT ORG_ID, RTRIM(XMLAGG(XMLELEMENT(E, ' || VN_COLUMN || ' || '','')
    ORDER BY ' || VN_COLUMN || ').EXTRACT(''//text()''), '','') AS ' || VN_COLUMN || '
    FROM ' || VN_TABLE || '
    WHERE (TO_DATE( ' ||''''|| PI_DATE ||''''|| ', ''DD-MON-YY'') BETWEEN ' ||''|| VD_START ||''|| ' AND ' ||''|| VD_END ||''|| ')
    GROUP BY ORG_ID) Q1
    WHERE ORG_MAIN.ORG_ID = Q1.ORG_ID(+)
    ORDER BY ORG_ID';
    DBMS_OUTPUT.PUT_LINE('FOURTH CONDITION ' || VC_QUERY);
    EXECUTE IMMEDIATE VC_QUERY;
    END IF;
    ELSE
    IF ( VD_START IS NULL AND VN_WHERE IS NOT NULL ) THEN
    --SELECT QUERY WITHOUT XML FUNC AND WITHOUT START AND END DATES.
    VC_QUERY := 'SELECT ORG_MAIN.ORG_ID, Q1.' || VN_COLUMN || '
    FROM ORG_MAIN,
    ( SELECT ORG_ID, ' || VN_COLUMN || '
    FROM ' || VN_TABLE || '
    WHERE ' ||VN_WHERE || '
    ) Q1
    WHERE M.ORG_MAIN.ORG_ID = Q1.ORG_ID(+)
    ORDER BY ORG_ID';
    DBMS_OUTPUT.PUT_LINE('FIFTH CONDITION ' || VC_QUERY);
    EXECUTE IMMEDIATE VC_QUERY;
    ELSIF ( VD_START IS NULL AND VN_WHERE IS NULL ) THEN
    --SELECT QUERY WITHOUT XML FUNC AND WITHOUT WHERE CLAUSE AND START AND END DATES.
    VC_QUERY := 'SELECT ORG_MAIN.ORG_ID,Q1.' || VN_COLUMN || '
    FROM ORG_MAIN,
    ( SELECT ORG_ID, ' || VN_COLUMN || '
    FROM ' || VN_TABLE || '
    ) Q1
    WHERE ORG_MAIN.ORG_ID = Q1.ORG_ID(+)
    ORDER BY ORG_ID';
    DBMS_OUTPUT.PUT_LINE('SIXTH CONDITION ' || VC_QUERY);
    EXECUTE IMMEDIATE VC_QUERY;
    ELSIF ( VD_START IS NOT NULL AND VN_WHERE IS NOT NULL ) THEN
    VC_QUERY := 'SELECT ORG_MAIN.ORG_ID,Q1.' || VN_COLUMN || '
    FROM ORG_MAIN,
    ( SELECT ORG_ID, ' || VN_COLUMN || '
    FROM ' || VN_TABLE || '
    WHERE ' || VN_WHERE || ' AND
    (TO_DATE( ' ||''''|| PI_DATE ||''''|| ', ''DD-MON-YY'') BETWEEN ' ||''|| VD_START ||''|| ' AND ' ||''|| VD_END ||''|| ')
    ) Q1
    WHERE ORG_MAIN.ORG_ID = Q1.ORG_ID(+)
    ORDER BY ORG_ID';
    DBMS_OUTPUT.PUT_LINE('SEVENTH CONDITION ' || VC_QUERY);
    EXECUTE IMMEDIATE VC_QUERY;
    ELSIF ( VD_START IS NOT NULL AND VN_WHERE IS NULL ) THEN
    VC_QUERY := 'SELECT ORG_MAIN.ORG_ID,Q1.' || VN_COLUMN || '
    FROM ORG_MAIN,
    ( SELECT ORG_ID, ' || VN_COLUMN || '
    FROM ' || VN_TABLE || '
    WHERE TO_DATE( ' ||''''|| PI_DATE ||''''|| ', ''DD-MON-YY'') BETWEEN ' ||''|| VD_START ||''|| ' AND ' ||''|| VD_END ||''|| '
    ) Q1
    WHERE ORG_MAIN.ORG_ID = Q1.ORG_ID(+)
    ORDER BY ORG_ID';
    DBMS_OUTPUT.PUT_LINE('EIGHTH CONDITION ' || VC_QUERY);
    EXECUTE IMMEDIATE VC_QUERY;
    END IF;
    END IF;
    -- VC_SQL := 'SELECT ORG_MAIN.ORG_ID,' ||
    -- VC_EXT :=
    END LOOP;
    OPEN C_RESULT_SET FOR VC_QUERY;
    RETURN C_RESULT_SET;
    CLOSE C_RESULT_SET;
    END F_MAIN_FACILITY;
    FUNCTION in_list (p_in_list  IN  VARCHAR2) RETURN t_in_list_tab PIPELINED
    AS
    l_text  VARCHAR2(32767) := p_in_list || ',';
    l_idx   NUMBER;
    BEGIN
    LOOP
    l_idx := INSTR(l_text, ',');
    EXIT WHEN NVL(l_idx, 0) = 0;
    PIPE ROW (TRIM(SUBSTR(l_text, 1, l_idx - 1)));
    l_text := SUBSTR(l_text, l_idx 1);+
    END LOOP;
    RETURN;
    END;
    END PKG_EXTRACT_FACILITY;
    SET SERVEROUTPUT ON;
    Declare
    VC_OUT NUMBER;
    VC_OUT1 VARCHAR2(80);
    VC_RES PKG_EXTRACT_FACILITY.GC_RESULT_SET;
    begin
    VC_RES := PKG_EXTRACT_FACILITY.F_MAIN_FACILITY('01-JAN-10','9,2,3');
    LOOP
    fetch VC_RES INTO VC_OUT,VC_OUT1;
    EXIT WHEN VC_RES%NOTFOUND;
    dbms_output.put_line('data ' || VC_OUT ||' ' || VC_OUT1 );
    END LOOP;
    close VC_RES;
    end;
    The function I wrote, right now is at building each Select query from each result record produced from passing the second parm to the select query to extract all other table information from
    ORG_EXTRACT table.
    Any help to solve the business role I wrote in my earlier mail, is appreciated.Thank You.
    Edited by: user8703472 on Sep 21, 2012 7:37 AM
    Edited by: user8703472 on Sep 21, 2012 7:40 AM
    Edited by: user8703472 on Sep 21, 2012 7:44 AM
    Edited by: user8703472 on Sep 21, 2012 7:44 AM
    Edited by: user8703472 on Sep 21, 2012 7:46 AM

  • How can I get and change the values of Withholding tax grid in MIRO trx

    Hi everyone,
    I have a requirement where I need to get and change WT_WITHCD field in MIRO's Withholding tax grid. Is there a function module / Badi to do this? I used MRM_HEADER_CHECK, but the parameters related with this badi doesn't have this value.
    Do you have any idea?
    Thanks in advance!
    Regards.
    Leo.

    Hello Leonardo,
    You can change that table with help of the filed-symbol in the BADI MRM_HEADER_CHECK.
    LOOP AT ti_drseg INTO ls_drseg. 
      lv_index = sy-tabix.
      LS_DRSEG-MWSKZ = 'I0' . " < For example
      MODIFY ti_drseg FROM ls_drseg INDEX lv_index.
    ENDLOOP.
    FIELD-SYMBOLS: <drseg> TYPE mmcr_tdrseg.
    ASSIGN ('(SAPLMR1M)ydrseg[]') TO <drseg>.
    <drseg> = ti_drseg[].  " this will modify the data in MIRO with your modified data
    Regards,
    Naimesh Patel

  • Automatically display the values in textfield

    Hii,
    I have two items.
    1.S_NAME (Popup list of values item)
    2.S_CODE(Text field).
    If i select the one "NAME" from pop up list of values then i want to automatically display the corresponding S_CODE of that name ....Pls help me
    Thanks and Regards,
    Prem.

    Pls any one help me.its working fine when i have two items as text field.But if i use the popup list values for one item then its not working....why?
    This is my code,
    <script language="JavaScript1.1" type="text/javascript">
    function f_getValue()
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=getValue',0);
    get.add('M_MIN',html_GetElement('P6_S_NAME').value);
    gReturn = get.get();
    if(gReturn)
    {  html_GetElement('P6_S_CODE').value = gReturn  }
    else
    {  html_GetElement('P6_S_CODE').value = 'null'  }
    get = null;
    </script>
    HTML form attributes:onchange="javascript:f_getValue();"
    Please help me.How to do?.
    Thanks and Regards,
    Prem

  • Jsessionid getting appended to the dsp:a tag

    Hi,
    We have a requirement to strip off jsession id getting generated from every url.
    However, in a non-secure page (http), the link (which uses <dsp:a> tag) automatically appends the jsessionid to the url. We are not able to manually strip it out.
    Is there a way we can tell ATG10 to strip out jsession id upon link creation?
    Any idea is highly appreciated.

    I have been in contact w/ a remote user who has this same issue.
    He has a rather large volume of local mail in a POP account. He recently had to migrate his data from one Macbook Pro running Snow Leopard to another so that we could send his older machine in to get repaired.
    Now that he's working on the loaner with all his data migrated over, he gets this error when he tries to send mail. He cannot send any mail from within Mail.app. I'm currently having him back up his ~/Library/Mail/ and ~/Library/Mail Downloads/ and ~/Library/Preferences/com.apple.mail.plist files to an external drive before we really start messing about with anything too scary. I had him try to remove the envelope index file to "import" all the mail, but mail crashed twice at about 30% complete, so he put the old envelope index file back.
    Something interesting: he has two accounts, The one which does not work is the work account which is set up for POP3 and one is a personal account which is set up using IMAP.
    He just sent me a test message from the personal account and mail had no problem writing to that account's (do they have separate outboxes?) outbox.
    He does have like 400,000 messages total in a variety of folders in mail, but... it was working before he used the Migration Assistant to move his data to this temporary laptop.

  • Why tween don't reflect the value in textField.y?

    Here are my codes:
    function textReady(event:Event):void
        txtFormat.font = weiss.fontName;
        txtFormat.color = 0x000066;
        txtFormat.size = 24;
        //txtField.x = stage.stageWidth;
        //txtField.width = 800;
        txtField.autoSize = TextFieldAutoSize.LEFT;
        //txtField.height = txtField.autoSize
        txtField.wordWrap = false;
        txtField.text = event.target.data;
        txtField.setTextFormat(txtFormat);
        txtField.y = 350;
        txtField.embedFonts = true;
    //load external texts
    textLoad.load(textRequest);
    textLoad.addEventListener(Event.COMPLETE, textReady);
    txtField.x = stage.stageWidth;
    addChild(txtField);
    TweenLite.to(txtField, 30, {x:-stage.stageWidth*2.25, ease:None.easeInOut, delay:0.5, onComplete:myFunction});
    function myFunction():void {
        textLoad.load(new URLRequest("inspiration.txt"));
        txtField.x = 150;
        txtField.y = 100;
        txtField.alpha = 0;
        TweenLite.to(txtField, 5, {alpha:1, onComplete:nextText});
        //slideXTween = new Tween(txtField, "alpha", None.easeNone, 0, 1, 70, true);
        //TweenLite.to(txtField, 30, {x:-184, ease:None.easeInOut, delay:0.5, onComplete:nextText});
        //trace("tween finished");
        trace(txtField.y);
    function nextText():void{
        trace("tween done");
    I did a trace on the txtField.y and it does show 100 in the myFunction. However, when the textLoad appears on the screen, it still appears at y=350. Any idea why this is happening?

    Okay, here is my full code:
    //import classes
    import com.greensock.TweenLite;
    import caurina.transitions.*;
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    //end of importing
    //start of sound section is for sound
    var soundReq:URLRequest=new URLRequest("PaukenBrumfiel_AngelsOnHigh.mp3");
    var sound:Sound = new Sound();
    sound.load(soundReq);
    sound.addEventListener(Event.COMPLETE, onComplete);
    //end of sound section
    //Loading external texts
    var weiss:Font = new Weiss();
    var slideXTween:Tween;
    var txtAlphaTween:Tween;
    var txtNextText:Tween;
    var txtContainer:Sprite;
    var txtField:TextField = new TextField();
    var textRequest:URLRequest=new URLRequest("happyHoliday.txt");
    var textLoad:URLLoader = new URLLoader();
    var txtFormat:TextFormat = new TextFormat();
    //end of loading external texts
    function onComplete(event:Event):void {
        sound.play();
    function textReady(event:Event):void
        txtFormat.font = weiss.fontName;
        txtFormat.color = 0x000066;
        txtFormat.size = 24;
        //txtField.x = stage.stageWidth;
        //txtField.width = 800;
        txtField.autoSize = TextFieldAutoSize.LEFT;
        //txtField.height = txtField.autoSize
        txtField.wordWrap = false;
        txtField.text = event.target.data;
        txtField.setTextFormat(txtFormat);
        txtField.y = 350;
        txtField.embedFonts = true;
    //load external texts
    textLoad.load(textRequest);
    textLoad.addEventListener(Event.COMPLETE, textReady);
    txtField.x = stage.stageWidth;
    addChild(txtField);
    trace("First txtField.y: " + txtField.y);
    TweenLite.to(txtField, 30, {x:-stage.stageWidth*2.25, ease:None.easeInOut, delay:0.5, onComplete:myFunction});
    function myFunction():void {
        trace("Second txtField.y: " + txtField.y);
        textLoad.load(new URLRequest("inspiration.txt"));
        txtField.x = 150;
        txtField.y = 100;
        trace("Third txtField.y: " + txtField.y);
        txtField.alpha = 0;
        TweenLite.to(txtField, 5, {alpha:1, onComplete:nextText});
        //slideXTween = new Tween(txtField, "alpha", None.easeNone, 0, 1, 70, true);
        //TweenLite.to(txtField, 30, {x:-184, ease:None.easeInOut, delay:0.5, onComplete:nextText});
        //trace("tween finished");
        trace("Fourth txtField.y: " + txtField.y);
    function nextText():void{
        trace("tween done");
    //end of loading external texts
    Here are what the traces show:
    First txtField.y: 0
    Second txtField.y: 350
    Third txtField.y: 100
    Fourth txt/Field.y: 100
    I believed I only have one textfield but again, I'm a beginner in action script.
    Thanks for many of your help so far.

  • URL getting appended with the code

    Hi All,
    When I am trying to open a window as a pop-up in my BSP application it is appending the URL with the code I have written .
    It looks as below :
    http://sample.htmwindow.open('test.htm','width=100,height=200').
    The above URL is opening the Test.htm page but not as pop-up.Its overridding the new page and in the URL of this page I am able to see the above URL
    Can anyone tell me where I have done a mistake to open this window.
    Thanks ,
    Ghousia Naaz

    Hi,
    Could you please provide the code you've written?
    Did you try putting "javascript:" in front of your window.open code?
    Best regards,
    Guillaume

  • How to pass the value between two screen in dialog programming.

    hi everybody,
    In case of dialog programming I have two screens 200 & 300.I want to get the value of textfield in screen 200 in scrren 300 in a label or in textfield.
    Thanks
    byee

    Aashish,
      Welcome to SDN!!!!
      SAP does automatic data transfer when u have the variable defined in the Program and same variable(name) being used in any number of screens in the same program.
    U donot want to worry abt Data Transfers!!!
    If this does not solve ur requirement, let us know.
    Thanks
    Kam

  • Assignings values to textfields dynamically

    Hi,
    I am creating table rows & columns containg text fields dynamically as follows:
    function addRowToTable()
    var tbl = document.getElementById('tblSample');
    var lastRow = tbl.rows.length;
    // if there's no header row in the table, then iteration = lastRow + 1
    var iteration = lastRow;
    var row = tbl.insertRow(lastRow);
    // right cell
    var cellRight = row.insertCell(0);
    var el = document.createElement('input');
    el.type = 'text';
    el.name = 'txtRow' + iteration;
    el.id = 'txtRow' + iteration;
    el.size = 20;
    cellRight.appendChild(el);
    Now i am calling function addRowToTable() from jsp page as + key is pressed to add rows dynamically.
    So as per rows different textfields are also getting created dynamically with different id & name.
    Now i am getting session attributes containing the values for textfields from servlet.
    but i am not able to map the values for dynamic textfields getting created?
    I want to print values in appropriate fields.
    Plz help me.

    Why don't you just write a for loop within a mehtod that returns an arrayof shapes?
    Regards, D

  • How to get selected Row/Cell value in i5Grid

    Hi Friends,
    Can anyone help to how to find the selected Row/Cell value of a i5Grid object. I am able to register the event handlers which are getting invoked on row/cell selection. But I want to know how can I get the value of selected Cell/Row. I would like to add selected Items from one i5Grid to another one.
    So want to know how can I get and set the value of i5Grid object.
    MII version 14.0 SP4 Patch
    Thank in advance
    Shaji Chandran

    Hi Shaji,
    Here is my code.
    <!DOCTYPE HTML>
    <HTML>
    <HEAD>
        <TITLE>Your Title Here</TITLE>
        <META http-equiv="X-UA-Compatible" content="IE=edge">
        <META http-equiv='cache-control' content='no-cache'>
        <META http-equiv='expires' content='0'>
        <META http-equiv='pragma' content='no-cache'>
        <SCRIPT type="text/javascript" src="/XMII/JavaScript/bootstrap.js" data-libs="i5Chart,i5Grid,i5SPCChart"></SCRIPT>
        <SCRIPT>
            var Grid = new com.sap.xmii.grid.init.i5Grid("STC/C5167365/i5Grid_TagQuery", "STC/C5167365/TagQuery");
            Grid.setGridWidth("640px");
            Grid.setGridHeight("400px");
            Grid.draw("div1");
        function setCellValue()
        Grid.getGridObject().setCellValue(1,1,"Set");
        function setCellValueAgain()
        Grid.getGridObject().setCellValue(1,1,"Changed Again");
        </SCRIPT>
    </HEAD>
    <BODY>
        <DIV id="div1"></DIV>
        <INPUT type="Button" value="setCellValue" onClick="setCellValue()"/>
        <INPUT type="Button" value="setCellValueAgain" onClick="setCellValueAgain()"/>
    </BODY>
    </HTML>
    Regards,
    Sriram

  • Dynamic font loading form diffent domain The value specified for argument font is invalid

    Hi
    I am trying to dyanmiclly load domain from external swf
    First I Embed the font in an SWF called "FontsSWFList.swf"
    [Embed(source='Assets/fonts/ARIAL.TTF' , fontFamily='Arial Font' , embedAsCFF="true")]  
    public static var ArialFont:Class;
    and then I load the SWF in another "main.swf"
    and then get the font Class
    like this:
    loader.addEventListener(Event.COMPLETE,OnFinishedLoadingSWF);
    loader.load('http://www.natansites.com/FontsSWFList.swf' );
     public function OnFinishedLoadingSWF(event:Event):void{
     var FontLibrary1:Class = this.loader.content.loaderInfo.applicationDomain.getDefinition("FontsSWFList_ArialFont") as Class; 
    Font.registerFont(FontLibrary1);
    If the FontsSWFList.swf is found on the same domain as main.swf (using reletive path) then everything is OK. But when they are on diffrent domains
    I get an error:
    "The value specified for argument font is invalid"
    There is some disscussion about that here:
    http://www.actionscript.org/forums/showthread.php3?t=182499
    But the solotion seems too complicated and it didn't work for me in FLEX 4 and FTE
    Please help me

    Thanks
    I got now
    Error #2044: Unhandled SecurityErrorEvent:. text=Error #2048: Security sandbox violation: http://www.*****.com/test/****.swf cannot load data from http://www.natansites.com/FontsSWFList.swf.
    I tried planting corssdoamin.xml everywhere but it didn't help
    I give up on this issue now mybe I try it again later

Maybe you are looking for

  • Sharepoint 2010 -Script to get file name from Document Library

    Hi  can anybody send be script that works in "SharePoint 2010 management Shell" to get list of file names in document library. Thank

  • Problem setting up Apps

    When I try to download an app it won't accept the password I created when setting up my Apple ID. I've been back into my account and re-confirmed my password but still it won't accept it. Any ideas??

  • How can I modify one column of current and next record depending of some criteria?

    Having DDL CREATE TABLE #ServiceChange( [ID] [int] identity(1,1), [SHCOMP] [char](2) NOT NULL, [SHCRTD] [numeric](8, 0) NOT NULL, [SHCUST] [numeric](7, 0) NOT NULL, [SHDESC] [char](35) NOT NULL, [SHTYPE] [char](1) NOT NULL, [SHAMT] [numeric](9, 2) NO

  • Hide and Seek Partition

    Since installing BootCamp, Windows XP, and Norton Anti-virus on my Mac Pro, one of my disc partitions will not show up on the Mac desktop. It's a Mac partition, on a second internal HD, the HD without Windows. It's one of 4 Mac partitions on that dri

  • Issue with Setting Up Test Server for PHP/MySQL to work

    I've got a few newbie issues which I hope someone can help with! I'm trying to get Security Assist to work, so I've put MYSQL and workbench on my computer to get it going. I haven't created a test server in PHP, because I'm wondering if it will affec