How to combine javascript, flex

Hi,
This is Siva Kumar. I am begginer to adobe flex. I have lot
of doubts regardng flex. Actually I have different requirements for
that I think I have to combine javascript and jsp with Flex. Is it
possible to combine/integrate javascript code with flex. If
possible anybody help me to in this issue.
Thanks & Regards,
Siva Kumar

A call to JavaScript goes to the browser on client. A JSP request goes to the JSP container on the server. Therefore to
get a value from your JavaScript and insert it into a JSP Object.will require a request to the server and response back. You could use a form to send the "user" value to the server and the JSP could send response to the browser to set the cookie.
or maybe an alternative methodWhy don't you use a pure JavaScript solution. Your JavaScript function could set the cookie directly. JavaScript can manipulate cookies by using the "cookie" property of the Document object.

Similar Messages

  • How to combine JavaScript within JSP statements

    I have trouble figuring out how you can get a value from your JavaScript and insert it into a JSP Object.
    I have a JavaScript function like this:
    function setCookie(user) {
    <%
    Cookie cookie[] = request.getCookies();
    for (int q = 0; i < cookie.length; i++)
         if (cookie[q].getName().equals("username")) {
         cookie[q].setValue(user);
         break;
    %>
    I wish to add the user variable of the JavaScript into the cookie[q]'s value. Is this possible? If so could anyone please help me in telling how to do this or maybe an alternative method.
    Thank You

    A call to JavaScript goes to the browser on client. A JSP request goes to the JSP container on the server. Therefore to
    get a value from your JavaScript and insert it into a JSP Object.will require a request to the server and response back. You could use a form to send the "user" value to the server and the JSP could send response to the browser to set the cookie.
    or maybe an alternative methodWhy don't you use a pure JavaScript solution. Your JavaScript function could set the cookie directly. JavaScript can manipulate cookies by using the "cookie" property of the Document object.

  • How to combine two datarows (business component data) in BI Publisher

    Hi ,
    We are using BI Publisher in Siebel Environment.
    We have data coming from two business components (like from 2 diff tables)
    a) <?for-each:ssTest1?>
    b) <?for-each:ssTest2?>
    ssTest1 and ssTest2 are the business components
    We need to combine these 2 datarows (a&b) and show the data into a single combined data row for ex like <?for-each:ssTest1ssTest2?> and show all the fields in that.
    I'm not sure how we can combine these two data rows into a single combined data row and show the data.
    Any help from any one would be apprecated.
    Thanks
    PV
    Edited by: user8633002 on Oct 21, 2010 4:05 PM

    Hi sajid
    There was nothing more description about your issue in this site and I found an issue below is mostly like yours
    http://www.codeproject.com/Questions/855487/how-to-combine-two-table-value-in-rdlc-report
    In the issue above, if you want to show the two other tables in the report, I think you could combine the tables into one datatable joining on key. The link below show an example of a DataSet Helper from Microsoft about combine DataSets. Take note of
    the related content for other DataSet Helper examples. And then you could use the datatable in your RDLC.
    # HOW TO: Implement a DataSet JOIN helper class in Visual C# .NET
    http://support.microsoft.com/kb/326080/en-us
    In an alternative way, I think you could create a view in the database which combine your tables and use it in your rdlc.
    In addition, your issue is about asp.net and you could get more support in the asp.net forum whose link as below.
    http://forums.asp.net
    Best Regards
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • Does anyone know how to combine two apple ID's together?

    I have found out that I have two Apple ID's! One is for my apps on my iphone and the other is for iTunes.  Somehow they are set to different email addresses but are being sent to the same email address.  Does anyone know how to combine them, so I use just one Apple ID?

    This is my solution too.
      You see, what I also downloaded all the free apps I have on iPhone to this account I choose to use, so this way I didn't need to change accounts (of course it was on the iOS 5 times)

  • How to combine sales and delivery data

    hi
    i have requirement to make a report from sales as well as deliveries. Important fields in report are sales document , material , plant , sales document type , country key , sold to party , ordered quantity , delivered quantity , price from vakon ( KBETR ), actual goods issue date.
    The required extractors are 2LIS_11_VASCL, 2LIS_11_V_SSL ,2LIS_11_VAKON.
    Problem is how to combine sales and delivery data as V_SSL has different key figures.Multicube is not the solution as dont have plant , sold to party and many other fields in V_SSL.
    Kindly suggest how to combine sales and deivery data.
    Regards,
    Monika

    I guess you do have shipping point in delivery.
    In most scenarios shipping point may not(or) may be same like order plant.
    Although they are different you can still roll up the delivery information to order level by plant since you have order # available as reference key in delivery.
    With this reference key you can convert all delivery information to order (item) level.
    I guess you can use one merge ODS with one cube (or) with 2 ODS for each at order level for validation.
    You may have to map delivery type to order type as per R3 configuration as well.
    speak with any Logistics guys for help.
    cheers
    Martin

  • Dataretrieval in hr abap  (how to combine both pa and om in hr abap)

    Hi Experts?
        My requirement is i wants to retrieve the data from HRP1000 table i.e get the long text from the field sc_text ,for this they have provided me some field values like PLVAR='01'  ,  OTYPE='O'  , OBJID -
    (not given)  ,ENDDA =9999.12.31. and also they have mentioned table PA0001-BUKRS(field).
          how to get objid field?
       Please provide me query ,how to combine Organizational data(hrp1000)  with Personnel administration data(pa0001-bukrs)
    Thanks in advance,
    mohan

    Hi mohan,
    1. Its very impractical,
       especially in SAP HR Tables,
       to directly get data from tables using joins.
    2. In your case,
       first read from infotype 0001
       using direct select statement,
       (or u can use HR_READ_INFOTYPE)
    3. After wards, LOOP / FOR ALL ENTRIES IN
       and then read from the other required tables HRP1000.
    regards,
    amit m.

  • How to combine the line items of 2 Sales orders into 1 delivry

    how to combine the line items of 2 Sales orders into 1 delivry
    and their process, pre-requisites and tcode

    The prerequisites are:
    1) In the customer master sales area data, shipping tab, there is a field called Order combination. u must tick that.
    2) for the two orders, the sold to party & ship to party must be same
    3) both orders must have created from same plant & shipping points
    4) the line items must have same loading grp.
    5) the both orders sheduline line date must be same.
    transaction code for the same is VL04.
    enter the required data and select the order nos to be processed.
    Do reward points if it is useful

  • How to combine several files into one?

    How to combine several pdf files into one?

    Combine Files is a feature of Acrobat Pro.  Because Reader Touch does not support the feature (yet), this is not the right forum for the question.
    Here's the Acrobat forum for Creating, Editing & Exporting PDFs.
    http://forums.adobe.com/community/acrobat/creating__editing_%26_exporting_pdfs
    You can ask questions and get help from Acrobat experts there.  Good luck!

  • How to call javascript function from PL/SQL procedure

    Can anybody advice me how to call javascript function from PL/SQL procedure in APEX?

    Hi,
    I have a requirement to call Javascript function inside a After Submit Process.
    clear requirement below:
    1. User selects set of check boxes [ say user want to save 10 files and ticks 10 checkboxes]
    2. user clicks on "save files" button
    3. Inside a After submit process, in a loop, i want to call a javascript function for each of the file user want to save with the filename as a parameter.
    Hope this clarify U.
    Krishna.

  • Sapscript: How to combine two elements into a block when display ?

    /E  ITEM_CONDITIONS
    /:   PROTECT
    ZC &KOMVD-VTEXT&,,&KOMVD-KWERT&
    /:   ENDPROTECT
    /E  TOTAL_AMOUNT_ITEMS
    /:   PROTECT
    ZC &KOMK-SUPOS&
    /:   ENDPROTECT
    Hi, all. May i know how to combine the two elements into a same block when displaying?
    That's mean this two element content will not be split into two part between two pages when there is insufficient space in the front page.
    Thanks.
    Edited by: Jiansi Lim on Oct 8, 2008 12:24 AM

    You can evoke the PROTECT..ENDPROTECT in the print program before the call of the text elements.
          CALL FUNCTION 'CONTROL_FORM'
            EXPORTING
              command = 'PROTECT'.
          CALL FUNCTION 'CONTROL_FORM'
            EXPORTING
              command = 'ENDPROTECT'.

  • How to make Javascript access standard JSF component

    Hello all,
    I'm in need of a proper javascript code that access standard jsf component.
    Like we do for html tags;
    if( el.tagName.toLowerCase() != 'select')
    I need to do the same thing for a jsf tag i.e; <h:selectOneMenu>. How to make javascript access <h:selectOneMenu> like it does with <select> tag ? Please let me know asap. Extremely sorry if the question is kind of stupid....cause I'm a beginner for JSF environment.
    Any sort of help, suggestion or advice would highly be appreciated.
    Thanks in advance.

    Ummmm, I may be off the beaten path, but by the time your javascript is called the h:selectOneMenu would be a select tag within the dom. You should be able to reference that tag as you normally would.

  • How to combine multiple MailAttachement-x payload to One -Help Please ?

    Hi Friends  ,
                      In my scenario My Mail sender Adapter reading attachment . It works fine for 1 attachement but <b>if more than</b> one comes<b> It is reading all</b> attachements  <b>but  it is converting the First attachement only  to XML format </b> , rest  of files are left as it is.
             Can you please tell me how to combine all the Mailattachements and then covert into XML ?
              In our Mail  Sender configurations  , I am giving parameters for MessageTransFormBean like
               xml.documentName                -    MT_Row
               xml.documentNameSpace      -     http://com.test
                xml.fieldNames                      -    Details
               xml.fieldSeparator                   -     ' \n'
               xml.ProcessFieldNames         -  FromConfiguration
      In PayLoadSwapBean
               i am giving propertieslike Content-Description , Content-Disposition , attachement;filename="MailAttchement-1.txt" and all other configuration i am giving.
           I am not clear as if will it WorkFor Multiple attachement ? I can understand as it wil work for Only one attachement . But if i can get multiple attachemnt 1 with proper XML conversion  ( our DataType )  , rest of files are  with out XML
    conversion . How can i process those files also as XML converted ?
            Expecting your reply asap !
    Regards .,
    V.Rangarajan

    > Can you please tell me how to combine all
    >  the Mailattachements and then covert into XML ?
    This is not possible without a self-written adapter module.
    Regards
    Stefan

  • Help me!! How to use JavaScript with JSP ??

    I am using JDeveloper and I created a screen in JSP which uses a bean for database connectivity and retriving info onto the page.
    The page has a ListBox where list items are populated from the database.My requirement is
    whenever the list is changed the page shuold be refreshed with the selected item info.
    I tried to use 'JavaScript' for triggering the event with 'onChange' event of the ListBox.But the event is not getting invoked. I think JavaScript is not working with JSP.
    Please help me with how to Use javaScript with JSP or any other alternative where I can meet my requirement.
    I have one more question...I have gone through the JSP samples in OTN and I am trying do download the sample 'Travel servlet' which show list of countries...etc
    I have also gone through the 'readme' but I don't know how to extract .jar file.
    I would be great if you could help me in this.
    Thanks!!
    Geeta
    null

    We have a similar need. We have used Cold Fusion to display data from Our Oracle Database. We have a simple SElect Box in HTML populated with the oracle data. When someone selects say the State of Pennsylvania. then we have an On change event that runs a Javascript to go get all the cities in Pennsylvania.
    Proble we are having is that inorder for the Javascript to work , we currently have to send all the valid data.
    Do you know of any way to dynamically query the the Oracle database in Javascript

  • How to combine a few PDF files into one with Adobe reader?

    how to combine a few PDF files into one with Adobe reader?

    Hi aho,
    You would need either Acrobat (link to free 30 day trial) or our PDF Pack subscription service to perform that task.
    What can I do with Reader?
    Let me know if you have further questions!
    Regards, Stacy

  • How to use Javascript to load random pages?

    I wonder if anyone knows how to use Javascript to load a list
    of links stored in the text file.
    Every address will take a line, and the Javascript will
    randomly select one of the addresses to load.
    The user will click the button "random" and access the page
    randomly selected by the script.

    Addition note:
    I forgot to say this because my computer froze......(how
    lame)
    I got the code for random accessing the links.
    But now the problem is, is there anyway to parse a text file
    into the array in Javascript?

Maybe you are looking for