ADF MenuModel: Dynamic changes to shown property

Hi all,
I have been doing some testing, and not sure if this is a bug or I am doing something wrong. To set the stage, I've got a menu defined via managed beans (using the MenuItem, MenuModelAdapter, MenuTreeModelAdapter from SRDemo). I also have a session-scoped userInfo bean that tracks the usual stuff. I have exposed some boolean properties from this userInfo bean that are used in faces-config.xml to indicate whether the menu item should be shown or not.
My userInfo bean in the constructor, sets some default stuff, and the menu works correctly. However, if I make changes to the userInfo boolean properties, the menu is not picking up those changes; its as if the shown property is being set once and then not re-evaluated each time. I do not have any af:cache elements on my pages, so it's definitely not that. I know that the userInfo bean's properties are being updated, as I have other elements on the page that make use of it and are updating appropriately
Am I doing something wrong here, or are the managed properties going to be set once at the start and never changed again?
Kind regards,
John

Some snippets:
one of my menu item's
  <managed-bean>
    <managed-bean-name>m_directive_create</managed-bean-name>
    <managed-bean-class>view.menu.MenuItem</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    <managed-property>
      <property-name>label</property-name>
      <value>Create Directives</value>
    </managed-property>
    <managed-property>
      <property-name>shown</property-name>
      <value>#{userInfo.corporateUser}</value>
    </managed-property>
    <managed-property>
      <property-name>viewId</property-name>
      <value>/directive/ICCreateDirective.jspx</value>
    </managed-property>
    <managed-property>
      <property-name>outcome</property-name>
      <value>ICCreateDirective</value>
    </managed-property>
  </managed-bean>Managed bean:
  <managed-bean>
    <managed-bean-name>userInfo</managed-bean-name>
    <managed-bean-class>view.UserInfo</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>In userInfo:
  public UserInfo()
   _corporateUser = true;
  public boolean isCorporateUser()
     return _corporateUser;
  public setCorporateUser(boolean b)
    _corporateUser = b;
  }For testing, I've got a menu switch element on my Page:
           <f:facet name="menuSwitch">
              <af:menuChoice>
                <af:commandMenuItem text="Corporate"
                                    actionListener="#{superBean.corporate}"
                                    selected="#{userInfo.corporateUser}"/>
                <af:commandMenuItem text="Field"
                                    actionListener="#{superBean.field}"
                                    selected="#{userInfo.fieldUser}"/>
              </af:menuChoice>
            </f:facet>My superBean:
  <managed-bean>
    <managed-bean-name>superBean</managed-bean-name>
    <managed-bean-class>view.backing.Super_backing</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
      <property-name>userInfo</property-name>
      <value>#{userInfo}</value>
    </managed-property>
  </managed-bean>and finally superBean:
  public void corporate(ActionEvent actionEvent)
    _userInfo.setCorporateUser(true);
  public void field(ActionEvent actionEvent)
    _userInfo.setCorporateUser(false);
  }Everything works, except that the menu (Create Directive in my example) is always shown. If I change it to false in the constructor, it is never shown.
Thanks for the help,
John

