Code Snippet for buttons problem

Why would a code snippet from PayPal work with some items I have listed for sale on my website, but not others? I have made sure that nothing is overlapping, and that the buttons are actually on the page.

What's the URL to the page?

Similar Messages

  • A useful code Snippet - for newbies

    Hi All newbies
    Here is a use ful code snippet, for segregating values in a pipe delimited string.
    ArrayList arrayOfValues = new ArrayList();
    int startIdx=0;
    int endIdx=0;
    int loopIdx = 0;
    if (strStatus!= "") // The pipe de limited string
    while(true)
    endIdx = strStatus.indexOf('|', startIdx);
    if (endIdx <= 0)
    // No more entries
    arrayOfvalues.add(loopIdx++, strStatus.substring(startIdx));
    break;
    arrayOfValues.add(loopIdx++, strStatus.substring(startIdx, endIdx));
    startIdx = endIdx+1;
    for(int i=0;i<arrayOfValues.size();i++)
    System.out.println("elements in arraylist "+(String)arrayOfValues.get(i));
    Hope this is helpful
    All the best
    Swaraj

    While it's true that this will work (after the typos are corrected) I
    prefer something like this:     String strStatus="This|is|a|test";
         ArrayList arrayOfValues = new ArrayList();
         StringTokenizer st=new StringTokenizer(strStatus, "|");
         while(st.hasMoreTokens()) {
              arrayOfValues.add(st.nextToken());
         ListIterator li=arrayOfValues.listIterator();
         while(li.hasNext()) {
              System.out.println("Elements in ArrayList: "+(String)li.next());
         }Mark

  • Working code snippet for JSSE 1.0.2

    This code works only with JSSE 1.0.2. JSSE 1.0.1 has a bug I believe which give null cert chain
    error when using client authorization.
    Below is a java code snippet to create a SSL server and client sockets.
    SocketsFactory.java
    This class is an utility class which gets you the Secure Socket for server and the client.
    It reads from the properties file.
    public class SocketsFactory{
    /** Creates a SSL client socket. It uses the properties obtained from the
    * sslPropsFile to create the client socket.
    * @param sslPropsFile The ssl properties file that contains information about the provider etc.
    * @param host The host to connect to.
    * @param port The port on which this socket should attempt to connect
    * @throws IOException if there was any exceptions in creating the sockets or if the properties file
    * was not found or corrupted.
    * @return returns the socket that was created.
         public static Socket createSecureSocket(final String sslPropsFile, String host,int port)throws IOException{
              Properties props = readPropertiesFile(sslPropsFile);
              SSLSocketFactory factory = null;
              System.setProperty("javax.net.ssl.trustStore",(String)props.get("com.ibm.idmg.ssl.keyStore"));
              //Getting a secure client socket using sun..
              try {
                   addProvider(props);
                   // Set up a key manager for client authentication
                   // if asked by the server. Use the implementation's
                   // default TrustStore and secureRandom routines.
                   SSLContext ctx = getSSLContext(props);
                   factory = ctx.getSocketFactory();
              catch (Exception e) {
                   e.printStackTrace();
                   throw new IOException(e.getMessage());
              SSLSocket client =(SSLSocket)factory.createSocket(host, port);
              client.startHandshake();
              return client;
    /** Creates a SSL server socket based on sun's implementation using JSSE. Uses the
    * sslPropsFile to get the keystore used for validating certificates and their
    * passwords.
    * @param sslPropsFile The properties file containing SSL provider, key passwords etc.,
    * @param port The port to which this socket should listen at.
    * @throws IOException If the properties file was not found or it was corrupted or if there was any
    * other errors while socket creation.
    * @return the serversocket object.
         public static ServerSocket createSecureServerSocket(final String sslPropsFile,int port) throws IOException{
              Properties props = readPropertiesFile(sslPropsFile);
              String trustStore = (String)props.get("com.ibm.idmg.ssl.keyStore");
              System.setProperty("javax.net.ssl.trustStore",trustStore);
              //     Getting a sun secure server socket
              SSLServerSocketFactory ssf = null;
              try {
                   addProvider(props);
                   // set up key manager to do server authentication
                   SSLContext ctx = getSSLContext(props);
                   ssf = ctx.getServerSocketFactory();
              } catch (Exception e) {
                   e.printStackTrace();
                   throw new IOException(e.getMessage());
              SSLServerSocket socket = (SSLServerSocket)ssf.createServerSocket(port);
              socket.setNeedClientAuth(true);
              return socket;          
         * Internally used function to read a provider from the properties and
         * add it as the current ssl provider. The properties should have the
         * property <i>com.ibm.idmg.ssl.sslProvider</i> defined. Otherwise
         * throws NullPointerException.
         private static void addProvider(Properties props) throws Exception{
              String provider = (String)props.get("com.ibm.idmg.ssl.sslProvider");
              if (provider == null)
                   throw new NullPointerException("com.ibm.idmg.ssl.sslProvider is not specified!");
              java.security.Security.addProvider((java.security.Provider)Class.forName(provider).newInstance());
         * Internally used function to read a file and return it as java properties.
         * It uses java.util.Properties. Throws FileNotFoundException if the file
         * was not found. Otherwise returns the properties.
         private static Properties readPropertiesFile(final String file) throws IOException{
              if (file == null)
                   throw new IOException("SSL Context File name not specified!");
              FileInputStream in = new FileInputStream(file);
              Properties properties = new Properties();
              properties.load(in);
              in.close();
              in = null;
              return properties;
         * Internal function used to retrieve a SSLContext object. It is used primarily
         * for creating SSL sockets that can authenticate each other based on the
         * keystores specified using the properties.
         private static SSLContext getSSLContext(Properties props) throws Exception{
              SSLContext ctx;
              KeyManagerFactory kmf;
              KeyStore ks;
              String password = (String)props.get("com.ibm.idmg.ssl.keyStorePassword");
              if (password == null)
                   password = System.getProperty("javax.net.ssl.keyStorePassword");
              char[] passphrase = password.toCharArray();
              ctx = SSLContext.getInstance("TLS");
              kmf = KeyManagerFactory.getInstance("SunX509");
              ks = KeyStore.getInstance("JKS");
              String keyStoreFile = (String)props.get("com.ibm.idmg.ssl.keyStore");
              if (keyStoreFile == null)
                   keyStoreFile = System.getProperty("javax.net.ssl.keyStore");
              FileInputStream in = new FileInputStream(keyStoreFile);
              ks.load(in, passphrase);
              in.close();
              in = null;
              //     All keys in the KeyStore must be protected by the same password.
              String keyPassword = (String)props.get("com.ibm.idmg.ssl.keyPassword");
              if (keyPassword != null)
                   passphrase = keyPassword.toCharArray();
              kmf.init(ks, passphrase);
              ctx.init(kmf.getKeyManagers(), null, null);
              return ctx;
    The Server properties file looks like this.
    #     Specify the SSL provider here.
    #     Using sun's reference implementation for testing..
    com.ibm.idmg.ssl.sslProvider=com.sun.net.ssl.internal.ssl.Provider
    #     Specify the keystore file that this ssl socket should use
    com.ibm.idmg.ssl.keyStore=server.ks
    #     Specify the password for this keystore file
    com.ibm.idmg.ssl.keyStorePassword=servercanpass
    #     Specify the password used to protect the keys in the keystore
    #     Note: all the keys should have the same password
    com.ibm.idmg.ssl.keyPassword=icanpass
    The client properties file
    #     Specify the SSL provider here.
    #     Using sun's reference implementation for testing..
    com.ibm.idmg.ssl.sslProvider=com.sun.net.ssl.internal.ssl.Provider
    #     Specify the keystore file that this ssl socket should use
    com.ibm.idmg.ssl.keyStore=client.ks
    #     Specify the password for this keystore file
    com.ibm.idmg.ssl.keyStorePassword=clientshouldpass
    #     Specify the password used to protect the keys in the keystore
    #     Note: all the keys should have the same password
    com.ibm.idmg.ssl.keyPassword=canipass
    Now to create the certificates..
    Its a 5 step process
    1) Create the keystore file.
         keytool -genkey -alias mohan -dname "CN=Mohan Tera OU=IS O=IM L=sanjose S=NY C=US" -keystore server.ks -storepass servercanpass -validity 180 -keypass icanpass
    2) Create a self signed certificate. If you need to get it signed from
         verisign then you have to create a certificate request. For testing purposes,
         you can create a self signed certificate.
         keytool -selfcert -alias mohan -dname "CN=Mohan Tera OU=IS O=IM L=sanjose S=NY C=US" -keystore server.ks -storepass servercanpass -validity 180 -keypass icanpass
    3) Export the public key from the keystore to a certificate file that is to be imported to the client keystore.
         keytool -export -alias mohan -file fromserver.cer -keystore server.ks -storepass servercanpass
    4) Repeat the above steps for the client also..
         a)
         keytool -genkey -alias moks -dname "CN=Jennifer Poda OU=Javasoft O=Sun L=Edison S=NJ C=US" -keystore client.ks -storepass clientshouldpass -validity 180 -keypass canipass
         b)
         keytool -selfcert -alias moks -dname "CN=Jennifer Poda OU=Javasoft O=Sun L=Edison S=NJ C=US" -keystore client.ks -storepass clientshouldpass -validity 180 -keypass canipass
         c)
         keytool -export -alias moks -file fromclient.cer -keystore client.ks -storepass clientshouldpass
    5) Import the certificates that were exported in steps 3 and 4c in client and server keystore respectively.
         keytool -import -trustcacerts -alias new -file fromserver.cer -keypass keypass -storepass clientshouldpass -keystore client.ks
         keytool -import -trustcacerts -alias new -file fromclient.cer -keypass keypass -storepass servercanpass -keystore server.ks
    And voila you are all set to go..
    Hope this explains to all the people who are struggling with JSSE..
    Regards,
    Moks

    when i using your method in my code i get the following exception
    pl. help me.
    java.security.UnrecoverableKeyException: Cannot recover key
    at sun.security.provider.KeyProtector.recover(KeyProtector.java:301)
    at sun.security.provider.JavaKeyStore.engineGetKey(JavaKeyStore.java:103
    at java.security.KeyStore.getKey(KeyStore.java:289)
    at com.sun.net.ssl.internal.ssl.X509KeyManagerImpl.<init>(DashoA6275)
    at com.sun.net.ssl.internal.ssl.KeyManagerFactoryImpl.engineInit(DashoA6
    275)
    at javax.net.ssl.KeyManagerFactory.init(DashoA6275)
    at ClassFileServer.getServerSocketFactory(ClassFileServer.java:145)
    at ClassFileServer.main(ClassFileServer.java:115)
    Exception in thread "main" java.lang.NullPointerException
    at ClassFileServer.main(ClassFileServer.java:117)

  • Code Snippet for Pop-Window

    Hi Colleague,
    I need to show a pop-up window on an event. How can i achieve this in ABAP WD.
    Code Snippet would be helpful.
    Regards,
    Piyush

    Piyush,
    When you create a pop up window using code wizard, you'll get a OK button by default. By clicking on it the pop up window will close. Or if you want to place a OK button in the view that is present in the pop up window and want to close the pop up by clicking on it, that is also possible. Just Put a button in the pop up view and use this code in the ONACTION method of that button:
    data:
                l_api         type ref to if_wd_view_controller,
                l_window_ctlr type ref to if_wd_window_controller,
                l_popup       type ref to if_wd_window.
                l_api         = wd_this->wd_get_api( ).
                l_window_ctlr = l_api->get_embedding_window_ctlr( ).
                if l_window_ctlr is bound.
                l_popup       = l_window_ctlr->get_window( ).
                l_popup->close( 'l_popup' )." pass the pop up view name here
                endif.
    Regards
    Arjun
    Edited by: Arjun Thakur on Mar 13, 2009 10:01 AM

  • Trouble with iWeb code snippet for drop down menu

    Hello,
    So, I'm having a bit of trouble figuring this out and it goes beyond my knowledge, to be honest. I'm working on a website for someone and when viewed in Safari for Mac or iPad or even iPhone, it all works out great. But, when viewed in any other browser for Mac or Windows, the drop down doesn't display the "menu heading," only what should be the first drop down selection. Not only that, that page now becomes "unselectable" and more or less dead.
    Here is what it should read, and does on Safari:
    Rates and Hours
    FAQ - Yoga
    FAQ - Reiki
    FAQ - Massage
    On all other browsers, it displays the FAQ - Yoga option as the "title" and only displays the other two options. So, is this something that can be fixed in the code snippet or is what I'm seeing a more involved HTML issue that would require actual skills to fix? Any help or direction would be greatly appreciated because I'd love to get this knocked out and also pick something up in addition. If I have to edit the actual HTML pages themselves I could do that as well; I've got an editor and have done that for my own site when needed. Anyway, thank you very much in advance!
    Her
    <html>
    <title></title>
    <head>
    <script>
    <!--
    function land(ref, target)
    lowtarget=target.toLowerCase();
    if (lowtarget=="_self") {window.location=loc;}
    else {if (lowtarget=="_top") {top.location=loc;}
    else {if (lowtarget=="_blank") {window.open(loc);}
    else {if (lowtarget=="_parent") {parent.location=loc;}
    else {parent.frames[target].location=loc;};
    function jump(menu)
    ref=menu.choice.options[menu.choice.selectedIndex].value;
    splitc=ref.lastIndexOf("*");
    target="";
    if (splitc!=-1)
    {loc=ref.substring(0,splitc);
    target=ref.substring(splitc+1,1000);}
    else {loc=ref; target="_self";};
    if (ref != "") {land(loc,target);}
    //-->
    </script>
    </head>
    <body>
    <style type="text/css">
    <!--
    .combobox {
    background-color: #fef3e2;
    color: #463c3c;
    font-size: 13pt;
    font-family: optima;
    font-weight: normal;
    font-style: none;
    -->
    </style>
    <form action="dummy" method="post"><select name="choice" size="1" class="combobox" onChange="jump(this.form)"
    <option value="">Rates, Hours, Reservations</option>
    <option value="http://yogareikimassage.com/MG/Rates.html*_top">Rates and Hours</option>
    <option value="http://yogareikimassage.com/MG/FAQ_-_Yoga.html*_top">FAQ and Reserve - Yoga</option>
    <option value="http://yogareikimassage.com/MG/FAQ_-_Reiki.html*_top">FAQ and Reserve - Reiki</option>
    <option value="http://yogareikimassage.com/MG/FAQ_-_Massage.html*_top">FAQ and Reserve - Massage</option>
    <option value="http://yogareikimassage.com/MG/FAQ_-_Personal_Training.html*_top">FAQ and Reserve - Training</option>
    </select>
    </form>
    </body>
    </html>

    Here is what it should read, and does on Safari:
    Rates and Hours
    FAQ - Yoga
    FAQ - Reiki
    FAQ - Massage
    No, it shouldn't and it doesn't. It should look like :
    Rates, Hours, Reservations
    Rates and Hours
    FAQ - Yoga
    FAQ - Reiki
    FAQ - Massage
    FAQ and Reserve - Training
    Here's the correct part :
    <select>
              <option value="">Rates, Hours, Reservations</option>
              <option value="http://yogareikimassage.com/MG/Rates.html*_top">Rates and Hours</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Yoga.html*_top">FAQ and Reserve - Yoga</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Reiki.html*_top">FAQ and Reserve - Reiki</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Massage.html*_top">FAQ and Reserve - Massage</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Personal_Training.html*_top">FAQ and Reserve - Training</option>
    </select>
    The <select> item was missing. And if you don't want the first line in the menu (Rates, Hours, Reservations) then don't enter it in the first place.
    BTW, it's not a dropdown menu. It's a selection list in a form.

  • Code snippet for JAXM

    Plz Guide me how can i use JAXM API for mailing that too with an attachment.
    Do i have to install SAAJ for the above. I f any Code snippet is available for it then plz send it to me . soi that i can refer to it.
    Thanks and regards
    Kumar Anupam

    Hi,
    Jaxm has a new download available jaxm1.1.2
    Inside there are examples particularly for u will be saaj-simple.war file under samples which has the attachment code portion.
    and yes u have to use saaj-api.jar file.
    hope this helps.

  • Code snippet for custom scheduler

    Hi,
    I need to write a custom scheduler as per one of the solutions present in doc in metalink (doc id:1109539.1). Few lines of information in the doc is as below:
    A better solution is to:
    1. Create a custom scheduled task.
    2. The task should run every 10 minutes, and should do a simple call to the server using the singleton instance.
    3. This will assure that the instance is kept alive, hence it will not timeout.
    As per the above solution, what exactly is meant by "do a simple call to the server using the singleton instance". Does anyone help me to provide a code snippet to do the same.
    Thanks
    DPK

    That Metalink ID is not related to your requirement.
    It is a workaround if someone is using Singleton Pattern in their code.
    If they are using Singleton then session will expire after some time and it throws error that's why they are suggesting to use that instance by creating a schedule task after every 10 min so that instance should be alive. It's no where related to your use case. Don't use Singleton Pattern in your code.
    You can read here about Singleton
    http://java.sun.com/developer/technicalArticles/Programming/singletons/

  • Having Problem with Code Snippet on Button

    I have imported a psd template into Flash to link my buttons to a webpage, not sure which to use AS2 or AS3 , so I locked all the other layers on the template. right clicked on the actual button I wanted [linked] > Covert To Symbol > Gave Instance Name, then what exactly do I do next? Click on the button again? I have this code which I believe worked once :
    clickhere_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage);
    function fl_ClickToGoToWebPage(event:MouseEvent):void
    navigateToURL(new URLRequest("http://www.youtube.com"), "_blank");
    My error messages are posted :

    For that code to work it needs to be in the timeline, not on the button, and the Flash Publish Settings need to have AS3 selected.  You have at least one syntax errors as well.  For what you show there is a missing closing brace " } "as indicated in the errors.

  • AS3 Code Snippet (url button) not working in firefox

    Hi,
    This code works fine for my flash site:
    ovbutton.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_5);
    function fl_ClickToGoToWebPage_5(event:MouseEvent):void
              navigateToURL(new URLRequest("http://www.starnavigation.ca/vision.html"), "_self");
    However, within firefox (7.0.1), once the back button is pressed the button does nothing. Works great with every other browser. It basically only works once, until I reload the page. Any ideas???

    Check if you have set "allowScriptAccess" to "allways".
    If you embed flash like this,
    <object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″
    codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0″ width=”700″
    height=”322″>
    <param name=”movie” value=”intro.htm”>
    <param name=”quality” value=”high”>
    <embed src=”intro.htm” quality=”high”
    pluginspage=”http://www.macromedia.com/go/getflashplayer” type=”application/x-shockwave-flash” width=”700″
    height=”322″></embed>
    </object>
    you have to add it in two places: one is for IE and other for FF, Opera, chrome..
    <object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″
    codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0″ width=”700″ allowscriptaccess="true"
    height=”322″>
    <param name=”movie” value=”intro.htm”>
    <param name=”quality” value=”high”>
    <param name="allowscriptaccess" value="true">
    <embed src=”intro.htm” quality=”high”
    pluginspage=”http://www.macromedia.com/go/getflashplayer” type=”application/x-shockwave-flash” width=”700″
    height=”322″></embed>
    </object>

  • Code snippet for querying Integrationevents ?

    Hi all,
    does anyone has a piece of code how i could query the integration queue for new events.
    I would like to know what is the best approach. In my case i have a workflow which is creatin an IE for address changes on account, I want to pick these up and update the address of the contact which is assigned.
    Therefore i am thinking of coding a polling service which is executing a search every 10 seconds on the integration event queue, checking if any address has been changed.
    Comments are welcome, what do you think of this approach, any better ideas or hints ?
    Thanks in advance!
    Juergen

    So here is my opinion ... I do not see any advantage here in your process to utilize an integration event. To me, it is imposing a level of complexity that may not be needed. I might suggest that you simply change your workflow to set an indexed boolean field on the account (faster queries) when an address change is detected. Then, a polling web service can query on these "flagged" accounts and process the contact children and unset the flag. We only use integration events when the entire operation is somewhat 'self-contained' (meaning we do not have to do any addition data operations or queries) with an external process.

  • Need help in this code snippet for split container

    Hi,
    I am using the following code to display two tables in report output.
    using cl_salv_table.
    =============================================================================================
    START-OF-SELECTION.
    DATA: lo_report TYPE REF TO lcl_test_class.
    * create report object
    CREATE OBJECT lo_report.
    * call methods
    lo_report->get_data( ).
    lo_report->process_data( ).
    lo_report->generate_output( ).
    METHOD generate_output.
    data: g_custom_container TYPE REF TO cl_gui_custom_container, "custom container
    g_splitter_container TYPE REF TO cl_gui_splitter_container, "splitter container
    g_top_container TYPE REF TO cl_gui_container, "top container
    g_bottom_container TYPE REF TO cl_gui_container, "bottom one
    g_display TYPE REF TO cl_salv_display_settings, " set display pattern
    g_slav_table TYPE REF TO cl_salv_table,
    g_table TYPE REF TO cl_salv_table.
    "create custom container placed in CUSTOM AREA defined on screen
    CREATE OBJECT g_custom_container
    EXPORTING
    container_name = 'CUSTOM_AREA'
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    create_error = 3
    lifetime_error = 4
    lifetime_dynpro_dynpro_link = 5
    OTHERS = 6.
    IF sy-subrc 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    "now split the container into two independent containers
    CREATE OBJECT g_splitter_container
    EXPORTING
    parent = g_custom_container
    rows = 2
    columns = 1
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    OTHERS = 3.
    IF sy-subrc 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    "get top container
    CALL METHOD g_splitter_container->get_container
    EXPORTING
    row = 1
    column = 1
    RECEIVING
    container = g_top_container.
    TRY.
    CALL METHOD cl_salv_table=>factory
    EXPORTING
    r_container = g_top_container
    IMPORTING
    r_salv_table = lr_table
    CHANGING
    t_table = gt_itab_header. "gt_itab_header is populated with required output columns in process_data( ) method
    CATCH cx_salv_msg.
    ENDTRY.
    g_display = g_table->get_display_settings( ).
    g_display->set_striped_pattern( cl_salv_display_settings=>true ).
    g_display->set_striped_pattern( cl_salv_display_settings=>true ).
    *... Display table
    g_table->display( ).
    ENDMETHOD.
    =============================================================================================
    <Added code tags>
    when I Execute the code, it still stay on selection screen does not display output table. If I comment out the lines
    EXPORTING
    r_container = g_top_container
    from the Method "cl_salv_table=>factory" the output is displayed with table in required format.
    Could someone help me out identifying what am I doing wrong.
    Thanks,
    Abhiram.
    Edited by: Suhas Saha on Jan 31, 2012 9:14 PM

    when I Execute the code, it still stay on selection screen does not display output table.
    You need to call the screen in which you have defined the custom container 'CUSTOM_AREA'. And you need to call the method generate_output( ) in the PBO of the screen.
    If I comment out the lines
    EXPORTING
    r_container = g_top_container
    from the Method "cl_salv_table=>factory" the output is displayed with table in required format.
    If you're removing the R_CONTAINER parameter, SALV framework displays the data in full-screen grid. Actually it uses REUSE_ALV_GRID_DISPLAY to display the data. Hence you are getting the data.
    To be honest i'll be surprised if you are getting the splitter container, can you confirm if you are getting it?
    BR,
    Suhas

  • Jni code snippet for wrapping Java Dos output

    I want to wrap a small Java Application in a Windows System "Window".
    Please how do I go about this? I know nothing of C++ or C. I had a little Fortran 4 years ago and currently learning Java. I just need the code that will call up a System Window in Windows 98 2nd. If it would be C or C++?

    Why?

  • Add code to a button?

    Hi friends,
    [Apps R12]
    If I add a button to an OAF screen :
    I have no idea of how :
    - to add code when it's clicked... The idea would be to call a database procedure that receives,as parameters, certain values of that OAF screen and that returns, in an output parameter, a value to be posted in a screen field.
    Any example would be appreciated
    Thanks!
    Jose L.

    Hi
    Please first go through with OADEVGUIDE,u can download the same form meta link (Note.730053.1). and haave practice seesion with labsolutions excercise . please find a sample code below for the problem
    package oracle.apps.fnd.framework.toolbox.labsolutions.webui;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.webui.beans.OABodyBean;
    import oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean;
    import oracle.apps.fnd.framework.server.OADBTransaction;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import java.sql.CallableStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageLovInputBean;
    import java.util.Enumeration;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean;
    import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
    * Controller for ...
    public class EmpSearchPGLayOutRNCO extends OAControllerImpl
    public static final String RCS_ID="$Header$";
    public static final boolean RCS_ID_RECORDED =
    VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
    * Layout and page setup logic for a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    * Procedure to handle form submissions for form elements in
    * a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    if (pageContext.getParameter("clearclearButton")!=null)
    OADBTransaction txn = getDBTransaction();
    CallableStatement cs =
    txn.createCallableStatement("begin dbms_application_info.set_module(:1, :2);
    end;");
    try{
    cs.setString(1, module);
    cs.setString(2, action);
    cs.execute();
    cs.close();
    catch (SQLException e)
    try { cs.close } catch (Exception(e) {}
    throw OAException.wrapperException(sqle); }
    }

  • Code Snippet issue?

    So ... I'll try to explain this the best I can.
    I have a flash file that is nothing more than a slide presentation.
    I go from one slide to another using buttons.
    There are global buttons (navigation: Next Previous, Home) ... and their are screen specific buttons (go to frame X and stop).
    That's it.
    For some reason ... navigation never works on the last slide.
    None of the navigation, global OR local.
    There is nothing different about this screen than any other screen.
    It shares the same global navigation as the previous screens ... but once published ... the code snippets do not work.
    When you arrive to the last slide ... it does nothing.
    The buttons are active in the sense that the cursor changes on roll-over, but the action does not take place.
    I have even tried to make that last slide seperate by giving it it's own set of buttons.
    Still ... it does not work.
    I have RACKED my brain trying to figure out why this would happen.
    If I delete the last slide (say ... #20) then publish ... #19 stops working.
    Is this a bug with the software?
    The file is SO simple it stupid.
    It could be done in html ... but it needed to be done in Flash to create a .swf so it could be displayed on a PlayBook.
    The whole project is now a flop.
    Does ANYONE know why this might happen?   :|
    I know this is hard to explain ... but there really is nothing to this file.
    Thanks in advance.

    What this is ... is a demo for an phone app.
    They are doing the demo on a PlayBook.
    There are 20 screens and the design looks like a BlackBerry Torch.
    The bottom navigation takes the user back to screen One.
    I have a button on Frame 1 of the timeline that runs across all 20 screens.
    The Code Snippet for that button is:
    HomeLeft.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_9);
    function fl_ClickToGoToAndStopAtFrame_9(event:MouseEvent):void
    gotoAndStop(1);
    So .. if the user is on say ... screen 10 and clicks the "HomeLeft" button .. it takes them to screen #1.
    That works.
    All the navigation works up to screen 19.
    Then ... when you navigate to screen 20 ... nothing.
    The buttons react ... but the script is not activated.
    I have looked EVERYWHERE for rogue code.
    I even deleted the frames for screen 20 and then built it again.
    Still ... it does not work.
    If I could show you a screen shot of the timeline ... I think it would make more sense.

  • Code Snippet - Swipe Gesture to frame or Scene

    Using the Timeline Navigation code snippets is real easy to use and understand, I am using the codes to " Click to next scene or frame etc etc and they work fine.
    What I dont see in the code snippets is a easy to use  " Swipe Gestures"  Swipe to frame/ Swipe to Scene/ Swipe to next scene.
    Im not a Coder. Everything I have learned is from watchng Lynda.com, Total training and alot of trial and error. When it come to reading long
    lines of code my mind goes fritzy.  And because of this I have learned to respect you guys who know coding.
    I noticed that the you can add your on personal snippets into your library.
    I will gladly pay someone to write me a simple  Right to left swipe gesture Snippet that lets me navigate to a frame or Scene.
    I hope this is something that adobe is planning to add to the Code Snippets Options soon.
    Can someone please give me some input on how to make this happen.

    What this is ... is a demo for an phone app.
    They are doing the demo on a PlayBook.
    There are 20 screens and the design looks like a BlackBerry Torch.
    The bottom navigation takes the user back to screen One.
    I have a button on Frame 1 of the timeline that runs across all 20 screens.
    The Code Snippet for that button is:
    HomeLeft.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_9);
    function fl_ClickToGoToAndStopAtFrame_9(event:MouseEvent):void
    gotoAndStop(1);
    So .. if the user is on say ... screen 10 and clicks the "HomeLeft" button .. it takes them to screen #1.
    That works.
    All the navigation works up to screen 19.
    Then ... when you navigate to screen 20 ... nothing.
    The buttons react ... but the script is not activated.
    I have looked EVERYWHERE for rogue code.
    I even deleted the frames for screen 20 and then built it again.
    Still ... it does not work.
    If I could show you a screen shot of the timeline ... I think it would make more sense.

Maybe you are looking for

  • How to call a previous operation in the routing in the backend?

    (We have a requirement to call a previous operation in the routing in the backend and create-assemble-complete the SFC.) Routing would be u2013 OPERATION_1 -> OPERATION_2 -> OPERATION_3 The SFC has not been create and we are using u201CCreate SFC On

  • Requirement types & requirement class for trading goods.

    Dear all, I am working on a project in which there are only trading goods. Majority of the items are make to order & few are make to stock. For the make to order scenario, what will be the requirements type & requirements class to be used for the tra

  • Lookup.ADReconciliation.GroupLookup

    hi, Lookup.ADReconciliation.GroupLookup displays the lookup like below, Code Key: <IT_RESOURCE_KEY>~<DISTINGUISHED_NAME> Decode: <IT_RESOURCE_NAME>~<DISTINGUISHED_NAME> "<DISTINGUISHED_NAME>" is a big bunch of words concatenated into a single line. I

  • Duplicate Computer objects in SCCM

    Hi, I am noticing that now and then I am seeing duplicate computer objects in SCCM 2012. We are using AD discovery and in AD there arent duplicates. Do you know what the cause of having duplicate computers in SCCM is and how to resolve this issue? Th

  • Problem to run dispatcher

    I have a SOMS 5.2 on a SODS 5.2. When i start the messaging, i have a message : Starting disp daemon... The iPlanet Dispatcher (SMTP inbound) (rome) service is starting. The iPlanet Dispatcher (SMTP inbound) (rome) service could not be started. A sys