Passing values to Jframe from JApplet

Hi All,
i need to open a frame when someone clicks on some particular part of an applet. also, i need to pass some values to that frame based on the region selected.
Previusly i m doing it through showDocument method which calls a JSP which in turn calls the applet that i m trying to change as a frame now.
Help please.
Liza

just to make things more clearer... i was passing values as querystring to JSP which passes them to an applet through parameter tags.
Liza

Similar Messages

  • How to passing value into Captivate from html?

    How to passing value into Captivate from html?
    Or
    How to communicate between objects in one slides?

    Hi czhao0378 and welcome to the forums!
    Captivate does not natively allow you to communicate your own
    data, either internally or externally. The only way to make this
    happen is to create your own functionality, either via custom-built
    Flash objects or JavaScript code executed in the browser or a
    combination of both.
    The only example I've seen of any "data passing" inside
    Captivate is a custom text input/output solution that was posted on
    the Captivate Developer Exchange:
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1253 021
    This solution consists of an input box that takes information
    from the user on one slide and a second box that displays that
    information on another slide. The functionality was built in Flash
    and is embedded in Captivate as a Flash "animation". Unfortunately,
    since this is a custom functionality, the information is not
    included in the user completion results Captivate can pass to a
    Learning Management System.
    Since the solution mentioned above relies on a Flash
    Actionscript variable to hold the information that is displayed,
    you can also pass the information from HTML to Captivate using the
    "SetVariable" command in JavaScript. This would at least allow you
    to display your own HTML-based data inside Captivate.
    Beyond that, I'm not aware of any other way to gather and
    pass data in Captivate.

  • Passing values to javascript from database

    hi friends,
    I have to fetch values from the database and pass the values to the java script variable.
    I tried this, but is not working. When i place the script inside the java, it isnt working. Iam passing value to this script variable as argument to a function. This is my code:
    ResultSetMetaData rsmd = rs.getMetaData();
    int numberOfColumns = rsmd.getColumnCount();
    while (rs.next())
    for (int i = 1; i <= numberOfColumns; i++)
    count=count+1;
    if (i > 1)
    columnValue = rs.getString(i);
    %>
    <script>
    var hcbList = [<%=request.getParameter("columnValue")%>];
    </script>     
    <%           
    System.out.println("");
    st.close();
    %>
    Pls solve the problem. Its very urgent!
    thanx

    Keep this in mind: JSP is source generation software.
    In other words JSP generates the HTML and/or Javascript that will be rendered on the browser. So What you need to do is keep the JSP and Javascript separate in your mental picture. You ask yourself, "what would the finished Javascript code look like that would give me the results?" Then you apply JSP as a template to fill in the blanks. In your example you want a list or an array of values in your Javascript. I don't use Javascript to often but from memory I belive an array in Javascript is something like this:
    <script>
    var hcbList = {"val1", "val2, "valx"};
    </script>That's what the finished Javascript would look like. Now you apply JSP as a template.
    <!-- This is the fill-in-the-blank template
    <script>
    var hcbList = {<%=insertArrayHere%>};
    </script>Now you fill in the blanks
    //insertArrayHere is your blank
    String insertArrayHere = "";
    //iterate over the collection and build a string that represents the JS array
    for(int i = 1; i <= numberOfColumns; i++)
       //wrap each value with quotes if it is to be a JS string
       insertArrayHere += "\"" + rs.getString(i) + "\"" + ","; //terminate with a comma
    //trim the last comma off the array guts
    insertArrayHere = insertArrayHere.substring(0, insertArrayHere.length() - 1); Now I'm sure that's not exactly what you want because it looks like you got some crazyness going on in your logic. I don't know how you can query the using values from the database. Anyhow it poses as a good example of how to apply the concept of the two technologies. (Also, why are you doing a System.out from JSP? You should be calling log() if you want console output.) The whole idea is that JSP can NOT talk directly to Javascript. It can only generate Javascript dynamically before it is received by the browser.

  • Passing values in table from one component to another component in gp

    hai all,
      I have a table with 5 rows in a view in component1.I need to pass the values in the table from component1 to table in component2.Plz help me with coding of interface controller of both component.
    Thanks in advance
    regards
    Sharanya.R

    Hi,
    Here more than coding its mapping of your components are important to transfer data
    Ex:
    You need to have a public part that exposes the node which is bound to the table in COMPA.
    Then in COMPB you need to make COMPA as used COMP.
    Then you need to map the contexts between them.
    Once this is done . You will need to code if you want to iterate through the elements.
    Following Docs will help you get  a  clear understanding
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f727d100-0801-0010-4cbd-b0ad5c161945
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e1f4df00-0801-0010-6298-8fdf667bbd0f
    Regards
    Ayyapparaj

  • Passing values to OnDemandProcess from Select Statement on Reports Page

    I think I'm just missing some of the proper syntax, Can somebody please help me.
    As I've come to understand this process of passing the values,
    I recognize it as (3) steps.
    1. Referencing the "javascript" in the Select Statement of the Reports Page.
    2. Including the "javascript" in the Page Header region.
    3. Defining the Process as an OnDemand Application Process.
    My problem is:
    a. I can't seem to get the Value passed to the Application Process.
    b. I don't know how to reference the Value passed once I get it passed.
    Here's what I've got done so far:
    1. (The Select Statement)
       onClick="javascript:ORDER_CONNECT_SEQUENCE('||ID||')
    {code}
    2. (The javascript)
    {code}
    function ORDER_CONNECT_SEQUENCE('+ID+')
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=ORDER_CONNECT_SEQUENCE',0);
    get.add('+ID+');
    gReturn = get.get('+ID+');
    {code}
    3. (The Application Process)
    {code}
       BEGIN
       Select '+ID+' into THIS_CIRCUIT from dual;
    {code}
    I Know that the Application Process is being referenced and that the OnClick routine is working properly,
    because if I plug a Value into the Application Process, instead of using '+ID+',
    Then I get all of my desired results.
    Any help you can give me here is greatly appreciated.
    Thanks- Gary                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Dimitri, Thanks for your efforts here, but its still not working for me.
    Here's what I understand from your suggestions:
    1. (changes to the javascipt)
       a. replace function ORDER_CONNECT_SEQUENCE('+ID+')
           with
           function ORDER_CONNECT_SEQUENCE(pId)
       b. replace get.add('+ID+')
           with
           get.addParam('x01',pId)
       c. replace getReturn = get.get('+ID+')
          with
          getReturn = get.get()
          get = null2. (chages to the Application Process)
       a. add l_value varchar2(4000) to my list of declarations
       b. add l_value := wwv_flow.g_x01 below the begin statement
       c. I guess then I would reference the l_value like this:
           Select l_value into THIS_CIRCUIT from dual* Also, You didn't mention any changes in my Select statement in the Reports region of the page.
    FYI.
      onClick="javascript:ORDER_CONNECT_SEQUENCE('||ID||')
    {code}
      The 'ID' which I'm referencing here is an ID from the table which I'm querying.
    Am I misunderstanding you somewhere?
    Thanks- gary                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Passing values to FM froma selection screen

    Hi Guys,
    I have a selection screen in which i have 'From' and 'To' input fields.Also using multiple select button i can select discrete values.In the function module they have a table type in the import param.
    Is it possible to send the  values within the range plus the discrete values selected? If yes, then please help.
    Thanks,
    tubai.

    Hi,
    You can below code:
      DATA: rt_ranges TYPE REF TO data.
      FIELD-SYMBOLS:  <fs_select> TYPE table,
                                <fs_wa>  TYPE ANY,
                                <fs_wa1> TYPE ANY.
      DATA: lt_select  TYPE TABLE OF rsdsselopt,
                wa_sel_opt TYPE rsdsselopt.
    Retrieve the data from the select option
      rt_ranges = wd_this->w_handler->get_range_table_of_sel_field(
                               i_id = 'SELECT' ).
    Assign it to a field symbol
      ASSIGN rt_ranges->* TO <fs_select>.
      IF NOT <fs_select> IS INITIAL.
        LOOP AT <fs_select> ASSIGNING <fs_wa>.
          ASSIGN COMPONENT 'SIGN' OF STRUCTURE <fs_wa> TO <fs_wa1>.
          lwa_sel_opt-sign = <fs_wa1>.
          ASSIGN COMPONENT 'OPTION' OF STRUCTURE <fs_wa> TO <fs_wa1>.
          lwa_sel_opt-option = <fs_wa1>.
          ASSIGN COMPONENT 'LOW' OF STRUCTURE <fs_wa> TO <fs_wa1>.
          lwa_sel_opt-low = <fs_wa1>.
          ASSIGN COMPONENT 'HIGH' OF STRUCTURE <fs_wa> TO <fs_wa1>.
          lwa_sel_opt-high = <fs_wa1>.
          APPEND lwa_sel_opt TO lt_select.
        ENDLOOP.
      ENDIF.
    You then pass lt_select to your FM.
    Regards,
    Priya

  • Passing values to FG from program

    Hi all
           Please help me to sort this problem.I have to call a screen in the Function group from a report  program so I am using below code to call it.
    clear bdcdata_wa.
      bdcdata_wa-program = 'SAPLZSECURITIES'.
      bdcdata_wa-dynpro = '0300'. "where 300 normal screen
      bdcdata_wa-dynbegin = 'X'.
      append bdcdata_wa to bdcdata_tab.
      call transaction 'ZDOCS_SECURITIES' using bdcdata_tab.
    Now I have to access the values from the program in FG screen after calling the screen.So I used below code but it is not working.Please help me to sort it out.
    assign ('(ZCML_DOCS_SECURITIES)I_VDARL') to <fs_vdarl>."I_VDARL Structure
          if sy-subrc = 0.
            move <fs_vdarl> to i_vdarl.
          endif.
    Thank You.
    Regards
    Giri

    That would work if it's an include/form, and you read data from the main program. But I do not know if it can be used with a call transaction. Maybe the problem is that it is not the same LUW... But I am not sure.
    I can't see anyting wrong with the code itself.
    When debugging, is the field symbol <fs_vdarl> assigned?
    Can you use an export to memory instead?

  • Passing Values to and from a Javascript rule - Agentry

    Hi;
    I am working on determining the first day and last day of the week using a javascript rule, so this can be in turn passed to an Agentry date and time property. When I debug in the ATE, it seems my javascript rule is always returning zero. What could I be missing, please see below the rule implementation. I am using this rule on a transaction property, under the "Initial Value" attribute - before data entry:
    What could my rule be missing, How could I implement this correctly?
    Much appreciated!
    Sizo Ndlovu
    Tags edited by: Michael Appleby

    Hi Stephen;
    I have done as you advised, but I seem to be still getting a zero returned, please see below:
    The Javascript method return variable (curUnixTime -: as shown on the first screenshot), is it automatically returned onto the WeekEnd property or there is extra code/steps that I need to add?
    Thanks and Regards;
    Sizo Ndlovu

  • Passing values as parameters from forms

    We are trying to use the On successful submission of a form area to forward to a report based on a value entered on the form.
    Is there a way to use a value from the form in the url?

    Here is the code I used. The code in bold allowed me to use the value entered on the form as a parameter for the report I am forwarding to.
    declare
    bidder_id number := 0;
    blk varchar2(10) := 'DEFAULT';
    begin
    bidder_id := p_session.get_value_as_number(p_block_name => blk,
    p_attribute_name => 'A_BIDDER_ID');
    go('PBR.SUM_REG_INFO.show?p_arg_names=pbr_bidder.bidder_id&p_arg_values='||bidder_id);
    end;

  • Passing values to jsp from html..

    Hi all,
    I have a jsp containing a selection list and need to pass the value to the java segment of the jsp. When reserching this, I've found some info where an html page was created, an initial jsp was saving the info (or bean was used) and then a third jsp displayed the data (using buttons). This is too many steps and I'm needing a way for the same jsp to display containing the selected option (simulating a refresh with the post when the drop down list is used). Is redirecting while setting and getting attributes all at once feasible/possible or is there a better direction or work around for this?
    Thanks in advance,
    Geoff-

    I would think submitting the page to itself, and setting hidden fields to signal that it is a resubmission, may be the way to go. If the new information being displayed is minimal, JavaScript may also work, by setting up an empty <div> or <span> and setting the innerHTML or innerText properties. The advantage of the JavaScript solution is it would be quicker, having the client do all the processing, but it also browser dependant.

  • JFrame from JApplet won't appear as it should

    Hi to all,
    I have created a JApplet, that contains some buttons. When a button is clicked, a JFrame should be displayed. I am experiencing the following problem: a short blue bar (containing the minimize, maximaze and close button) is the only thing being displayed. When I maximize it, I can not see what should be inside the JFrame (no matter if it has a null or XYLayout).
    Does anybody know what could be happening??? To display the Jframe I'm using the following code:
        existingJframe.getContentPane();
        existingJframe.pack();
        existingJframe.setVisible(true);
        existingJframe.setLocation(100,200);
        existingJframe.repaint();Thanks a lot

    what happens if you display a JDialog instead of a JFrame here?

  • Passing values to and from Excel

    All,
    I am building a program to gather data from a force gauge via RS232. One of the requirements of the program is to have the user tell the program what sample they are on in case their samples are not in order. I also need to check my Excel sheet if that sample has already been tested. Some of my code in a module looks like this:
    Function HasSampleBeenTested(dblSample As Double, strSG As String) As Boolean
    ' Finds out if the sample being tested has already been tested.
    HasSampleBeenTested = False
    Range("B14").Select
    'First, find the Sample Group Number
    Do Until ActiveCell.Value = ""
        If ActiveCell.Value = strSG Then
            ActiveCell.Offset(0, -1).Select
            Exit Do
        Else
            ActiveCell.Offset(1, 0).Select
        End If
    Loop
    ' Next, find the actual sample
    Do Until ActiveCell.Value = ""
        If ActiveCell.Value = strSample And ActiveCell.Offset(0, 1).Value = strSG Then
            HasSampleBeenTested = True
            Exit Do
        Else
            ActiveCell.Offset(1, 0).Select
        End If
    Loop
    End Function
    I also have a diagram wired to this exact instance of Excel, but I'm not sure how to wire my type (boolean) and get the data out as a boolean via the Variant to Data VI.
    Solved!
    Go to Solution.
    Attachments:
    Diagram1.png ‏6 KB

    There is no reason to actually have an Insert Into Array. The Build Array already gives you an array. The Excel Run Macro actually wants an array of variants, not an array of strings. The red coercion dot indicates that your array of strings is being converted to an array of variants. I'm not sure if the macro will actually received the Sample # correctly since you're converting it to a string. The safe bet would be to convert each value to a variant (using the To Variant function) and build an array from that to feed to the Excel Run Macro:
    Attachments:
    Example_VI_BD.png ‏2 KB

  • [ipad] SplitView and passing value to DetailViewController

    Sorry for my english
    i'm creating a Splitview project
    in my RootViewController i have a table view
    that when use didSelectRowAtIndexPath load another one tableview with WithNibName method;
    When i try to pass a value from a selected cell to the detailview doesn't work without error;
    to test i try to pass value to detailview from second table loading it as first one table in pop control and it work;
    what am i forgetting?
    I attached You my project
    First table is loaded from RootViewController class
    Second one form SecondTable class
    and the DetailView from DetailViewController
    thanks....
    www.emanueleferrari.it/test.zip

    Hi Emanuele, and welcome to the Dev Forum!
    bolco wrote:
    When i try to pass a value from a selected cell to the detailview doesn't work without error;
    I don't have an iPad dev environment right now, so can't run your project, but here are some suggestions that might lead you in the right direction:
    Since the transition between the RootViewController and the SecondTable controller object is working correctly under your split view controller, I don't see why the transition from the SecondTable controller object to the DetailViewController object should be different. So try something like this:
    // SecondTable.m
    #import "DetailViewController.h"
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    // ricaviamo il link dell'elemento selezionato
    NSString *link = [[elencoFeed objectAtIndex:indexPath.row] objectForKey: @"link"];
    NSLog(@"%s: link=%@", _func_, link);
    // ripiliamo il link da spazi, return e tabs
    link = [link stringByReplacingOccurrencesOfString:@" " withString:@""];
    link = [link stringByReplacingOccurrencesOfString:@"
    " withString:@""];
    link = [link stringByReplacingOccurrencesOfString:@" " withString:@""];
    NSLog(@"%s: link=%@", _func_, link);
    // apriamo la nuova vista
    DetailViewController *dvController = [[DetailViewController alloc]
    initWithNibName:@"DetailView" bundle:[NSBundle mainBundle]];
    dvController.detailItem = link;
    [self.navigationController pushViewController:dvController animated:YES];
    [dvController release];
    I removed the alert view code to simplify things, and I would recommend leaving it out until you get the above, basic transition working correctly.
    Are you presenting the alert view so the user can decide whether or not the detail view should be opened? If so, you might want something like this:
    // SecondTable.m
    #import "DetailViewController.h"
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    // ricaviamo il link dell'elemento selezionato
    // ripiliamo il link da spazi, return e tabs
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:link message:@"Your description"
    delegate:self cancelButtonTitle:@"No" otherButtonTitles:@"Yes", nil];
    [alert show];
    [alert release];
    - (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex {
    if (buttonIndex == 1) {
    // apriamo la nuova vista
    DetailViewController *dvController = [[DetailViewController alloc]
    initWithNibName:@"DetailView" bundle:[NSBundle mainBundle]];
    dvController.detailItem = alertView.title;
    [self.navigationController pushViewController:dvController animated:YES];
    [dvController release];
    The code which brings up the detail view is placed in the alert view delegate method because the main thread isn't suspended after [alert show]. Note the link which must be passed to the detail view has been saved in the 'title' property of the alert view, so it's already available in the alert view delegate method.
    - Ray

  • Passing value from JSP to JApplet

    Hello,
    I am stuck up with a problem, can anyone please tell me how do i pass a value from a JSP page
    to a JApplet,
    and the parameter passed through JSP should be displaed in the JTextArea.
    It would be kindful if any of you could help.
    Thanks
    Sanam

    hello,
    thanks for reply.
    I know how to pass parameters from html,
    I want to pass values from jsp page,
    and i dono how to do it, may be we cann pass values through url connection but i dono how.
    if anone knows plz help me in solving this.
    i hvae posted my applet code.
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.JToolBar;
    import javax.swing.JButton;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import javax.swing.JTextArea;
    import javax.swing.JScrollPane;
    import javax.swing.JPanel;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    import java.sql.*;
    <applet code = "DocApplet" width = 500 height =5000>
    </applet>
    public class DocApplet extends JApplet
         private JPanel jp;
         private Container cp;
         private JTextArea jt;
         private JToolBar tb;     
         private JScrollPane sp;
         private String annotation;
         private String url;
         private Connection con;
         private Statement stmt;
         public void init()
              jp = new JPanel();
              cp = getContentPane();
              jt = new JTextArea();
              tb = new JToolBar();
              sp = new JScrollPane(jt);
              repaint();
         public void start()
              jp.setLayout(new BorderLayout());
              jp.add(tb, BorderLayout.NORTH);
              jp.add(sp, BorderLayout.CENTER);
              jt.setBackground(Color.BLACK);
              jt.setForeground(Color.WHITE);
              setContentPane(jp);
              addButtons(tb);
              repaint();
         public void run()
              repaint();
         public void paint()
         private void addButtons(JToolBar tb)
              JButton button = null;
              button = new JButton("Save");
              button.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent e)
              tb.add(button);
    }

  • Passing values from a FORM to another FORM

    Hi,
    I have to pass values from FORM "A" to FORM "B". What is the best way to do this?\
    Can I use a GLOBAL variable?
    Thanks,
    Marc.

    I think he meant the global namespace.
    You set a :global_your_name_here to a value and that value is available in your entire application. See the help file section on the global namespace for more information.
    Forms parameters are parameters that you form picks up from the outside when it starts. The calling entity must supply them in the URL or they will be set to null. You set them up in the object navigator in the Parameters node.

Maybe you are looking for

  • No subtitles when using Apple Tv

    Hi, I have a lot of mp4/srt movies on my macbook pro! I used an app called subler to convert the movies to m4v and imported then into iTunes. Now Quick Time and iTunes can play the movies with their subs. In both programs the subtitle menus where ena

  • Need help for PeopleSoft Installation - PeopleSoft Database configuration

    Hello, I am working on the step that requires me to put in Admin User, Admin Password, PeopleSoft Symbolic ID, PeopleSoft Access ID, PeopleSoft Access Password, PeopleSoft Connect ID, PeopleSoft Connect Password, Microsoft SQL server Data file name &

  • What is plugin for this web site..?

                                         Helloo ı use 10.3 Version Adobe FP.....But  everytime after the updating to new version...Come one error unter the web page......(.This is a plugin for the web site didnt worked.)......What is this..?and what can

  • Publishing infopath 2007 to sharepoint 2013

    Hi, Please let me know if we can publish infopth 2007 forms to sharepoint 2013. Thanks

  • S2109A not responsive

    My S2019A tablet suddenly became unresponsive. Power-on button doesn't work and nothing comes up even if I plug it into the charger. Does anyone have any idea how to fix this? I've previously encountered a problem with it restarting repeatedly, but m