Similar Messages

  • Dynamical change read only property of  columns based on a profile option

    Hi,
    We are attempting to change a Oracle iProcurement(ShoppingCartPG) which has certain readonly columns by default.
    However, we need to make these columns updateable based on a responsibility level profile option. The code goes something like this.
    if readonly_profile_option = "TRUE"
    {make columnA property = readonly}
    else if readonly_profile_option = "FALSE"
    {make columnA property = updateable}
    I read the guide about switchers and it seems confusing (to me). So if someone can provide an example with some pseudocode that will be helpful.
    Also, can I dynamically add an LOV to column A if readonly is false? Of course the LOV should be disabled if readonly.
    Thanks a lot

    Hi,
    Thanks for the feedback.
    Tapash,
    Switchers definitely don't make sense.
    Raffy,
    Didn't know it was that simple. I always thought that the controller fires--> then the page renders --> then the VO attributes get poulated. Basing my understanding on this flow, I though that the bean properties can only be set in controllers and not in VOs(via SPEL). I'll try it tomorrow.
    Aprreciate your comments on the following.
    Our requirement is to make an Oracle seeded field(SupplierName in iProcurement) updateable and with an LOV . Oracle has seeded it as ReadOnly.
    I have two options.
    1. If I change the readonly property in jedeveloper(I cannot access it via personalization) and add SPEL that would be upgrade 'unsafe' customizing - I think.
    2. So I thought I'll extend the controller, substitute it and use
    messageLOVInputText SupplierNameBean=webbean.findChildRecursive("SupplierName");
    if{profle=not_read_only)
    {SupplierNameBean.setReadOnly(false)};
    else
    {SupplierNameBean.setReadOnly(true)};
    This is more upgrade safe. I have talked to the iProc development team and they are fine with it.

  • Dynamically changing break order property

    I have a report that has four different fields that the user can break on. Does anyone know how to dynamically change the break order depending on which field the user choses as a parameter.
    Thanks

    Alias the break columns.
    select &p_col1 break, col2...
    from tablename
    then send to the report the name of the break group column.
    The initial value of p_col1 should be set to 'xxxxxxxxxxxxxxxxx' enclose in quotes. Take care at the length of the string. This is the only thing that determines the length of the field.

  • Dynamically changing UI element property based on Checkbox selection

    Hi,
    I have a checkbox in my UI. On the selection of the checkbox, a dropdown must get enabled and when the checkbox is not selected, the dropdown should be disabled. Can someone tell me how i can achieve this?

    Hi ,
    bind ur checkbox and dropdowns enabled properties to context attributes of type WDY_BOOLEAN
    suppose ur checkbox is bound to ca_check attribute under node cn_check
    and ur drop down is bind to ca_drop attribute under node cn_drop
    for the OnToggle Event of CheckBox , assign an action say act
    and in Onactionact method , write the following piece of code :
      DATA lo_nd_cn_check TYPE REF TO if_wd_context_node.
        DATA lo_el_cn_check TYPE REF TO if_wd_context_element.
        DATA ls_cn_check TYPE wd_this->element_cn_check.
        DATA lv_ca_check LIKE ls_cn_check-ca_check.
    *   navigate from <CONTEXT> to <CN_CHECK> via lead selection
        lo_nd_cn_check = wd_context->get_child_node( name = wd_this->wdctx_cn_check ).
    *   get element via lead selection
        lo_el_cn_check = lo_nd_cn_check->get_element(  ).
    *   get single attribute
        lo_el_cn_check->get_attribute(
          EXPORTING
            name =  `CA_CHECK`
          IMPORTING
            value = lv_ca_check ).
    IF lv_ca_check = 'X'
    DATA lo_nd_cn_drop TYPE REF TO if_wd_context_node.
        DATA lo_el_cn_drop  TYPE REF TO if_wd_context_element.
        DATA ls_cn_drop TYPE wd_this->element_cn_drop.
        DATA lv_ca_drop  LIKE ls_cn_drop-ca_drop.
    *   navigate from <CONTEXT> to <CN_CHECK> via lead selection
        lo_nd_cn_drop = wd_context->get_child_node( name = wd_this->wdctx_cn_drop ).
    *   get element via lead selection
        lo_el_cn_drop = lo_nd_cn_drop->get_element(  ).
    *   set single attribute
        lo_el_cn_drop->set_attribute(
          EXPORTING
            name =  `CA_DROP`
            value = 'X' ).
    ELSE.
    lo_el_cn_drop->set_attribute(
          EXPORTING
            name =  `CA_DROP`
            value = ' ').
    here ur drop down is bind to ca_drop attribute under node cn_drop.
    rgds,
    amit
    Edited by: amit saini on Sep 24, 2009 1:42 PM

  • Dynamically change a partner link config property via the BPEL Consle

    Is it possible to dynamically change a configuration property
    for a partnerlink in the BPEL Console?
    From Help in Jdev:
    - Double click Partner Link
    - Property tab
    -- Help
    --- "Property Tab"
    Partner link properties are simple name-value pair properties that
    are defined and can be accessed at runtime by the BPEL process.
    The value of a property can be changed from Oracle BPEL Console
    at runtime without having to redeploy the BPEL process.
    Steps to reproduce:
    1. Set the configuration property retryMaxCount on a partnerlink
    2. Enter the BPEL Console, click on the process and then the descriptor tab.
    3. Not seeing a utility to change the value in the BPEL Console.

    Hi Dave,
    the console only allows changes to activation agent properties.
    There are two kinds of partnerlinks. Those associated with a receive (inbound, activation), and those associated with an invoke (outbound, webservices invoke). Only the former polling process properties can be configured from the console.
    Outbound there are only a handfull of properties and the lifecycle management is not the same.
    Thanks
    Steve

  • Dynamically change the binding of a field

    Hi,
    I've been looking all over the internet for 2 days to find the answer to my question, but I couldn't get any information on my problem. Here's what i'm trying to do :
    Based on a checkbox in my form, I want to export or I don't want to export a field to a XML document.
    My checkbox is working properly and I got the Send button with the XML working too. I only need to find a way to dynamically change the binding property of my field. I've read some informations with the ".bind.match", but I can't seem to make it work.
    I'm using Windows XP, LiveCycle Designer ES2 v.9.0 and I have to run the form in Reader 8.0.
    Thanks alot for your help, it's greatly appreciated.
    Jonathan

    Hi,
    the binding cannot be changed at runtime.
    You can use the checkbox to delete the value of the field so the exported xml contains an empty tag.
    Or you try to delete the data node of the desired field in the data DOM (xfa.datasets).

  • Dynamical changing HtmlInputText component style on failed validation...

    ...but once validation passes the modified style isn't reset...and when navigating away from the page and then back again, the component will still have the modified style.
    this is for JSF1.1 because i understand JSF1.2 has a errorStyle property.
    I understand once first entry the components are rendered and then stored in a component tree for subsequent display, but because i have dynamical changed the style property it seems to be stored in the component tree.
    here is snippets of my code
    JSP page
    <h:inputText id="textName" styleClass="inputText" *validator="#{fieldValidators.validateText}"* value="#{customer.name}" required="true">
    <f:validateLength minimum="1" maximum="40"></f:validateLength>
    </h:inputText>
    _FieldValidators class_
    public void validateText(FacesContext context, UIComponent toValidate, Object value)
    ((UIInput)toValidate).setValid(false);
    *((HtmlInputText)toValidate).setStyleClass("inputText inputValidationError");*
    FacesMessage message = new FacesMessage(errorMessage);
    context.addMessage(toValidate.getClientId(context), message);
    the style class +inputValidationError+ sets the outline of the input type to be red. so input components highlight in red when validation fails.
    so to recap my issue, when the failed validation is corrected, the component still has the +inputValidationError+ style applied, and when navigating away from the page and back to it +inputValidationError+ still is in its style, so still appears with the red border.
    any help or recommendations would be really welcome.
    thanks.

    Implement a PhaseListener which listens on the afterPhase of the RENDER_RESPONSE and get the clientId of all components which have a validation error by FacesContext#getClientIdsWithMessages() and put it in a HashSet or so. Then iterate recursively over all children of UIViewRoot and if it is an instance of UIInput, then (re)set the styleclass accordingly based on the presence of its clientId in the HashSet created before.

  • How do you change the Number of Plots Shown property of a Waveform Chart at runtime?

    Is there any possible way to change the Number of Plots Shown property
    of a Waveform Chart at runtime?  Thy Dynamic Stackplots example is
    way to limited.....

    There's a couple of ways to do this -
    1. Manage the data going into the chart to only be what you want displayed
    2. Use property nodes.  Specifically, the Plot.Visible node. (LV 7 example attached).
    2006 Ultimate LabVIEW G-eek.
    Attachments:
    MultiPlots.vi ‏48 KB

  • Dynamically changing row color in an ADF table?

    Hi,
    I am using Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660. Can anyone please let me know the code for dynamically changing the row color of an ADF table?
    Thanks,
    Vik

    well you can use EL on af:column inlineStyle property to change the color on condition
    e.g
    inlineStyle='#{(row.SelectedRow)?"background-color: Silver":""};a example can be found here it is changing color based on Checkbox selection http://baigsorcl.blogspot.com/2010/06/deleting-multi-selected-rows-from-adf.html

  • Dynamic changing of FPM screen property like invisible/disable/mandatory

    Hi Experts,
    Can anyone tell me how can i change the screen property in custom BOPF determination?
    I tried this class ' /BOBF/CL_LIB_H_SET_PROPERTY' but couldnt make the field mandatory.
    Regards,
    Bob.

    Hi ,
    Add to the above post.
    I have enhanced a business object 'EHHSS_INCIDENT' and created a determination for node 'BASIC_INFO_ALL'. So within this method I need to dynamically set property as mandatory for a field.
    How can I achieve it?
    Regards,
    Bob.

  • Dynamically changing tree node

    I'm having a problem when dynamically changing a JTree node. I can add a node to the tree no problem. If I then change the name of the node (via a property table in the app) and fire a node changed event, the change is not properly reflected in the tree, in that the new name is shown but the selection box remains the same size as the old (longer) name.
    If I manually click on the node with the mouse and then change the name everything works fine. Although this is only manifesting itself as a cosmetic problem I think this could be a timing problem that might show up under other circumstances. I have another tree in the app where this problem does not show up at all.
    Any ideas?
    Thanks

    1)fluctuating tree...what???
    2) Create a JPopUpMenu or a subclass. Add a mouselistener to the JTree.
    In this listener you handle rightMouseClick.
    When you detect such an mouse action open the popup with popup.show()
    If you need the selected component call JTree.getLastSelectedPathComponent().
    If you want to check if it is null use this: JTree.getSelectionModel().isSelectionEmpty(). So you can prevent nullpointers, cause selection can be empty
    You can write a method for your popup to give it the selected component.
    Then call the .show().
    Tweety

  • How to dynamically changes items properties

    How to dynamically changes items properties likes position order in tabular view, width, prompt

    Many object properties can be set programmatically at runtime. For example, each window object has a Visible property that can be set to either Yes or No to show and hide the window. At runtime, you can call the built-in procedure SET_WINDOW_PROPERTY to show or hide the window dynamically, as shown here:
    Set_Window_Property('my_window',VISIBLE, PROPERTY_ON);
    The following built-in procedures are available for setting object properties at runtime:
    -     SET_BLOCK_PROPERTY
    -     SET_CANVAS_PROPERTY
    -     SET_FORM_PROPERTY
    -     SET_ITEM_PROPERTY
    -     SET_LOV_PROPERTY
    -     SET_MENU_ITEM_PROPERTY
    -     SET_PARAMETER_ATTR
    -     SET_RADIO_BUTTON_PROPERTY
    -     SET_RECORD_PROPERTY
    -     SET_RELATION_PROPERTY
    -     SET_VIEW_PROPERTY
    -     SET_WINDOW_PROPERTY
    The built-in procedure SET_ITEM_PROPERTY can be used to set the properties of any type of item, including buttons, text items, check boxes, radio groups, etc.
    Note: Radio group items include individual radio buttons; use SET_ITEM_PROPERTY to set the properties of the radio group, and SET_RADIO_BUTTON_PROPERTY to set the properties of the individual buttons in the group.
    Each built-in SET procedure has a corresponding GET function that allows you to programmatically determine the current setting of an object's properties. The following example uses GET_WINDOW_PROPERTY to determine if a window is currently hidden (VISIBLE = FALSE). If the window is hidden, SET_WINDOW_PROPERTY is called to show the window.
    If Get_Window_Property('my_window',VISIBLE) = 'FALSE' THEN
    Set_Window_Property('my_window',VISIBLE,PROPERTY_ON);
    To determine if a particular property can be set programmatically, refer to the property descriptions in online Help.

  • ADF Faces: Dynamically enabling / disabling client validation

    Hi Frank,
    Im using JDeveloper 11.1.1.2.0 version. I want to disable the client side validation for some condition. I have read related information from Frank blog .
    But In that frank used adf-faces-config.xml file for the following configuration.
    <adf-faces-config xmlns="http://xmlns.oracle.com/adf/view/faces/config">
    <skin-family>oracle</skin-family>
    <client-validation-disabled>true</client-validation-disabled>
    </adf-faces-config>
    But in my application, I could not find adf-faces-config.xml file. I dont know where to configure please provide me the information.
    Regards,
    Felix

    Hi,
    in JDeveloper 11g this no longer is an option. To disable client validation you set immediate=true on the UI component, which youalso can do dynamically. Howerver, ensure you refresh the component after changing the immediate property state.
    Frank

  • How to dynamically change the text of a TextObject with embedded DataField?

    Hi
    I'm trying to dynamically change the text of a TextObject at runtime, by using the .NET library. My problem is that if one or more DatabaseFieldDefinition is embedded inside my text, I'm unable to change the "static text" only, by keeping the field, e.g. I have :
    Text1 => "Contact Name: {Contact.Name}"
    and I'd like to change it to anything else like:
    Text1 => "Nom du Contact: {Contact.Name}"
    Half of my TextObject is static text while second part comes from the dataset.
    (of course the translation is dynamic - it is called at run-time and the new value to be set depends on the calling application language)
    If I simply modify the Text property of my TextObject, the {Contact.Name} embedded field is not evaluated anymore by the Crystal Engine, but considered as a single text.
    Using formulas or parameters looks quite difficult, because it means having many ones just for translation needs - I cannot control the way my users will create their reports and "force them" to use complex methods just in order to put a text and a value together...
    Anyone knows how to deal with that ?

    Only way I can think of doing this:
    1) Create a formula (call it lang) and enter the string "Contact Name" in it
    2) Place the  {Contact.Name} field next to the string
    3) So now you have:
    ContactName:  {Contact.Name}
    4) Check what localization you are after. If you need "Nom du Contact", change the lang formula so it shows "Nom du Contact" using the code below:
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Shared
    Public Class Form1
    Inherits System.Windows.Forms.Form
    Dim Report As New CrystalReport1()
    Dim FormulaFields As FormulaFieldDefinitions
    Dim FormulaField As FormulaFieldDefinition
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    FormulaFields = Report.DataDefinition.FormulaFields
    FormulaField = FormulaFields.Item(0)
    FormulaField.Text = "[formula text]"
    CrystalReportViewer1.ReportSource = Report
    End Sub
    I realize this may not give you consistent spacing as the translations may have strings of differnt length. Perhaps someone has other idea(s)...

  • Dynamically Changing Labels for Multi Row Block Buttons

    Forms [32 Bit] Version 9.0.4.1.0 (Production)
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
    On my local: Windows 7 OS
    I am having a difficult time in doing the following in forms, and not sure if it can be done?
    I have a multi row block,based on DB table, which displays filename and another column from the table.
    It also has a push button on each row, which opens and displays the physical file from its source, when clicked. The filename thus can have 3 diff statuses depending on its sources and accordingly corresponding button should display appropriate label:
    a) View Image (its is in content server and successfully imaged. In this case I display the file in the browser, from the content server, when the button is clicked)
    b) View File (Display the file from file system)
    c) View Error (Display imaging error message from the table, as file failed to make it to the imaging server)
    I have this logic currently coded in the post query trigger, at the block level, and tried using set_item_property(button_id, label, <button_lable>), where I programmatically set the button lable, based on the file status (imaged, not imaged or has error) in that row. This wroks well, only if all the files in the multi row block have the same status. If each of them have diff statuses, then only last processed files's status gets reflected into the button label. For eg: The file in the first row of the block is imaged, and one in the second row has an imaging error. The button label for the first row should say 'View Image' and button for the second row should say 'View Error'. But now buttons for both the rows display 'View Error', as thats what got processed last!
    I __can not use set_item_instance property for 'label'__ (which lets us dynamically change the label on the push buttons).
    Is there any way to do this for ORacle forms? I am now playing with having 3 diff button items in that block, laying them on top of each other and showing only those that are appropriate and hiding the others... But I am not sure it is going to give me what I need? I think I am going to end up facing the same issues as in above case!!
    Any expert advice is highly appreciated.
    Thanks in advance for your time:
    Libran_Girl
    Edited by: libran on Aug 30, 2011 8:04 AM
    Edited by: libran on Aug 30, 2011 8:05 AM

    <p>I have just updated this existing PJC, that was originally constructed to handle Text Fields. You can, now, also handle buttons with it.
    Set the Button's Implementation Class property to : oracle.forms.fd.MultiButton.
    </p>
    This is the code you have to put one triggers of your based block:
    When-New-Record-Instance trigger: (based on the EMP table)
    declare
         LN$Pos  pls_integer ;
         LN$Rec  pls_integer := Get_Block_Property('EMP', CURRENT_RECORD) ;
         LN$Max  pls_integer := Get_Block_Property('EMP', RECORDS_DISPLAYED) ;
         LC$C    Varchar2(15) ;
    Begin     
         LN$Pos :=  LN$Rec - (trunc(LN$Rec/LN$Max) * LN$Max) ;
         If LN$Pos = 0 Then LN$Pos := LN$Max ; End if ;
         If LN$Pos > 0 Then
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LOG', 'true' );
              -- Add the new item --
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_NEW_REC', to_char(LN$Rec) );
              -- Set some properties --
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LABEL', to_char(LN$Rec) || ',' || :EMP.ENAME );
              If :EMP.JOB = 'MANAGER' Then
                Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FONT', to_char(LN$Rec) || ',Arial,bold,14' );
                Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FGCOLOR', to_char(LN$Rec) || ',0,0,255' );
              End if ;
              If :GLOBAL.I > 250 Then :GLOBAL.I := 5 ;
              Else  :GLOBAL.I := :GLOBAL.I + 5 ;
              End if ;     
              LC$C := To_Char(LN$Rec) || ','
                   || To_Char(255) || ','
                   || To_Char(255-:GLOBAL.I) || ','
                   || To_Char(255-:GLOBAL.I) ;    
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_BGCOLOR', LC$C );
              Synchronize;
         End if ;
    end;When-Create-Record trigger:
    declare
         LN$N    pls_integer ;
         LN$Rec  pls_integer := :system.cursor_record ;
         LC$C    Varchar2(15) ;
    Begin     
         if get_block_property('EMP',TOP_RECORD) > 1 Then
              LN$n := :system.cursor_record - get_block_property('EMP',TOP_RECORD) + 1 ;
         else
              LN$N := :system.cursor_record ;
         end if;
         If LN$N > 0 Then
              Set_Custom_Property('EMP.BT', LN$n, 'SET_LOG', 'true' );
              -- Add the new item --
              Set_Custom_Property('EMP.BT', LN$n, 'SET_NEW_REC', to_char(LN$Rec) );
         End if ;
    end;Post-Query trigger:
    declare
         LN$Pos  pls_integer ;
         LN$Rec  pls_integer := Get_Block_Property('EMP', CURRENT_RECORD) ;
         LN$Max  pls_integer := Get_Block_Property('EMP', RECORDS_DISPLAYED) ;
         LC$C    Varchar2(15) ;
    Begin     
         LN$Pos :=  LN$Rec - (trunc(LN$Rec/LN$Max) * LN$Max) ;
         If LN$Pos = 0 Then LN$Pos := LN$Max ; End if ;
         If LN$Pos > 0 Then
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LOG', 'true' );
              -- Add the new item --
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_NEW_REC', to_char(LN$Rec) );
              -- Set some properties --
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LABEL', to_char(LN$Rec) || ',' || :EMP.ENAME );
              If :EMP.JOB = 'MANAGER' Then
                Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FONT', to_char(LN$Rec) || ',Arial,bold,14' );
                Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FGCOLOR', to_char(LN$Rec) || ',0,0,255' );
              End if ;
              If :GLOBAL.I > 250 Then :GLOBAL.I := 5 ;
              Else  :GLOBAL.I := :GLOBAL.I + 5 ;
              End if ;     
              LC$C := To_Char(LN$Rec) || ','
                   || To_Char(255) || ','
                   || To_Char(255-:GLOBAL.I) || ','
                   || To_Char(255-:GLOBAL.I) ;    
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_BGCOLOR', LC$C );
              Synchronize;
         End if ;
    end;Don't forget to copy the multirecord.jar file in your /forms/java folder, then add it to the archive and archive_jini tags of your /forms/server/formsweb.cfg file.
    Enjoy it,
    Francois

