A Java SWT simple doubt

import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.layout.RowLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
public class SWTExample2 {
     public static void main(String[] args) {
           Display display = new Display();
           Shell shell = new Shell(display);
           shell.setLayout(new RowLayout());
           shell.setSize(300, 300);
           shell.setText("Example 2");
           final Button button = new Button(shell, SWT.PUSH);
           button.setText("Click me");
           final Text text = new Text(shell, SWT.SHADOW_IN);
           text.setBounds(100, 0, 800, 100);
           button.addSelectionListener(new SelectionListener(){
               public void widgetDefaultSelected(SelectionEvent arg0) {
                    text.setText("Button Selecte");
               public void widgetSelected(SelectionEvent arg0) {
                    text.setText("Button Selecte");
           shell.open();
           while(!shell.isDisposed()){
                if(!display.readAndDispatch()){
                     display.sleep();
}How do I increase the size of the textbox. setBounds does not seem to work

This isn't an SWT forum.

Similar Messages

  • OWS-00102 Reason for not creating a custom Java type: simple or mixed conte

    Hi ,
    I am generating the java proxies from a WSDL file in Jdeveloper and I am getting the below warning.
    WARNING: OWS-00102 Mapped {http://xmlns.fmr.com/systems/dev/aar/requests}ViewRequestStatusResult to javax.xml.soap.SOAPElement ViewRequestStatusResult. Reason for not creating a custom Java type: simple or mixed content is not supported.
    I have tried using Jpub as well, but it does not work as well.
    I am very new to JAVA and It seems some java code needs to be created. can any one please help me how to resolve this issue.
    Thanks and Regards,
    Vineet

    var cResponse = app.response({
    cQuestion: "Enter the section number to appear in the stamp.",
    cTitle: "Section Number",
    cLabel: "Section Number:"
    if (cResponse == null) {
    event.value = '*INVALID*";
    else
    event.value = cResponse;
    You can only remove the 'Warning JavaScirpt" is by creating a special application folder script for the 'app.response' method that uses the 'trustedFuncton' to suppress this security warning. Then in you form, you will need to test for this function and either issue a warning about the missing function or run the 'app.response' code and live with the warning. Each system will need the special application folder script installed on it.

  • EXTRACTing to TEXT file in Data Warehouse - Simple doubts!

    Hi Experts,
    Pls. clarify my simple doubts, in data EXTRACTing prog.,(data extract from SAP to text file in Application server, prog. runs in back ground)
    For the Dataware house mapping, I hv been asked to make the following changes,
    1) Presently, there is NO column headings in Text file, so I need to add the column Headings - How to get it done?
    2) presently, its NOT tab deliminated, so, I need to make it to TAB deliminated- How to achieve it?
    I am here paste some piece of code, so that U will get understand well.
    PERFORM open_dataset_zdata_whouse_04.
        DESCRIBE FIELD i_tab LENGTH tfr_length IN BYTE MODE.
        LOOP AT i_itab.
          TRANSFER i_itab TO transfer_file1 LENGTH tfr_length.
        ENDLOOP.
        CLOSE DATASET transfer_file1.
    ThaNQ.

    See the below code :
    parameters: d1 type localfile default
    '/usr/sap/TST/SYS/Test.txt'.
    data: begin of itab occurs 0,
          field1(20) type c,
          field2(20) type c,
          field3(20) type c,
          end of itab.
    data: str type string.
    constants: con_tab type x value '09'.
    if you have a newer version, then you can use this
    instead.
    *constants:
       con_tab  type c value
    cl_abap_char_utilities=>HORIZONTAL_TAB.
    start-of-selection.
    itab-field1 = 'ABC'.
    itab-field2 = 'DEF'.
    itab-field3 = 'GHI'.
    append itab.
    itab-field1 = '123'.
    itab-field2 = '456'.
    itab-field3 = '789'.
    append itab.
      open dataset d1 for output in text mode.
      loop at itab.
        translate itab using ' # '.
        concatenate itab-field1 itab-field2 itab-field2
    into str
                      separated by con_tab.
        translate str using ' # '.
        transfer str to d1.
      endloop.
      close dataset d1.
    above code for tab delimited.
    for heading then you can write simple logic in the loop of internal table
    loop at itab.
    if sy-tabix = 1'
    move heading data to file.
    endif.
    endloop.
    Thanks
    Seshu

  • A very simple doubt w.r.t ESB

    Hi All
    I have a very simple doubt yet very important for all the new BPEL guys (I feel so )
    I am doing order booking example as part of my BPEL learning!!
    My doubt is:
    When Client application calls OrderBookingESB , a message is being sent on the ESB.my Q is if the user places two different orders in a same session ,then will there be two messages on the same instance of ESB (assuming first message is not consumed b4 placing the second order) or two instances of ESB will get created each having one Message.
    And is it anytime possible that an ESB instance can have more than one message.??
    pls clarify once.
    thanks
    naveen

    Every time you send a message to the bus..it will create an instance for.
    There is no such thing as 'same' session on the bus..it just receives the messages and does his thing with it.
    So when you send both messages to the bus (wheter or not it maybe be in the same session) you will still get 2 new instances..and both instances will start his own processes for lets say the bpel...so you will also have 2 instances of the bpel process.
    "ESB instance can have more than one message"
    if i've understand you correctly i would say no.....1 message on the bus is 1 instance of your esb project. Between the different components in your esb project there will be new messages constructed...but to start with..it just needs 1 message

  • GUI Scripting Java SWT apps

    Hi,
    It doesn't appear that the GUI scripting works with Java SWT apps (eclipse, etc). Is there any way to get this to work?
    Thanks,
    George

    Explorer it with PreFab UIBrowser see if it got any GUI element, if not out of luck. I don't have any Java SWT so I have no way to test my idea. But that where I would start.

  • CS-Man: Pac-Man (the game, not the package manager!) clone in Java/SWT

    Wasn't sure whether this would go here or Off Topic, but w/e.
    I'm working on a Pac-Man clone for my AP Computer Science class, me and a friend. We're using Java and the SWT toolkit to write a suckish Pac-Man clone. We've been working on it for 2-3 weeks now, and have a few more weeks to go. Keep in mind, this is AP Comp Sci -- not very advanced, though are project is a bit above and beyond We're just beginners, although we're both pretty certainly heading into programming as careers.
    You can check out the project, code, etc. at http://sourceforge.net/projects/cs-man . Bug reports and feature requests are very much welcome (not so much the latter actually, we have plans for more features than we'll ever get done already), but actual code is not -- it's BSD-licensed, but we need to do the project ourselves
    The current code doesn't do much at all, but it's close to working player movement. There are some obvious gaffes, but it's 2am and I just wanted to commit the code and work more tomorrow, so those should be fixed soon. The structure resembles to a large degree the GridWorld case study.
    The app works fine on Arch with GTK+ and on Windoze, and should on OS X as well (try SWT 3.5 development). Check out the code, add a user library called SWT with your SWT JAR and possibly source (Arch has these stored in /usr/share/eclipse/plugins/ or something like that), and try.
    And yes, the images and such are (obviously) just for testing. They look like crap, and the psychedelic Pac-Man pics we have aren't even transparent.
    Anyways, I'm off to bed.

    I thought I could have a looksie, since I aspire to be a teaching assistant in an introductory java course this fall. Java is not really my forte, though - i don't know many API's, just enough for the university courses. I've never used SWT.
    So, after fiddling a bit to get it working (I put SWT in my classpath, copied the image directory into src/ and started the app from there - could probably have buildt a jar or something too, but there was no makefile), here are some comments:
    I'm not saying all suggestions I make are better, I'd just like to know your reasoning. Some of them are just better, though
    1. Include a makefile/ant-makefile/cmake-file/scons-file/something. And a readme.
    2. GUI::map - why shorts? Why not bytes?
    3. Keeping references to all images in all classes makes for a lot of bookkeeping, and horrible constructor argument lists.  I'd create a helper class that serves up images (something like an ImageCollection -  images.getImage(ImageCollection::DOT)). Bonus: Themable application! Just implement a simple config file for the images at loading time
    This funcitonality could also be contained in MobMaze, as asking the Maze how it looks seems reasonable enough, and it seems most classes already keep a reference to it.
    Now, the next step is to decouple as much image handling as possible from the mObject derived classes. I'd make mObject hold a class variable that refers to the constant (or enum value) of the corresponding image - now MobMaze can use that value, and the mObject classes never have to touch a Image. Of course, the chomping logic for Player (and some state logic for having the trolls turn blue) must be implemented in overridden methods.
    4. Using shorts everywhere is not likely to speed up your code on 32 bit machines.
    5. In 'special' constructors, like Location::Location(int,int) - don't duplicate functionality from the general main worker constructor (Location::Location(int,int,int)). Call the main constructor with the default argument, instead. Keep the DRY principle in mind
    But good work! This is a fair bit more ambitious than I was in my programs for class.
    Anyway, I hope I made some sense. I'll see if I feel like having a more in-depth look.

  • Java regular expressions Doubt

    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    public class ArrayExample {
        public static void main(String[] args) {
             String message = "FAMT/4,";
             Pattern pattern = Pattern.compile("(\\w*)(/)(\\d*)(,)(\\d*)");
              Matcher matcher = pattern.matcher(message);
                 if (matcher.find()) {
                      System.out.println("matcher.group(0) : "+matcher.group(0));
                      System.out.println("matcher.group(1) : "+matcher.group(1));
                      System.out.println("matcher.group(2) : "+matcher.group(2));
                      System.out.println("matcher.group(3) : "+matcher.group(3));
                      System.out.println("matcher.group(4) : "+matcher.group(4));
                      System.out.println("matcher.group(5) : "+matcher.group(5));}
    Outbut
    matcher.group(0) : FAMT/4,
    matcher.group(1) : FAMT
    matcher.group(2) : /
    matcher.group(3) : 4
    matcher.group(4) : ,
    matcher.group(5) :
    Could Someone Explain me the output. I searched a lot on group functions and not finding anything that will clear my doubt on the output

    Group zero represents the whole match. The rest are numbered according to their positions within the regex: the first set of parentheses is group one, the second set is group two, etc.. Groups can be nested, so you actually go by the position of the opening parenthesis, '('.

  • RMI/SSL Java 5: simple answer for simple app?

    I have a very simple RMI application (no dynamic class loader, no security manager, no rmiregistry), which I'd like to run with SSL. I'm using Java 5 and want to use the standard socket factories but haven't found a clear example of how to do it; I've run into what's probably a trivial problem.
    My current code looks something like
    public class X extends UnicastRemoteObject {
        public void startServer(String url, int port) {
            System.setProperty("java.rmi.server.ignoreStubClasses", "true");
             LocateRegistry.createRegistry(port);
             Naming.rebind(url,server);
    }This works properly.
    To use SSL, I changed the createRegistry call to
        LocateRegistry.createRegistry(port,
                        new SslRMIClientSocketFactory(),
                        new SslRMIServerSocketFactory());However, with this change, the rebind call throws an exception:
    startServer: java.rmi.ConnectIOException: non-JRMP server at remote endpoint
    java.rmi.ConnectIOException: non-JRMP server at remote endpoint
         at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:217)
         at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
         at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
         at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
         at java.rmi.Naming.rebind(Naming.java:160)
            ...Any idea of what I'm doing wrong?
    Thanks

    This should be in a new thread.
    java.rmi.server.RMISocketFactory.setSocketFactory(new
    RmiSecureSocketFactory());Delete this line. It calls a deprecated method which is 6 years out of date, and you are only calling it at the server, so of courseyour client is speaking JRMP, not JRMP/SSL, to the server, as the exception says. You should be using RMIServerSocketFactory and RMIClientSocketFactory, as follows (and as per the samples that come with your JDK):
    this.rmiProcessor = new SamlProcessorImpl();Make sure that SamIProcessorImpl() calls
    super(port, new RmiSSHClientSocketFactory(), new RmiSSHClientSocketFactory());
    LocateRegistry.createRegistry(port);
    LocateRegistry.getRegistry(port).bind(bindName, rmiProcessor);Now you're creating a JRMP registry, but your client expects a JRMP/SSL registry. Change this to
    Registry reg = LocateRegistry.createRegistry(port, new  RmiSSHClientSocketFactory(), new RmiSSHClientSocketFactory());
    reg.bind(bindName, rmiProcessor);
    the RmiSecureSocketFactory returns sslsockets and
    when running the server i pass these options
    -Djavax.net.ssl.trustStore=pdp.keystore
    -Djavax.net.ssl.keyStore=pdp.keystore
    -Djavax.net.ssl.keyStorePassword=*******This won't do at the server. The server socket factory must initialize an SSLContext with a non-null KeyManagerFactory which uses these keystore attributes, and create the SSLServerSocket from the context's SSLServerSocketFactory. This seems to be an error in the JDK javadoc.
    rmiServer = (RmiProcessor)
    miProcessor) LocateRegistry.getRegistry(hostName,
    port,
    new RmiSSHClientSocketFactory()).lookup(serverBindName);This is OK.
    good luck

  • Simple Doubt in BDC

    Hi friends,
       I am new to BDC .I am just trying a simple code which is written already.
       This is the simple code to fill the transaction VK13 first screen.
      PERFORM bdc_dynpro      USING 'SAPMV13A' '0100'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                          'RV13A-KSCHL'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                            '/00'.
      PERFORM bdc_field       USING 'RV13A-KSCHL'
                                           wa_report-kschl.
      PERFORM bdc_dynpro      USING 'SAPLV14A' '0100'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                          'RV130-SELKZ(01)'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                           '=WEIT'.
      PERFORM bdc_field       USING 'RV130-SELKZ(01)'
                                            'X'.
      CALL TRANSACTION 'VK13' USING i_bdc_tbl
                              MODE  'A'.
    FORM bdc_dynpro USING program dynpro.
      CLEAR i_bdc_tbl.
      wa_bdc_tbl-program  = program.
      wa_bdc_tbl-dynpro   = dynpro.
      wa_bdc_tbl-dynbegin = 'X'.
      APPEND wa_bdc_tbl TO i_bdc_tbl.
    ENDFORM.                    "BDC_DYNPRO
    FORM bdc_field USING fnam fval.
      CLEAR i_bdc_tbl.
      MOVE fnam TO wa_bdc_tbl-fnam.
      MOVE fval TO wa_bdc_tbl-fval.
      APPEND wa_bdc_tbl TO i_bdc_tbl.
    ENDFORM.                    "BDC_FIELD
    When execute this code it is just showing the empty screen of transaction vk13. It is not filling the condition type field with whatever value i am passing. When go in debugg mode i am not getting the logic again and again it is going to the first screen of vk13 and asking to enter the value whwn the statement CALL TRANSACTION is getting executed. It is clear to me.
    My main doubt is we are clearing the internal table i_bdc_tbl before calling the transaction once we move the value to the specific field.I am not getting what they tried to do there.Simply moving one record to internal table and again clearing it then moving a next record and clearing it again before calling the transaction.
    What we are trying to do by this?Can any one explain me.
    Please help me out in understanding this.
    Thanks in Advance.

    Hi Shri,
    You can go thru these links for more info on BDC:
    http://help.sap.com/saphelp_erp2005/helpdata/en/fa/097119543b11d1898e0000e8322d00/frameset.htm
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html
    http://www.sap-img.com/abap/learning-bdc-programming.htm
    http://www.sap-img.com/bdc.htm
    www.sappoint.com/abap/bdcconcept.pdf
    http://www.sap-img.com/abap/learning-bdc-programming.htm
    http://www.sapdevelopment.co.uk/bdc/bdchome.htm
    http://www.planetsap.com/bdc_main_page.htm
    Reward points if this helps.
    Manish

  • Simple doubts with scenarios and services

    One simple and "basic" doubt
    Imagine I had developed an IDOC-IDOC scenario or File-IDOC, it doesn't matter...
    In my Integration Directory all the services and receivers, senders agreements and determinations remain there...
    First Doubt:
    How can I make them visually disappear without deleting them? Meaning, how can I disable them?
    Second Doubt:
    At the moment I would like to start another scenario, but that scenario will use one of the business systems created. How can I disable the other the interface determination and the receiver agreement from the other service, so that the older service won't get in execution?
    When I activate the new service, he runs the older one instead of the newer...
    Any help

    hello gonacalo...
    u r misunderstanding a few things...
    when u use the term scenario, its meant for a whole development...
    within an scenario u can have different business systems which r assigned to various sender/receiver channels and interfaces...
    u can disable the communication channels and not the interfaces because they r meant specificallly as senders or receivers...
    when a user opens a scenario , he can open his own business system components..and if u want all the determinations, agreements to be not viewed by the user in a single scenario , u may well add them to a different scenario....
    hope this eases u a bit...
    regards..
    vishal

  • Java object related doubt

    Hi All,
    I have a doubt. Does the code segment of a java class get repeated in all the objects created from that class ? Or the single code segment is used by all objects created from a single class ?
    Regards,
    Sourav

    No, code is associated with a class, and there is a single copy of a class within a process for each class loader that loads it (usually just one).

  • Java & SWT OLE

    Hi!
    I'm a java beginner and i have to create an outlook appointment via java. Actual the Outlook-appointment window is to be opened and one could create a new appointment...
    To find some helping code in the www is complicated or not feasible. But for all that i've found the following (creates a new outlook contact) and I wonder if i could use fragments of it to solve the task. Or has anyone got another code for the interaction of Java and SWT OLE to create an outlook appointment? :
    import org.eclipse.swt.SWT;
    import org.eclipse.swt.layout.FillLayout;
    import org.eclipse.swt.ole.win32.OleAutomation;
    import org.eclipse.swt.ole.win32.OleClientSite;
    import org.eclipse.swt.ole.win32.OleFrame;
    import org.eclipse.swt.ole.win32.Variant;
    import org.eclipse.swt.widgets.Display;
    import org.eclipse.swt.widgets.Shell;
    public class OutlookOLEAutomationThroughSWTExample {
          public static void main(String[] args) {
            Display display = new Display();
            Shell shell = new Shell(display);
            shell.setText("Outlook Automation");
            shell.setLayout(new FillLayout());
            OleFrame frm = new OleFrame(shell, SWT.NONE);
            OleClientSite site = new OleClientSite(frm, SWT.NONE, "Outlook.Application");
            OleAutomation auto = new OleAutomation(site);
            int[] CreateItemDispId = auto.getIDsOfNames(new String[] { "CreateItem" });
            // Outloook contants you'll find here: http://www.datalife.com/yitz/automat...constants.html       
            final int OUTLOOK_CONTACT_ITEM = 2;
            Variant contactItem = auto.invoke(CreateItemDispId[0], new Variant[] { new Variant(OUTLOOK_CONTACT_ITEM) });
            OleAutomation contactItemAutomation = contactItem.getAutomation();
            int[] CompanyNamePropertyDispId = contactItemAutomation.getIDsOfNames(new String[] { "CompanyName" });
            contactItemAutomation.setProperty(CompanyNamePropertyDispId[0], new Variant("xyz.com"));
            int[] Email1AddressPropertyDispId = contactItemAutomation.getIDsOfNames(new String[] { "Email1Address" });
            contactItemAutomation.setProperty(Email1AddressPropertyDispId[0], new Variant("[email protected]"));
            int[] SaveDispId = contactItemAutomation.getIDsOfNames(new String[] { "Save" });
            contactItemAutomation.invoke(SaveDispId[0]);
            contactItemAutomation.dispose();
            shell.dispose();
            auto.dispose();
            site.deactivateInPlaceClient();
            site.dispose();
            frm.dispose();
    }.... any help would be appreciated! I become desperate!
    Regards,
    EnnBee

    Hi...
    I suspect one reason that you havn't had any replies
    is because your starting point is not yet clear.
    My english is baddish, sorry :(
    I want outlook to open the appointment item window if i click on a button in my java application... and i could'nt find any solution! SWT OLE interaction with java could be one way to do so, i'd thought- but i don't know how...
    Have you compiled and run the code you have posted?
    Sure & it works... but as i said: i don't want to create a new outlook contact but a new outlook appointment!
    This is what i've worked out till now, but it leads nowhere:
         public OpenOutlook() {
                    super("New Outlook Appointment", IAction.AS_PUSH_BUTTON);
                    this.setImageDescriptor(UiPlugin.getImageDescriptor(OUTLOOK_IMG));
                    this.setToolTipText("Outlook");
         public void run() {
              try{
             Display display = new Display();
             Shell shell = new Shell(display);
             OleFrame frame = new OleFrame(shell, SWT.NONE);
             OleClientSite site = new OleClientSite(frame, SWT.NONE, "Outlook.Application");
             site.doVerb(OLE.OLEIVERB_INPLACEACTIVATE);
             OleAutomation auto = new OleAutomation(site);
             int[] dispIDs = auto.getIDsOfNames(new String[] {"NewAppointment"});
             auto.invoke(dispIDs[0]); //open inspector for new appointment
             auto.dispose();
             shell.dispose();
             display.dispose();
              catch (SWTException e){
                   e.printStackTrace();
         }..unfortunately it causes an "Unhandled event loop exception, Reason: Invalid thread access" if i use it as in the codesnippet above...
    Got any ideas?
    Greets
    EnnBee

  • Compiling tuxguitar (or generally java/swt apps)

    I can't compile tuxguitar . It uses java and SWT and I have installed both. It gave me 100 errors about undefined references. At closer inspection I found that swt isn't placed with the java package in /opt, but in /usr instead (which is what I prefer, but that's not the point..). I tried exporting swt's /usr path to CLASSPATH, but it didn't help (of cource I could have done it wrong ).
    I wonder if anyone else has problems with compiling swt apps?

    My [timefinder application|http://timefinder.sourceforge.net/] would benefit a lot from JavaFX!
    See my current requirements for a planner UI which could manage a lot of persons or rooms - this would be possible with the NetBeans graph library, too, but JavaFX seems to be a bit more easier to me. Especially because of the great binding.

  • Simple doubt in select statement

    hi all,
    Although this is a very simple ques.
    Can u pl tell me why i m not getting the value into v_adrnr ?
    Chk the following code.
    V_VBELN  = '0080000001'.
      SELECT SINGLE ADRNR
             FROM VBPA
             INTO V_ADRNR
             WHERE VBELN = V_VBELN
             AND   PARVW = 'BP'.
    i have cheked the table vbpa for the above mentioned conditions.I can see the
    value for adrnr in database as 0000022741.
    But while i run the above code i cant see value on v_adrnr.
    Pl help.

    First PARVW has a domain with a conversion routine based on table TPAUM so "BP" is internal code "RE"
    Use CONVERSION_EXIT_PARVW_INPUT
    CALL FUNCTION 'CONVERSION_EXIT_PARVW_INPUT'
      EXPORTING
        input = V_PARVW
      IMPORTING
        output = V_PARVW.
    Second
    Have you defined V_VBELN with reference to the element VBELN, char 10 with conversion Alpha
    Then it should work
    Regards

  • How to Override executeQuery() in VOImpl.java for simple search

    Hi,
    When I am going thorugh the dev guide I read that we can override the execute query to add more where conditions for a simple search with queryBean.
    As per dev guide ,
    If your view object's definition requires bind values, or you must manually append an unrelated WHERE clause every time the query is executed, you can proceed in one of two ways. In either scenario, OAFramework appends the user's search criteria to the WHERE clause immediately before executing the query,so any WHERE clause characteristics that you define are preserved.
    1. Override the executeQuery() method in your *VOImpl to modify your WHERE clause and then call super.executeQuery(). This is recommended if you exercise the same logic every time the view object is queried.
    2. Handle the generated Go button's press and call an initQuery() method on your view object where you can modify the WHERE clause and/or set bind values.
    I didnt see the executeQuery() in my *VOImpl , am I missing anything here ? can you please help me to code the above ways of handling the execution.
    I saw another exactly post in this forums and it didnt help much . (https://forums.oracle.com/thread/541807) .

    Shobhit,
    Thank you so much for your help .
    I tried like you said and its working . Below is the code I used please correct me if I am wrong or  if there is a better way to do it.
    In controller added the following code
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
            OADBTransaction oadbtransaction = am.getOADBTransaction();
            oadbtransaction.putTransientValue("vnumber", "000016161");
    In VOImpl added the following code
    import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
    public void executeQuery()
            OAApplicationModuleImpl oaapplicationmoduleimpl = (OAApplicationModuleImpl)getApplicationModule();
            OADBTransaction oadbtransaction =   oaapplicationmoduleimpl.getOADBTransaction();
           String vnumber1 = (String)oadbtransaction.getTransientValue("vnumber");
            setWhereClause("segment1 = nvl(:1,segment1)");
            setWhereClauseParam(0, vnumber1);
            super.executeQuery();
    And ran the page everything working fine .
    I have couple of questions
    1. Is "oadbtransaction.putTransientValue " places the value is transaction cache ? If so is that value available across multiple pages ?
    2. I see there is another option for the above  using pageContext.putSessionValue and pageContext.getSessionValue, I am able to use the pageContext.putSessionValue in controller,
    but I dont know how to use the pageContext.getSessionValue as I didnt see the pageContext in VOImpl and I tried to "import oracle.apps.fnd.framework.webui.OAPageContext" but still no use.

Maybe you are looking for

  • Insert Or Update Task Using Web Service

    I am facing difficulty in insertion of task against Account object using Oracle web service. Whenever I tried to insert new record in List of Task field of Account and update Account, I get the exception "No user key can be used for the Integration C

  • Backup failed

    Hi, What may be the possible reasons for native manual full backup failure in production sql server?

  • How to access script from within Bridge

    I have considerable experience scripting InDesign, but this is my first Bridge script... The following script does what I want from within the ESTK, but I have no idea what to do to make it runnable from within Bridge... :( Any pointers? var brSel =

  • Time Duration tracking

    Hi ALL, I need to get total time duration of my user in my application. I got maximum time duration he has spent for a month from the below sample query . SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss"); Date parseFinalTime=null; String total

  • Can't insert text into web page plus script error message

    I'm using CS3 and, on a fairly regular basis, when I am either pasting or inserting content (usually a newsletter of 500-1000 words), I get a message saying something like I can't insert text in this area. I definitely can insert text in the area as