To enable iconic button at run time

hi ,
i have requirement regarding an iconic button could you please help me with the code
i have taken the button style as iconic
i have given a file to the icon with extension as .ico
it was showing at deisn time but it was not diplaying at runtime
could anyone plz help me with the coding to run at it runtime
thanks & regards
Prasad T

hi
i was using oracle forms 10g running it in web environment
but when i give .gif
it was not displaying even at the desin time
could you provide me any alternative solution
thanks
Prasad.T

Similar Messages

  • Hide radio button in run time

    Hi expert,
    kindly help me for hide radio button in run time for web dynpro kindly give me on example .
    thank's and regard's
    Vikash

    hi.
    For Visibility :
    ->  bind its Visible Property to the context of type WDUI_VISIBILITY.
    -> Now make it visible or invisible according to your requirement.
    using Code Wizard ( Control + F7) , Set the particular context.
    For visible Set as 02.
    For invisible Set as 01.
    code for your ref ( Generated using Code Wizard- Set the particular context attribute. )
    In below code : radiobutton is binded with CA_VIS of type WDUI_VISIBILITY
    DATA lo_el_context TYPE REF TO if_wd_context_element.
    DATA ls_context TYPE wd_this->element_context.
    DATA lv_ca_vis TYPE wd_this->element_context-ca_vis.
    get element via lead selection
    lo_el_context = wd_context->get_element( ).
    @TODO handle not set lead selection
    IF lo_el_context IS INITIAL.
    ENDIF.
    @TODO fill attribute
    lv_ca_vis = 1.
    set single attribute
    lo_el_context->set_attribute(
    name = `CA_VIS`
    value = 02 ).
    I hope it helps.
    Check the sample Wedbynpro Component WDR_TEST_events . This is having the complete UI element functionalities in WDA.
    Thanx.
    Edited by: Saurav Mago on May 1, 2009 1:53 PM

  • Adding a button at run time

    I know that you can add components at run time (I've done it with a tree for instance) but how do you link a run time added component with an action handler?
    For example, when you use the designer, you just double click on a button to get an action handler built that automatically gets called when the application is deployed and that button is clicked. Well, when you add a button at run time, you have no way of doing this.
    Just how do you link a dynamic button to an action handler then?
    Thanks

    Hi,
    I generate a table at runtime and also bind it to a dataprovider at runtime and display the records in a table. It works find and I have no problem with that.
    I am trying to add a new column with the button in them, i generate the buttons at runtime. Even this works fine. Along with the data in the table i have the last column with all buttons.
    I am having problem binding the method to the button at runtime. My code is something like this...
         for (int i = 0; i <= numOfCols ; i++) {
              //add the delete button as the first column
              if( i == 0 ){
              TableColumn column = new TableColumn();
              column.setHeaderText("Delete");
              Button st = new Button();
              st.setText("Del");
              st.setId("del");
              MethodBinding mb = (MethodBinding) context.getApplication().createMethodBinding("#{Page.delete_action}", null);
              st.setAction(mb);
              column.getChildren().add(st);
              getTableRowGroup1().getChildren().add(column);
              } else{
              TableColumn column = new TableColumn();
              column.setHeaderText(rsm.getColumnLabel(i));
              log("rsm.getColumnLabel("+i+"): "+rsm.getColumnLabel(i));
              column.setNoWrap(true);
              column.setSort(rsm.getColumnName(i));
              ValueBinding vb = app.createValueBinding("#{currentRow.value['" + rsm.getColumnName(i) + "']}");
              StaticText st = new StaticText();
              st.setValueBinding("text", vb);
              column.getChildren().add(st);
              getTableRowGroup1().getChildren().add(column);
    public String delete_action() {
    log("Inside delete_action().");
    return null;
    The method delete_action() is not called at all.
    It would be appreciated if someone could help me with this problem of mine.
    Thanks,
    Adi.

  • Enabling a button according to time

    Hi all,
    I have a requirement of enabling a button according to system time ie from 9:00 am to 10:00 am I need to have the button functionality disabled for particular days.  Is this type of functionality possible if so can anyone help me in how I can go about with it.
    Thank you
    Regards,
    Preet

    Hello Preet,
    you can use the following code :-
    this particular piece of code will enable the button for monday to friday and morning 9 am to evening 5 pm.
    you need to write this code in wddoinit of your view and also bind the enable property of your button to one boolean attribute in context. for example here i have bound it to btnpro.
    java.util.Calendar cl = Calendar.getInstance();  // get the current time and date
          int day = cl.get(cl.DAY_OF_WEEK);
          int hour = cl.get(cl.HOUR_OF_DAY);
          if((day >=  1 || day <= 5 )&&((hour >= 9 && hour <= 17)))
               wdContext.currentContextElement().setBtnpro(true);
          else
               wdContext.currentContextElement().setBtnpro(false);
    Thanks
    Sarbjeet Singh

  • Iconic buttons in design time ... Is there any way to take their icons from the jar or at least from gif files?

    I've put my button icons in a signed gif, and they work fine at runtime.
    The problem is at design time, I can't get to see their icons properly.
    I have to convert the gifs to ico and place them in a folder referenced by the old UI_ICON registry variable.
    Also, as the gifs are 16x16, they are cropped in design time, because I see them as if they where stretched to 32x32 size.
    At least it would be enough if I could place the gifs directly somewhere, without converting to ico.
    It seems as if oracle had not put any development work in the builder, which is like a direct port from the 6i c/s version.

    Since you didn't mention exactly which Forms version you are using, I will guess and assume it is one of the many versions after 6.0.8.  The Forms Builder 9.x+ supports ico, jpg, and gif files.  It will not however read them from a jar.  Therefore, you will need to extract them into a directory as defined by UI_ICON.  Also, the files will need to be of the same type (gif, jpg, ico).  Mixing formats is not recommended or supported.  The format you choose can be defined in UI_ICON_EXTENSION
    So for example in your Registry you might have something like this:
    UI_ICON = C:\myImagesDirectory
    UI_ICON_EXTENSION = gif
    Since "gif" is the default, you do not need to set this if using "gif" files.

  • Checking dynamic query at run time

    i need to check whether the query is valid or not at run time. The query will be formed based on the column name, table name, and where clause. this query is purely a select statement. if column name and table names are diff then system should display an error msg. i have more than 10 tables and the table name will be selected from LOV. i should be allowed to enter the condition for where clause also ar run time and this condition column should also be validated.

    Hi,
    I think you only want to see if your select statement has compilation error or not because when you use dynamic statement it doesnt show the compilation erro if the statement has it or not. What you can do is add an item say "stmt" in your control block. change the property to multi record so that you can see multiple lines in that item and make the lenght say 2000. Now assign your statement into "stmt" for example
    :control_block.stmt := 'select ' || col1
                        || ','
                        || col2
                        || ','
                        || col3
                        || ' FROM '
                        || table
                        || ' where ' || conditionput this statement on any button on when-button-pressed trigger. When you will press the button on run time you will see the statement. Run that statement on sql*plus or toad and check if there is any problem in the statement.
    Hope this helps
    Ghulam

  • GETWA_NOT_ASSIGNED run time error_MIGO processing stock transport order

    Hi,
    I have an issue  in which I would like to ask for your comments / help.
    In MIGO, I type in the number of the stock transfer order and want to post a GI from the transit.Right efter I pressed the enter button, the run time error occurs.                                                                               
    "The termination occurred in the ABAP program "SAPLEINR" in "BETB_ERGAENZEN".
    The main program was "SAPLMIGO ".                                                                               
    The termination occurred in line 44 of the source code of the (Include)     
    program "LEINRF2N"                                                         
    of the source code of program "LEINRF2N" (when calling the editor 440). "
    Only the volumes and the delivery date have been changed in the stock transfer order since the last time it worked fine to post GI against this order. Does anyone have an idea what to check?    
    Thanks in advance.
    Esra

    The program has not been modified since 12.2007. A programmer debugged the PO and found out that the program compares two different condition types, lets say X and Y. In one position of the PO, another conditions type (KSCHL) was booked during the GI booking in MIGO. The program can not find a table which is XEBEFU and loops there. All other POs has X and the wrong PO has Y as condition type.
    Does this mean that the comparison of the conditions types are done between the one in the PO and the calculation schema in IMG? I don`t see the wrong one Y in the PO at the position 70.
    Thanks in advance,
    Esra

  • Building run-time command in Forms 5

    How do I build a command syntax at run-time in Forms 5?
    E.g., I want to call a stored procedure from a trigger in a
    Form. But the name of the stored procedure has to be selected
    from a table at run-time.
    null

    Use an errorpage which can print the stacktrace to the response.
              Sha Liu wrote:
              > I was annoyed but this weird message of weblogic for two days:
              >
              > From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
              > 10.5.1 500 Internal Server Error
              > The server encountered an unexpected condition which prevented it from
              > fulfilling the request.
              >
              > And there's no exceptions or any error messages in the stack trace of server
              > console.
              > Then I tried to write a simple JSP to test if Weblogic will properly display
              > some run-time exceptions.
              > My JSP is like this:
              >
              > <% Integer i = null; System.out.println(i.toString()); %>
              > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
              > <html>
              > </script>
              > <head>
              > </head>
              > <body>
              > test
              > </body>
              > </html>
              >
              > And I found it fails!
              > Is it a bug of weblogic or I need to configure something to enable the
              > catching the run-time exceptions?
              >
              > My weblogic is 5.1 applied SP5.
              >
              > Sha Liu
              Tom
              | Thomas Preston |
              | Vacation.com, Inc. |
              | Engineering Department |
              | 617.654.8432 |
              | http://www.vacation.com |
              

  • How do with change table cells from staticText1 to button1 in run time?

    I have two question:
    first: I think change table's cells from staticText to button in run time?
    how do?
    second: I think change table column's order in run time?how do?
    ex:
    =============change before===========
    name age
    wtu 22
    =============chnage after=============
    age name
    22 wtu
    thanks

    Try something like this:
    1. Drop a Table. By default it has three columns.
    2. Drop a button inside the third column. Set its id property to buttonInColumn3, and set its rendered property to false.
    3. Drop another button, this time outside the table. Set its id property to buttonOutsideTable.
    4. Double-click the buttonOutsideTable and make the method look as follows:
    public String buttonOutsideTable_action() {
    //switch the first two columns
    List cols = tableRowGroup1.getChildren();
    Object col = cols.remove(0);
    cols.add(1, col);
    //toggle between showing staticText3 and buttonInColumn3 (in the third column)
    staticText3.setRendered(!staticText3.isRendered());
    buttonInColumn3.setRendered(!buttonInColumn3.isRendered());
    return null;
    5. Run the application and click the button outside the table several times.

  • Vision Development Module Run Time License?

    Dear all,
    I wish to install an application I have built at university onto a laptop for use in another university. The application uses the NI-IMAQdx driver for acquisition from 2 USB cameras, as well as various VIs from the vision development module.
    I know that there is no legal issue with distributing the Labview Run Time engine but I would like to know where I stand with the vision side of things.
    To install this application on the laptop will I need to purchase the Vision Develpment Module Run Time License and the Vision Acquisition Software for this laptop, if so how would I inculde this in the install?
    I notice that the install GUI gives me the option to include the run time engines and drivers but I am not sure how this works without the license?
    Also any idea on cost?
    Any advice would be great,
    Regards,
    Joe
    Solved!
    Go to Solution.

    Hi Liam, 
    Thank you for your reply.  So just to get this straight, I would build the application and installer as normal but include the vision development run time engine in the install as well as the NI-IMAQdx driver for the cameras and the Labview run time engine.
    After installation on the laptop I assume it wil prompt me for activation keys  to enable the vision development run time engine. 
    Would it also be possible to download the run time enviroments separatley on the laptop rather than including them in the install, is this a better way of doing it?
    In your email you made it sound as if the license for the vision development run time engine covers the drivers as well, is this the case or do I need a separate license for the acquisition software (ie the NI-IMAQdx driver)?
    Thanks for your help,
    Joe

  • Button Icons not show in Form 11g run time

    Button Icons not show in Form 11g
    I installed the following tools :-
    Weblogic Server 10.3.6
    SE JDK 6U35 64bit
    Oracle Portal,Forms,Report,and Discoverer Services (11.1.1.4.0)
    1. Create a "icons" folder and place all gif images in there :-
    C:\Oracle\Middleware\Oracle_Form1\forms\java\<icons>
    2. Within icons i made a jar file of all gif images :-
    C:\Oracle\Middleware\Oracle_Form1\forms\java\icons\jar -cvf frmicons.jar *.gif
    3. Copy this new jar file into :-
    C:\Oracle\Middleware\Oracle_Form1\forms\java\
    4. Edit formsweb.cfg file:
    imageBase=codebase
    archive=frmall.jar,frmicons.jar
    5. Edit Registry.dat file:
    default.icons.iconpath=/forms/java
    default.icons.iconextension=gif
    After doing above configuration i create a form and place an icon on the button.
    Set button's icon property = Yes and give name of icon without extension.
    When i run the form not display icons who configure icons.
    Please give the solution how to set icons on button.
    Thanks & regards,
    Java console message :-
    Java Plug-in 1.6.0_25
    Using JRE version 1.6.0_25-b04 Java HotSpot(TM) Client VM
    User home directory = C:\Users\Shiv
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    Forms Session ID is formsapp.8
    The proxy host is null, and the proxy port is 0.
    Native HTTP implementation is being used for the connection.
    The connection mode is HTTP.
    Forms Applet version is 11.1.2.0
    FRM-92471: unable to load image exit for iconic button item

    Duplicate post. Refer to comments in Push Button Iconic not show in Forms 11g

  • How to make a window disable/enable in run time in webdynpro application

    Hi all,
    1) my requirement is in run time i want to make the content of a window in disable mode?
    2)  and again it should display in enable mode when we perform some action?
    thanks & regards
    naveen
    Moderator Message: This has been covered numerous times in this forum. Also, the forum is not a free consulting service here to do your job for you.
    Thread locked
    Edited by: Neil Gardiner on Nov 22, 2010 9:27 PM

    Hi,
    You will not be able to do this with a standard radio button, as each one will be in a separate instance of the row.
    The easiest way is to use a checkbox (as you can script this on/off) and then make it look like a radio button.
    Example here:
    https://acrobat.com/#d=sasUNmniOUgs3MwY-p4H8Q
    Hope that helps,
    Niall

  • How do I disable one item in a radio buttons control at run time

    I need to disable one item in a radio buttons control. At design time
    this is possible, but how do I do this at run time? Is this possible? I
    cannot find a property per item

    Use the property "Controls[ ]" - this gives you an array with references of each single button in the radio buttons control. These you can access with property nodes too.
    Hope this helps.
    Using LV8.0
    Don't be afraid to rate a good answer...

  • Optimal way to enable user to pick style at run time - Flex

    What I'm trying to do: allow a user to be able to select a color palette for a custom component by selecting from a drop down menu with a variety of icons.
    I have the drop down menu part down, but I'm trying to understand how to best handle the various styles in my code. Ideally I would have liked to be able to load styles at run time, but I don't see a major advantage with this so I'm now thinking about compiling in all styles. Still, I can't seem to find a decent way to structure the code. Hacking it seems pretty easy / fast, but there's got a better way than having a big fat array of values which can be indexed via some index associated with each icon - yuck!
    Would love to hear your thoughts or see any pointers to obvious ways to handle this.
    thank you!

    Wouldn't style sheets make this a lot easier where the user essentially just picks one?

  • Setting the webservice url at run time for a execute button in adobe form

    Hi,
    I am using Data connection from the wsdl file to interact with the backend, the button generated from the data connection is of type execute which has the url of the webservice in the object property "Webservice URL" and name of the FM in the interface name. My problem is at present the form is working fine but when the same form transported to QA and PRD them the url of the webservice gets change. hence the same button wont function.
    The solution is either we do the changes manually in all the system or pass the url at run time. Please proide me the solution if there is a way to set this url in the execute button at runtime.
    Thanks in advance.
    Pooja

    Why don't you pass in the URL via an XML input file and bind a hidden text field in your form to that element in your XML? Then use javascript to modify the docReady event of the submit button to something like this:
    var url = textFieldWithURL.rawValue;
    this.event__click.submit.target = url;

Maybe you are looking for

  • If statement in loop

    for rec in cur loop                dID := rec.update_id;                dTYPE := rec.update_type;                dNUMBER := rec.patch_number;                dDESC := rec.description;                     dOLD := rec.old_db_version;                --se

  • Latest Value Function

    I'm trying to create a spreadsheet with a footer row that will contain the latest value entered (like in the Weight Tracker template's Most Recent Weight cell), but I can't figure which functions to use. Any help? Thanks so much!

  • Iphone 4 switch off automatically

    My iphone 4 switch off automatically & nowadays work only when its charging..and the power button is not working ..Is any one facing the same problem and whats the solution...its becoming waste for me. Regards Srinivas

  • Moving music and photos

    Can I transfer photos and music from my iPad onto my dell computer?

  • Stock transfer between plants for split valuated materials

    Hi, I'm doing a stock transfer between plants without STO. The FG's are split valuated,which are transferred from central warehouse to other warehouse at different states. I'm trying to use mvt type 303 and 305 to transfer the FG. But getting error "