Maybe you are looking for

  • Display attachment with GOS-Service direct

    Hello, In my application i´am using the generic object services by starting the service "view attachment-list" directly (in a 4.6C System). In transaction FB03 it is possible to show the original scanned document from the opt. archive in the  attachm

  • Autofill in Numbers 3.0

    I am sure I can't see it, but is there a way to autofill in numbers 3.0 ie: 11/10/2013 18/10/2013 25/10/2013 01/11/2013 08/11/2013 I used to be able to select the above and drag down and numbers 2.3 would fill in the dates correctly. So the next date

  • Date + Time question updating to a DATE field..

    Hi, I'm going crazy... MEETING_DATE is a DATE column in the DB :P40_MEETING_DATE is a TEXT FIELD with source MEETING_DATE :P40_MEETING_DATE:=to_char(to_date('02-OCT-2006 09:14:45 PM','DD-MON-YYYY HH:MI:SS PM'),'DD-MON-YYYY HH24:MI:SS'); Ultimately I

  • Referenced files

    I added about 10,000 referenced files, events, etc. to iphoto. They are not showing up in itunes shared photos. Doing something wrong? thanks

  • Problem  in Subtype Creation

    Prb 1  >    Whenver  we are creating the Subtype then it is   Compalsoury  that   to Copy the Standard Bus to  Customised Bus ( i.e  Z Bus )  and then Creating  Subtype ?   Or  We can  Directly   Create Subtype  for  Standard Bus  .    Please Provide