Javabean for colorpicker to select color for form item

1- copy the colorpicker.jar in your /forms/java directory
2 - update the archive and archive_jini tags of your /forms/server/formsweb.cfg file:
archive_jini=frmall_jinit.jar,colorpicker.jar
archive=frmall.jar,colorpicker.jar
3 - in your form, add a Bean Area in a block - bean name = 'bean'
4 - initialize the bean in a When-New-Form-Instance trigger:
FBean.Register_Bean('block.bean',1,'oracle.forms.demos.beans.ColorPicker');
5 - pick the color anywhere you want:
PROCEDURE PickColor(pvcTarget in VARCHAR2) IS
vcColor VARCHAR2(11 char);
BEGIN
-- now display the picker with that color as an initial value
vcColor := FBean.Invoke_char('block.bean',1,'showColorPicker','Select color','');
END;
I will follow these steps and colorpicker is shown but i want to select the color for form item such as text item , canvas etc.
I want when i select the color from colorpicker that color is assign to that item. such as changing the background color and foreground color of text item.
I need help about this.
How i solve this problem.
need code.

Hello,
Once you get the color, you can apply it to the item with the Set_Item_Property() built-in (see the online doc).
Francois

Similar Messages

  • How to identify listeners types for forms, items and events in addon wizard

    Dear users,
    I have developed a sample addon through B1DE wizards and successfully installed and connected the addon and can view menu and form of my addon. Since i am new to this, i didn't add any listeners to my form, items and events because i don't know what type of listeners to add and what coding to add after adding listeners.
    If anyone describe me how to work with listeners, i would be glad. My form has basic fields like BPcode, BPname, Docnum, Itemcode, Item name, quanity, price, total etc. Uptil now my addon form has no function of getting list of BP and Items and calculating the totals based on price and quantity but it has some basic functions like add, update,del, add print view, next record previous, record next etc. which are due to object registration and auto-code generation wizards i think.
    Please help me in adding listeners and their relevant coding.
    Thanks in advance.

    Thanks for reply, Actually I am asking about listeners in the wizard of B1DE, code generator wizard. I think you are telling me about adding listeners directly in the vb.net. Kindly, tell me first, what event type I should add for item, form etc while adding listeners during  the wizard. Or If you know some link where event types of listeners are decribed, you are more than welcome.
    Thanks,
    Farhan

  • Decode SQL for Form ITEM

    I have an Form where i need to use REad Only Check box Item. The print on Read only Check box is so light. So I want to USE check box work space images instead.
    <code>
    SELECT Checked,
    decode(checked,
    'Y', '<img src= "#WORKSPACE_IMAGES#checked.JPG" height = "15" width = "15">',
    'N', '<img src= "#WORKSPACE_IMAGES#unchecked.JPG" height = "15" width = "15">',
    null,'<img src= "#WORKSPACE_IMAGES#unchecked.JPG" height = "15" width = "15">' ) checked
    FROM csrpt where CID = :P5_CID;
    </code>
    I am trying to use something like that but it is not showing up... any suggestions in this Regard will be helpful ..
    Thank you
    Lucy

    Firstly, use CASE rather than DECODE, it's far easier to read!
    Have you inspected the form element with firebug or similar?

  • How to update a report  from a form on the same page when form item changes

    I have a portal form from a table and a portal SQL report with a bind variable on a page. I want the report to get updated with details based upon what was selected from a form item. The form item is a selection from a dynamic LOV. Whenever the form item gets changed, the report should get updated to reflect the change. Can this be done using a javascript ONCHANGE event?
    Oracle Portal Version is 10.1.2.2.0.

    Your applet can open an URLConnection and read directly a document from your webserver.
    public String readText() {
      java.net.HttpURLConnection conn = (java.net.HttpURLConnection)myURL.openConnection(); ...
    }So using JavaScript on your page, you might call readText() to fill that textarea.
    The interesting link you gave, handled the JavaScript/Applet interaction. Test that with just return "Hello";.
    The real programming is more interesting.

  • Multi color gradient for touch and selected color of spark mobile list

    multi color gradient for touch and selected color of spark mobile list
    how to get dat?

    or how about a bitmap as the background for the touch and selected color for the items in a list.

  • How to get "Selected" color for custom toolbar buttons?

    RH 8.0.2.208
    RoboHelp HTML
    WebHelp output
    I'm getting flack from internal QA folks about the custom toolbar buttons not having the same "selected" color as the default buttons (Contents, Index). I've copied the background color info from the <btnselected></btnselected> section for the built-in Contents to the <btnselected></btnselected> section for a custom toolbar button, but RH is ignoring it.
    Any hints?
    Leon

    You could try using the raw converter. Open one file and edit it (File>Open, pick the image and choose Camera Raw as the format before you click Open). Then open the next image and click the little four-lined square on the upper right side of the ACR window and choose Previous Conversion from the flyout menu.

  • Shortcuts for whites, neutrals and blacks in selective color

    I’d like to be able to assign Shortcuts to Whites, Neutrals and Blacks in the Selective Color dialog because I find the maintained (since CS4) necessity of manually selecting those a nuisance.
    Or am I overlooking an existing opportunity to achieve that?

    Photoshop CS5:
    Alt+9 gives "Whites" but no sign of "Neutrals" and "Blacks"
    tomaxxi
    http://indisnip.wordpress.com/

  • Best editor for Forms

    Hi everyone,
    Im runing Oracle Application Server 10g Release 2 (10.1.2).
    what is the best editor for forms.
    Or how can I modify forms created by other developer?
    Help, plz.
    Igi
    Edited by: 874598 on Jul 24, 2011 10:57 AM

    I can think of a reason. We create very large forms and some of the defaults drive me crazy. Is there another way?
    For example, by default forms adds 1 to the size of numeric fields. We almost never want that. So lets say there is a table
    with hundreds of number(1) fields destined to be radio buttons most likely in the 1 -- 5 range. So we end up with a form
    that has them all be number(2) and one has to change it. Is there another way to change default behavior? And is there a way
    to set property defaults? For example suppose I want all items created be upper case and auto skip automatically. How to do it?
    One could I think create the block and then convert to xml with frmf2xml, change it there, and then
    frmxml2f back to an fmb. Could we not?
    Bigger reasons would be to create forms. One could come up with a specification language and create the form in xml or parts of it.
    for example this kind of specification can be used for radio buttons in application express, label semicolon returnvalue comma
    STATIC2:Fully retired;1,Partially retired;2,Full-time;3,Not Employed;4,None;
    (combined with the number_of_radio_columns [horizontal columns so could be 5 for horizontal or 1 for vertical in this case]
    Then application express creates and lays them out for you. That is a super time saver. It is a lot of work to create these in forms,
    especially because there is separate object for each one and ideally one wants them to be named appropriately too and likely
    colored. For example a Null or None button that only exists to unset the button if it were set by accident needs to be colored
    in such a way and/or offset so as to indicate it is not a real choice so to speak. For example if this was a paper form that had been
    filled out there likely would not be a missing selection (but there could be e.g. don't know, n/a, do not want to answer... etc.)
    If it never appeared on the original then it's important to not confuse data entry people with a choice that looks like the original
    choices.
    so imagine we could specify radio buttons and checkboxes ahead of time and have them be created automatically.
    But I have not tried it...
    Edited by: lake on Jul 31, 2011 12:11 PM
    Edited by: lake on Jul 31, 2011 12:19 PM

  • Getting error while trying to set text for form value field in oaf

    Hi ALL,
    When i am trying to set text for a form value type field it is giving null pointer exception, please help me out.
    I tried below way.
    OAFormValueBean containlineid=(OAFormValueBean)webBean.findChildRecursive("item11");
                containlineid.setText(pageContext,"test");
    Thanks

    HI Keerthi,
    I am able to set and get the value now, i am able to see the data in my log window, but in my page it is erroring out, giving null pointer exception.
    after commenting the two lines setting and getting value page is running fine, so any clue on this, please check the below code.
    public class XXDPECONTAINLINESCO 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);
        OAApplicationModule am = (OAApplicationModule) pageContext.getApplicationModule(webBean);
          OARawTextBean startDIVTagRawBean =
          (OARawTextBean) webBean.findChildRecursive("DivStart");
          System.out.println("debhorizontal"+ startDIVTagRawBean);
    // addScrollBarsToTable(pageContext, webBean,"DivStart", "DivEnd", true , "400",true,"400");
       * 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);
         String preplenish = pageContext.getParameter("item1");
          String pworkorder = pageContext.getParameter("item2");
          String pdmr = pageContext.getParameter("item4");
          String punloading = pageContext.getParameter("item6");
          String prrnum=pageContext.getParameter("item16");
          String pworknum=pageContext.getParameter("item14");
          String pdtr=pageContext.getParameter("item13");  
          Serializable param[] = {preplenish,pworkorder,pdmr,punloading,prrnum,pworknum,pdtr};
          OAApplicationModule am = (OAApplicationModule) pageContext.getApplicationModule(webBean);
          if(pageContext.getParameter("item11")!=null)
            if(am !=null)
              am.invokeMethod("getSearchData",param);
          if (pageContext.getParameter("item30") != null) {
            String recout = (String)am.invokeMethod("getSelectedData");
               System.out.println("deb multi select test"+recout);        
                System.out.println("1111test1"+pageContext.getParameter("item32")); 
                OAFormValueBean containlineid=(OAFormValueBean)webBean.findChildRecursive("item32");
                System.out.println("1111test2"+pageContext.getParameter("item32"));
                //containlineid.setValue(pageContext,recout);
                System.out.println("1111"+pageContext.getParameter("item32"));
              ///  System.out.println("22222"+containlineid.getValue(pageContext));
            containlineid.setValue(pageContext,recout);
            containlineid.getValue(pageContext);                            
               System.out.println("1111test3"+pageContext.getParameter("item32"));
    --------------Error it is giving in the page as----------------
    Exception Details.
    oracle.apps.fnd.framework.OAException: java.lang.NullPointerException at oracle.apps.fnd.framework.OAException.wrapperException(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source) at _OA._jspService(_OA.java:71) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453) at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239) at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:595) ## Detail 0 ## java.lang.NullPointerException at xxdpe.oracle.apps.ak.xxdpecontain.webui.XXDPECONTAINLINESCO.processFormRequest(XXDPECONTAINLINESCO.java:123) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.beans.layout.OAMessageComponentLayoutBean.processFormRequest(Unknown Source
    Thnaks

  • Error when running URL returned by GET_RUN_FUNCTION_URL for form INVIDITM

    Hi All,
    I'm trying to launch form INVIDITM with an URL returned by PL/SQL API FND_RUN_FUNCTION.GET_RUN_FUNCTION_URL. To generate appropriate URL I call GET_RUN_FUNCTION_URL like the following:
    DECLARE
    P_FUNCTION_NAME VARCHAR2(200);
    P_RESP_APPL VARCHAR2(200);
    P_RESP_KEY VARCHAR2(200);
    P_SECURITY_GROUP_KEY VARCHAR2(200);
    P_PARAMETERS VARCHAR2(200);
    P_OVERRIDE_AGENT VARCHAR2(200);
    P_ORG_ID NUMBER;
    P_LANG_CODE VARCHAR2(200);
    P_ENCRYPTPARAMETERS BOOLEAN;
    v_Return VARCHAR2(2000);
    BEGIN
    P_FUNCTION_NAME := 'INV_INVIDITM_ORG';
    P_RESP_APPL := 'MSC';
    P_RESP_KEY := 'MANUFACTURING_SUPER_USER_ASCP';
    P_SECURITY_GROUP_KEY := 'STANDARD';
    P_PARAMETERS := 'org_id=208 item_id=216955';
    P_OVERRIDE_AGENT := NULL;
    P_ORG_ID := NULL;
    P_LANG_CODE := 'US';
    P_ENCRYPTPARAMETERS := NULL;
    v_Return := FND_RUN_FUNCTION.GET_RUN_FUNCTION_URL(
    P_FUNCTION_NAME => P_FUNCTION_NAME,
    P_RESP_APPL => P_RESP_APPL,
    P_RESP_KEY => P_RESP_KEY,
    P_SECURITY_GROUP_KEY => P_SECURITY_GROUP_KEY,
    P_PARAMETERS => P_PARAMETERS,
    P_OVERRIDE_AGENT => P_OVERRIDE_AGENT,
    P_ORG_ID => P_ORG_ID,
    P_LANG_CODE => P_LANG_CODE,
    P_ENCRYPTPARAMETERS => P_ENCRYPTPARAMETERS
    DBMS_OUTPUT.PUT_LINE('v_Return = ' || v_Return);
    END;
    With this I get an URL like:
    http://<hostname>:<port>/OA_HTML/RF.jsp?function_id=1192&resp_id=56233&resp_appl_id=724&security_group_id=0&lang_code=US&params2=org_id%3D208%20item_id%3D216955
    Running this URL, I get the error message:
    "APP-FND-01016: Routine FDFRKS: Unknown structure ID for flexfield code GL number with application ID 101"
    Can anybody tell me how to fix this, or if I missed specifying any more parameters in P_PARAMETERS?
    Any help is highly appreciated...
    Thanks and Regards
    Carolin

    Hi,
    I got some help for this problem from Oracle support community: Setting paramter CHART_OF_ACCOUNTS_ID.
    This seems to solve the problem. I don't get the error message any more, when setting the following:
    P_PARAMETERS := 'org_mode=N chart_of_accounts_id=101 org_id=208 org_code=S1 item_id=216955';
    Nevertheless, I still have problems with getting the correct parameter settings for form BOMFDBOM (form functions: BOM_BOMFDBOM, ENG_BOMFDBOM):
    1. Trying to display a BOM with a specified alternate (e.g. EBOM) doesn't work. I pass the following parameter values to funtion GET_RUN_FUNCTION_URL:
    P_FUNCTION_NAME := 'BOM_BOMFDBOM';
    P_RESP_APPL := 'MSC';
    P_RESP_KEY := 'MANUFACTURING_SUPER_USER_ASCP';
    P_SECURITY_GROUP_KEY := 'STANDARD';
    P_PARAMETERS := 'org_id=204 item_id=240996 zoom_org_id=204 zoom_item_id=240996 zoom_flag=Y zoom_alternate=EBOM current_rec=1 item_rev=A';
    P_OVERRIDE_AGENT := NULL;
    P_ORG_ID := NULL;
    P_LANG_CODE := 'US';
    P_ENCRYPTPARAMETERS := NULL;
    The returned URL doesn't behave as expected: Though the form for respective alternate is displayed, the alternate field is empty and it isn't possible to select any field on the form, as following error message is displayed:
    "APP-BOM-20087: This bill already exists. Please enter another alternate to create an alternate bill, or use Query Find to find an existing bill."
    2. Trying to set query only mode for this form alway displays an empty "Find Bills" form, instead of the specified BOM in query only mode. I try to set this mode by the following:
    P_PARAMETERS := 'org_id=204 item_id=240996 zoom_org_id=204 zoom_item_id=240996 zoom_flag=Y zoom_alternate=EBOM current_rec=1 item_rev=A query_only=YES';
    Please, can anybody help me with this...
    Thanks & Regards
    Carolin

  • Actions tab for form field properties

    This question was posted in response to the following article: http://help.adobe.com/en_US/acrobat/pro/using/WSDFC888F9-219C-4b55-90E6-D316E2A85F08.w.htm l

    I am working in Acrobat. I trying to create a form dealers will complete and submit. There will be no licensing issues. I have created a button and named it SUBMIT. In the Actions tab I have selected “Submit a form.” I have entered “mailto:[email protected]” under “Enter a URL for this link”. I have also selected “PDF The complete document” as the Export Format.
    I saved the file but when I go to the Preview Mode and click the new “Submit” button, I am asked to “Save PDF as” from a menu. Even if I rename the file and click save, nothing happens. I am back in the Preview mode. If I click “Submit” again, I get the same “Save PDF as” routine.
    I am baffled.
      Lloyd Doolittle
    Re:  Actions tab for form field properties
    [Personal information deleted]

  • Implementing digital signatures for Form 16

    I have configured ADS for my development ECC. I need to configure digital signatures for Form 16. Please can anybody guide me how to go about this. I am unable to find a proper document.

    I am following the below mentioned steps for Digital Signature implementation in form 16 HR,but i am stuck in step 3,can anyone guide me through.
    Transaction code: STRUST
    1. Select the newly created ‘SSL Client SOAPClient’
    2. Select Edit -> Create Certificate Request
    3. Copy the Request and sign it (SAPNetCA)
    a) Select Edit -> Import Certificate Response and save
    b) Double click and select ‘SSL Client SOAPClient’ option to load the certificate
    c) Add ‘SSO_CA’ and ‘SAPNetCA’ to Certificate List and save
    Regards,
    Rohit

  • Possible to create a form with different options for different items?

    So I want to create a form in DW but the problem is that I have 3 items....and I want different form subjects for each item? Is there a way to do this so that if select item #1 that 1 set of options comes up....if I select item #2 a different set of options etc.??
    thanks much!

    Another simple example that you can style up.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Untitled Document</title>
    <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script>
    $(document).ready(function() {
    $('#option_2, #option_3').hide();
    $('#selectOption_1').click(function() {
    $('#option_1').show();
    $('#option_2, #option_3').hide();
    $('#selectOption_2').click(function() {
    $('#option_2').show();
    $('#option_1, #option_3').hide();
    $('#selectOption_3').click(function() {
    $('#option_3').show();
    $('#option_1, #option_2').hide();
    </script>
    </head>
    <body>
    <form>
    <select>
    <option id="selectOption_1" value="option_1">Option 1</option>
    <option id="selectOption_2" value="option_2">Option 2</option>
    <option id="selectOption_3" value="option_3">Option 3</option>
    </select>
    <div id="option_1">
    <select>
    <option value="option_1_1">Option 1_1</option>
    <option value="option_1_2">Option 1_2</option>
    <option value="option_1_3">Option 1_3</option>
    </select>
    </div>
    <div id="option_2">
    <select>
    <option value="option_2_1">Option 2_1</option>
    <option value="option_2_2">Option 2_2</option>
    <option value="option_2_3">Option 2_3</option>
    </select>
    </div>
    <div id="option_3">
    <select>
    <option value="option_3_1">Option 3_1</option>
    <option value="option_3_2">Option 3_2</option>
    <option value="option_3_3">Option 3_3</option>
    </select>
    </div>
    </form>
    </body>
    </html>

  • How to conditionally hide/show form item for multiple requests?

    Ver 4.1.0
    Hi There,
    I have a database form where in one of the fields I need to hide /show based on if the user selects a copy row option or create a new row.
    To explain in details,
    1. I have a report and form application created. When the user edits a record, in that page I have added a copy button also, so when the user hits the copy button, the page is reloaded where the user can create a new record with the save button disable and the create button visible. when the user submits the form using Copy the request is set to "COPY' and in the form, one of the fields has conditional display "REQUEST =Expression1" with value "COPY" This works fine.
    2. However, on the reports page, there is a "CREATE" button also, where the user can directly create a new record and the request value is "CREATE"
    I wanted to add both COPY and CREATE to the conditional display something like
    "REQUEST=Expression1" with value "COPY, CREATE" (without quotes)
    however, the item does not display. I guess it only accepts one value since its =.
    Any suggestions on how the conditional display for an item can be done based on multiple request types?
    Thanks!
    Sun
    Edited by: ryansun on Oct 18, 2012 3:08 AM

    Hi Sun,
    Try changing your condition to a PL/SQL Expression and in expression 1 field add something similar to below and see if it works:
      :REQUEST like 'CREATE' or :REQUEST like 'COPY'This is straight off the top of my head and untested.
    Hope this helps
    Paul

  • I have a full creative cloud subscription, do I still have to pay for Forms Central?

    I have Acrobat XI as part of my Creative Cloud subscription, why or do I have to upgrade and pay for Forms Central too, this seems a bit harsh and greedy in my opinion. I am just a single user.

    Hi Chris,
    On the trial period screen of Acrobat, please select 'License this software' and use your Adobe ID to license it.
    The subscription is linked to your Adobe ID.
    Please let me know if it worked for you or not.
    Regards,
    Ravi

Maybe you are looking for

  • Event IDs 136 and 137 0x80000000000000 in System Log on Windows 2008 R2 Server, Exchange 2010 in Cluster

    Hi, I'm having an issue with one of my exchange 2010 Servers. We had a power outage and upon recovery, I cannot start Services Net.Pipe Listener Adapter and Net.Tcp Listener Adapter (And thus cannot Start IIS and provide Exchange Client Services.) Th

  • Slide Show screen saver

    I'm looking for a OS9 screen saver that works like the slide show screen saver in OSX. I have an old Performa that i've upgraded to a G3 and am running 9.2.2. I use it for email, iTunes, and scanning. I'm running a G4 mirror for the rest of my work.

  • Java api: User mapping information

    Hi all, is it possible using Java Api to read User mapping information. I need user name my portal user mapped to.

  • Formatting in an interactive PDF

    Hi, I have a form that has a section that needs to be able to go into auto numbering/sub bullets,etc as needed (like an outline format).  Is this possible? Also, within that same section, there are cases where the user wants to copy from a Word docum

  • Import TAB

    HI, How to bring the import tab in PO header level. murugan