Setting SPEL Programatically

Hi all,
Is it possible to set SPEL programatically. I want disable and enable a delete image column in a table in a standard page. I have to achieve this through customization. Any ideas how to do it?
Regards,
Pradeep

Hi Pradeep ,
Programmatic SPELL is not possible , you achieve hide / show the image using switcher in OAF ,
Please refer this
Can we add SPELL programatically?
Keerthi

Similar Messages

  • How to set JAVA_HOME programatically

    Hi Friends,
    Is there anyway to set JAVA_HOME environment property using a batch script.Actually,I am trying to check if the user system has java installed or not. If not,I make him run the JRE installer but the problem is when I try to start Tomcat, it expects JAVA_HOME to be set. So, I want to set JAVA_HOME programatically, is there anyway to do so???
    This is the script i am using to check if java is already installed or not:
    @echo off
    ::This batch file only tested under Windows 2000
    ::It will detect the short path of the current version
    ::of the Java runtime executable
    ::First test to see if we are on NT or similar OS by seeing
    ::if the ampersand is interpreted as a command separator
    reg1.txt echo 1234&remtype reg1.txt | find "rem"
    if not errorlevel 1 goto WIN9X
    ::Find the current (most recent) Java version
    start /w regedit /e reg1.txt "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment"
    type reg1.txt | find "CurrentVersion" > reg2.txt
    if errorlevel 1 goto ERROR
    for /f "tokens=2 delims==" %%x in (reg2.txt) do set JavaTemp=%%~x
    if errorlevel 1 goto ERROR
    echo Java Version = %JavaTemp%
    del reg1.txt
    del reg2.txt
    ::Get the home directory of the most recent Java
    start /w regedit /e reg1.txt "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\%JavaTemp%"
    type reg1.txt | find "JavaHome" > reg2.txt
    if errorlevel 1 goto ERROR
    for /f "tokens=2 delims==" %%x in (reg2.txt) do set JavaTemp=%%~x
    if errorlevel 1 goto ERROR
    echo Java home path (per registry) = %JavaTemp%
    del reg1.txt
    del reg2.txt
    ::Convert double backslashes to single backslashes
    set JavaHome=
    :WHILE
      if "%JavaTemp%"=="" goto WEND
      if not "%JavaHome%"=="" set JavaHome=%JavaHome%\
      for /f "delims=\" %%x in ("%JavaTemp%") do set JavaHome=%JavaHome%%%x
      for /f "tokens=1,* delims=\" %%x in ("%JavaTemp%") do set JavaTemp=%%y
      goto WHILE
    :WEND
    set JavaTemp=
    echo Java home path (long, with spaces) = %JavaHome%
    ::Convert long path (with spaces) into a short path
    for %%x in ("%JavaHome%") do set JavaHome=%%~dpsx
    echo Java home path (short path, no spaces) = %JavaHome%
    ::Test the java path to see if there really is a java.exe
    if not exist %JavaHome%\bin\java.exe goto ERROR
    ::Make changes to the PATH
    echo Insert code here that needs to know the short path to Java.
    set path=%JavaHome%\bin;%path%
    goto DONE
    :WIN9X
    echo Insert code here for Windows 9x
    goto DONE
    :ERROR
    echo Insert code here for conditions where Java.exe can't be found
    goto DONE
    :DONEThanks

    You are asking questions about Windows batch scripting in a Java forum?
    When you get right down to it, the question is "How do I set an environment variable in a batch script", isn't it? Free your mind from useless distractions: the batch script and the operating system don't care at all what you're going to use that environment variable for.
    Oh yeah, I almost forgot: you use the SET command to set an environment variable.

  • Setting ServletReloadCheckSecs programatically

    Hello,
              In config.xml, under Domain->Application->WebAppComponent, there is an
              attribute called ServletReloadCheckSecs that is used by weblogic to
              decide whether to check a war file for update and how frequent should
              the check be. The default is 1 sec.
              The only way to change this number, short of editing config.xml after
              deployment, is to use the console. Does anyone know how to set this
              programatically? Like as an argument to weblogic.Deployer or as an
              attribute in web.xml?
              Thanks,
              Chishun Kwong
              

              "Chishun Kwong" <[email protected]> wrote in message
              news:[email protected]..
              > Hello,
              >
              > In config.xml, under Domain->Application->WebAppComponent, there is an
              > attribute called ServletReloadCheckSecs that is used by weblogic to
              > decide whether to check a war file for update and how frequent should
              > the check be. The default is 1 sec.
              >
              > The only way to change this number, short of editing config.xml after
              > deployment, is to use the console. Does anyone know how to set this
              > programatically? Like as an argument to weblogic.Deployer or as an
              > attribute in web.xml?
              >
              > Thanks,
              > Chishun Kwong
              In web.xml adding the following should work for you
              <context-param>
              <param-name>weblogic.servlet.reloadCheckSecs</param-name>
              <param-value>-1</param-value>
              </context-param>
              If you are using weblogic 7.x or 8.1 you can alternatively set this
              parameter in weblogic.xml
              http://e-docs.bea.com/wls/docs81/webapp/weblogic_xml.html#1038823
              <container-descriptor>
              <servlet-reload-check-secs>-1 </servlet-reload-check-secs>
              </container-descriptor>
              hope that helps
              Nagesh
              

  • How can I set layoutset programatically in a folder ?

    Hi Gurus,
       I have a requirement in which I need to assign, programatically, a layout set for some folder. Does anybody give me an idea about it ?
    Thanks a lot.
    Patricio.

    How To Use Automator To Batch Rename Images on Mac

  • Set spell check language to British once and for all...

    I know this question has been asked a few times before but I just cannot fix it on my iMac or MBP. I am running Snow Leopard (still too scared to upgrade to Lion) and want to globally change my spell-check to British.
    I have tried everything. Every option in the System Preferences where I can change the language to British I have done and also changed the preferences in each application by right-clicking the underlined text, selecting 'spelling and gramma' and setting the dropdown to British English. All to no avail. As soon as I go back to TextEdit or something and type 'colour' it's telling me to change it to 'color'. Infuriating!
    Does anyone have any clue? The irony is that I managed to make it work as I wanted (no American spellings) on my old MacBook running Snow Leopard but just can't on my newer computers.
    Many thanks
    J

    I know this question has been asked a few times before but I just cannot fix it on my iMac or MBP. I am running Snow Leopard (still too scared to upgrade to Lion) and want to globally change my spell-check to British.
    I have tried everything. Every option in the System Preferences where I can change the language to British I have done and also changed the preferences in each application by right-clicking the underlined text, selecting 'spelling and gramma' and setting the dropdown to British English. All to no avail. As soon as I go back to TextEdit or something and type 'colour' it's telling me to change it to 'color'. Infuriating!
    Does anyone have any clue? The irony is that I managed to make it work as I wanted (no American spellings) on my old MacBook running Snow Leopard but just can't on my newer computers.
    Many thanks
    J

  • How to Set SPEL on DFF Attributes?

    Hi
    My Requrement is , If one Of DFF Attribute has Value => Yes then Attribute5 I wants make it Mandatory.
    Please help me how to achieve this using SPEL?

    Hi,
    Make use of below code..
    //Get Handle to DFF
    OADescriptiveFlexBean dffBean = (OADescriptiveFlexBean)webBean.findIndexedChildRecursive("DescFF");
    dffBean.processFlex(pageContext);
    //Make the segments mandatory
    if(mandatory)
    OAMessageLovInputBean segment2 =
    (OAMessageLovInputBean)dffBean.findChildRecursive("DescFF1");
    if(segment2 != null)
    segment2.setRequired("yes");
    }Regards,
    Gyan

  • Setting CSS Programatically

    Hi all,
    Howdy all,
    Is it possible to set the css of row in a dataTable programmatically? I have a dataTable bound to a UIData component and I cycle through the rows of the table and calculate some values. If the value is greater than a certain threshold, I need to highlight the entire row, say by coloring it red. Is is possible to manipulate the style for that single row?
    Thanks,
    -Elam

    You should be able to bind datatable CSS row property to a backing bean function that returns the list of CSS classes. I think the list should be comma separated, one for each row.

  • TB Conversations: Inline reply box not spell spell checking. How to set spell check for the inline reply box?

    When using the inline reply box and I misspell a word the red line shows to indicate I have misspelled and yet when I right click ont he world there are no spelling suggestions. This feature does work if I reply through a new window, but not when using the inline reply box available with the Conversations plug in.

    see this goto Option>Advance>General see screen shot now '''tik''' on it

  • How do you set up spell check on an imac using google chrome so it gives you the suggested spelling

    I am on an imac using Yosemite 10.10.2 and using Google Chrome mail. How can I set spell check to show wrong spelling and suggest correct spelling?

    If no one here knows then please check on Google's website, even better why not Google it?

  • SPEL to set required value

    Hi,
    I've browsed thru a lot of the SPEL posts here but couldn't quite get an answer.
    I'm trying to do something simple - set SPEL on a required field. The available options are "yes", "no" and "SPEL"
    I extended my VO and added a new boolean attribute - lets call it xxIsequired, and personalized the field required property to {oa.xxVO.xxIsequired}, but there is no change (doesn't work). I checked that the substitution is in fact working, and I know the new attribute xxIsequired returns true or false correctly.
    Then I tried changing the attribute xxIsequired to string, and return yes or no. With this I can't even get the personalization page to save (Error:"Please provide a valid value for 'required'.").
    So if only boolean attribute can be used, will it really work with required attribute which needs a "yes" or "no"?
    I am on OA Framework 12.1.3.
    Thanks,
    Kalp

    Thank you for your responses. I can't get it to work. Don't know what's wrong??
    This is my code (cut down for simplicity):
    VO Query select:
    CASE WHEN country <> 'US' THEN 1
    ELSE 0
    END xxisTaxReq
    VO Attribute:
    <ViewAttribute
    Name="xxIsTaxReq"
    IsPersistent="false"
    Precision="1"
    Type="java.lang.Boolean"
    ColumnType="NUMBER"
    AliasName="IS_TAX_REQ"
    Expression="IS_TAX_REQ"
    SQLType="BIT" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="14" />
    </DesignTime>
    </ViewAttribute>
    SPEL:
    Required attribute: ${oa.xxVO.xxIsTaxReq}
    I tried to create a new item thru personalization on the page and the value true/false comes through correctly on the screen.
    So this really baffles me, I dont know what I'm doing wrong? The true/false value is available but the personalization doesnt apply it to required field.

  • CRVS2010 Beta - help setting embedded field programatically

    I have a report where the details section spits out names that come from two fields: FIRSTNAME and LASTNAME.
    They are displayed in a textobject with embedded fields []. I need to highlight only the last name if it equals "Smith." I have accomplished this by right-clicking the and "Format Embedded Field" and next to the underline checkbox write a formula that says:
    IF {REPORTS.LASTNAME} = "SMITH" THEN
    True
    My question is, how can I set this formula programatically? I need "SMITH" to be a variable set by the vb.net program. I cannot figure out how to reference an embedded field within a textobject.
    thanks.
    Updated the subject accordingly
    Edited by: Don Williams on Sep 24, 2010 9:54 PM

    Thanks for taking my question. I am using VS 2010, and the CR and assemblies that came standard with it, 14.0.2.
    Meantime I came up with a workaround:
    I created a new input parameter called LASTNAME_IN and I can set that programatically. Then I modified the formula to read:
    IF {REPORTS.LASTNAME} =  {?LASTNAME_IN} THEN
    True
    and this functions as I wish. However this is incredibly manual  (I have to go back and add this parameter to each and every report) and it would be much easier to just be able to reference in the program.
    thanks again.
    Edited by: Chaseshaw on Sep 25, 2010 12:13 AM

  • Problem with setting custom attribute and it being searchable

    I'm having an issue with setting a custom attribute and having it be searchable using Portal 10.1.4. The situation that we have is that we initially added a bunch of files to Oracle Portal using webdrive. Later on, we decided that we needed another custom attribute called "Pinned Item" that will be used for searching (boolean value) and gave it a default value of false. The attribute was then added to the "File" item type in the "Shared Objects" group.
    It appears that since this attribute wasn't initially available on the file object, we couldn't search on it so we decided to set it programatically. First, I tried using wwsbr.set_attribute but it errored out seemingly because the value wasn't set in the first place. If I set a value first by using the web front end, I could then use the set_attribute procedure.
    So, I moved on to using wwsbr_api.modify_item and it appears to set it (although everything is being set to false until I changed it to "text" instead of "boolean" which is OK because that's what I wanted anyway... see metalink bug 390618.1). I'm using the method outlined in metalink doc 413079.1. When I do set it to a "1", and edit the item the check box is checked indicating that it is set correctly. And if I just click "OK" to save the attributes after I open it everything works like it should.
    However, the advanced search (and custom search portlet) and the search APIs are not picking it up. I'm not sure if I'm hitting Metalink bug ID 5592472 or not as that's using the "set_attribute" procedure instead of the modify_item procedure. And their "workaround" of setting the attribute in the UI isn't really feasible for a couple thousand files.
    So far I've tried the following things to get it working:
    1. I am calling wwpro_api_invalidation.execute_cache_invalidation
    2. I have executed wwv_context.sync
    3. I cleared the page group cache
    4. I invalidated all of the web cache
    Does anyone else have any other suggestions?

    I'm having an issue with setting a custom attribute and having it be searchable using Portal 10.1.4. The situation that we have is that we initially added a bunch of files to Oracle Portal using webdrive. Later on, we decided that we needed another custom attribute called "Pinned Item" that will be used for searching (boolean value) and gave it a default value of false. The attribute was then added to the "File" item type in the "Shared Objects" group.
    It appears that since this attribute wasn't initially available on the file object, we couldn't search on it so we decided to set it programatically. First, I tried using wwsbr.set_attribute but it errored out seemingly because the value wasn't set in the first place. If I set a value first by using the web front end, I could then use the set_attribute procedure.
    So, I moved on to using wwsbr_api.modify_item and it appears to set it (although everything is being set to false until I changed it to "text" instead of "boolean" which is OK because that's what I wanted anyway... see metalink bug 390618.1). I'm using the method outlined in metalink doc 413079.1. When I do set it to a "1", and edit the item the check box is checked indicating that it is set correctly. And if I just click "OK" to save the attributes after I open it everything works like it should.
    However, the advanced search (and custom search portlet) and the search APIs are not picking it up. I'm not sure if I'm hitting Metalink bug ID 5592472 or not as that's using the "set_attribute" procedure instead of the modify_item procedure. And their "workaround" of setting the attribute in the UI isn't really feasible for a couple thousand files.
    So far I've tried the following things to get it working:
    1. I am calling wwpro_api_invalidation.execute_cache_invalidation
    2. I have executed wwv_context.sync
    3. I cleared the page group cache
    4. I invalidated all of the web cache
    Does anyone else have any other suggestions?

  • SharePoint 2013 List & linked Document Set Project Help Needed

    I have struggling to find the best solution for a recent project. I'm sure someone will have a better suggestion than what I have come up with.
    Project Requests
    Project Tracking and Documents
    Status and other data
    Project Documents
    Offsite Syncing for active projects (SkyDrive Pro)
    Attempted Scenario
    1 List for Project Tracking
    1 Document Library for Project Documents (Document Set content type)
    I created a workflow to automatically create a new Document Set when an item was added to the list, then create a link to the Document set in a column called Documents. The goal with the document sets is to have them sent to another library (archive) when
    the project is marked complete. The reason is so that the user synching offline won't have so many document sets to sync or to browse through (there would easily be a few hundred within a couple of months)
    Is there a way to programmatically move the document set to an archive library when the list item status is set to complete?  And if the status were to change back to active, to move back to the active library. 
    Or maybe I am going about this the wrong way entirely?  All suggestions are greatly appreciated! 

    Hi,
    With Event Receiver, we can capture the ItemUpdated event of item of a list when the value of an item is updated, then perform the Document Set moving accordingly.
    Here is a step by step sample on creating a simple Item added event receiver for Custom List in SharePoint 2010:
    http://msdn.microsoft.com/en-us/library/ff398052.aspx
    More information on
    Event Receiver for your reference:
    http://msdn.microsoft.com/en-us/library/gg749858(v=office.14).aspx
    http://msdn.microsoft.com/en-us/library/ff408183(v=office.14).aspx
    Here is a thread with code demo about
    moving Document Set programmatically:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/1e8b1110-a719-4825-a300-cc1946f4d96a/document-sets-move-programatically
    Feel free to reply if there are still any questions.
    Best regards
    Patrick Liang
    TechNet Community Support

  • Getting error 025036 while setting bind variable value

    Hi,
    I have created a view object (ViewObj) having bind variable (Bind_Val).
    I am writing custom java method in AppModuleImpl.java, so that I can use that in serviceInterface.
    my method is:
    public void Met(String a){
    ViewObjImpl vo=new ViewObjImpl();
    vo.setBind_Val(a);
    I tried the below method also:
    public void Met(String a){
    ViewObjectImpl vo=new ViewObjectImpl();
    vo.setNamedWhereClauseParam("Bind_Val",a)
    But when I am running the AppModuleServiceImpl.java and select the Met method and pass the value for a. It is giving me error 02036.
    How to set the bind variable value in AppModuleImpl.java??
    Thanks,
    Rohit

    Hi Frank,
    Thanks for reply. It was helpful.
    Please go through the below mentioned two queries.
    My sql query is:
    SELECT Message.MESSAGE_ID,
    MessageProp.VALUE,
    MessageProp.MSG_PROP_ID
    FROM MESSAGE Message, MESSAGE_PROP MessageProp
    WHERE (MessageProp.Key='From' OR MessageProp.Key='To')AND Message.MESSAGE_ID = MessageProp.MESSAGE_ID And MessageProp.Value='B'
    and I have created one view criteria where I am giving the condition as MessageId=:Bind_MessageId.
    And then I am executing my findViewCriteria method from AppModuleServiceImpl where I am passing the value for Bind_MessageId and I am getting the output as I want.
    Now I am modifying my query as:
    SELECT Message.MESSAGE_ID,
    MessageProp.VALUE,
    MessageProp.MSG_PROP_ID
    FROM MESSAGE Message, MESSAGE_PROP MessageProp
    WHERE (MessageProp.Key='From' OR MessageProp.Key='To')AND Message.MESSAGE_ID = MessageProp.MESSAGE_ID And MessageProp.Value=:Bind_Value
    and setting the value for :Bind_Value programatically as:
    public void test(String s){
    ViewObjectImpl view = this.getViewObj1();
    VariableValueManager vm = view.ensureVariableManager();
    vm.setVariableValue("Bind_Value",s);
    **Note- I have written this custom method in AppModuleImpl.java class
    Then firstly I am executing test method from AppModuleServiceImpl to set the value for :Bind_Value. After that I am executing findViewCriteria method but then I am not getting any record.
    **Note-I am not getting any error.
    I want to set Bind_Value programatically and then I want to execute my FindViewCriteria from serviceInterface.
    Thanks,
    Rohit

  • Setting isolation level with JDriver for Oracle/XA

    edocs (http://e-docs.bea.com/wls/docs70/oracle/trxjdbcx.html#1080746) states that,
    if using jDriver for Oracle/XA you can not set the transaction isolation level
    for a transaction and that 'Transactions use the transaction isolation level set
    on the connection or the default transaction isolation level for the database'.
    Does this mean that you shouldn't try to set it programatically (fair enough)
    or that you can't set it in the weblogic deployment descriptor either? Also anybody
    got any idea what the default is likely to be if you are using an Oracle 9iR2
    database? Is this determined by some database setting?

    IJ wrote:
    edocs (http://e-docs.bea.com/wls/docs70/oracle/trxjdbcx.html#1080746) states that,
    if using jDriver for Oracle/XA you can not set the transaction isolation level
    for a transaction and that 'Transactions use the transaction isolation level set
    on the connection or the default transaction isolation level for the database'.
    Does this mean that you shouldn't try to set it programatically (fair enough)
    or that you can't set it in the weblogic deployment descriptor either? Also anybody
    got any idea what the default is likely to be if you are using an Oracle 9iR2
    database? Is this determined by some database setting?The system should honor the setting defined in the deployment descriptor,
    however, for oracle it may not be helpful to change it. Oracle provides two
    isolation levels. The default is always READ_COMMITTED. The other
    setting is SERIALIZABLE, but this hurts performance, and is also problematic
    in the way oracle implements it. For instance, even if you set SERIALIZABLE,
    oracle will not lock read data. It will allow other transactions to read and/or
    alter data trhat another ongoing SERIALIZABLE transaction has read. The
    only way to really lock read data in oracle is to issue oracle-specific SQL in
    your select: "SELECT ..... FOR UPDATE".
    All in all, you should collect a strong case for why you can't proceed with
    READ_COMMITTED first. Then you should research oracle's recommendations
    (and their problem record) with SERIALIZABLE.
    Joe Weinstein at BEA

Maybe you are looking for

  • XSLT 2.0 supported in Oracle BPEL ?

    Hi, is XSLT 2.0 (schema-aware) supported or is there any way to change the built-in XSLT parser to Saxon or another one? Thanks.

  • Buttons became inactive Flash Builder 4.7

    Hello ! I realized an application on Flash Builder 4.7. This application has links which dismissals(cross-references) towards plans, maps of various formats (.tif, .dwg...). it is situated on a server (Windows 2008) and since a few days, buttons beca

  • Problem with import of split tables.

    We are creating copy of our  production system. The system copy has a change of Operating system from HP-UX to Windows X86_64 and is also has unicode conversion. We followed the following steps: 1) Performed post copy steps and pre-unicode conversion

  • How to run labview in exe

    We have a scoreboard and we don't know how to run it in an exe.file. We need it to project on a big tv screen. please answer thx

  • Mouse dosen't work after OS Update...

    After updating a G5 server from 10.4.2 to 10.4.3, the mouse stopped working. The keyboard works fine. And the mouse is OK (we tried several - including connecting the mouse directly to the server's USB port). The server is not "locked". If starting t