How to disable a single row of a multi-line text item

I am trying to disable a date and a price on each row where the date is current or in the past (on theory the user can't update reference data that is in effect or past, only data which is not yet in use). It appears that forms 6i will make this an all-or-nothing matter, all rows (for a given text item) are enabled or all rows are disabled - no mixing! I am hoping forms is smarter than that, can someone give me knowledge? note: this is not a problem of enabling or disabling at runtime, I have that figured out, only row-specific application of the concept. here is my code:
for c1rec in get_fees loop
:cfee_def_dtl.service_fee := c1rec.service_fee;
:cfee_def_dtl.eff_date := c1rec.eff_date;
go_item('cfee_def_dtl.holdx'); -- inncouous field, not visible to user, but navigable
IF trunc(c1rec.eff_date) <= trunc(sysdate) THEN
set_item_property('cfee_def_dtl.eff_date',ENABLED,PROPERTY_FALSE);
set_item_property('cfee_def_dtl.service_fee',ENABLED,PROPERTY_FALSE);
END IF;
next_record;
end loop;

Hi,
move the logic in New-Item-Instance trigger and based on your condition
SET_ITEM_INSTANCE_PROPERTY update_allowed as property_false/true.
Monica

Similar Messages

  • How do I increase the leading in a multi-line text box?

    Is this possible?
    I did find this one posting from a few years ago where someone was asking a similar question:
    http://forums.adobe.com/thread/286972
    Was this feature ever added? If not - how can I make the code work posted in reply to that post?  Just hiding the lines would be a good alternative, I think. I tried adding the code to my existing PDF but it doesn't appear to do anything, the lines are still visible when you type into the field.

    No, leading control has not been added and it probably never will be.
    The code in that other thread is not complete since the functions that he's calling are not shown. They are not built-in. Here is a link to a document with a multiline field that behaves this way: https://workspaces.acrobat.com/?d=AG6oZ3bi3DYHokxDPeWN7A
    There are several small scripts in various events that control the behavior.

  • How to disable a Entire row in a Matrix in Find Mode (User Form)

    Hi,
    How to disable a Entire row in a Matrix in Find Mode (User Form)
    Regards
    Jambu

    Hi,
       Iam using Bubble event = false in click event but the matrix row
    is allow to edit but we cant save the document in Find Mode That is fine.
    What is my actual requirement is In find mode matrix Row not allow to enter the data .
    For examble In ADD mode i enter the data in Three rows (Item Section - Matrix) and
    save the document. Whwn i open the document in find mode the three row is not allow
    to editable like the same functionality of PO, sales Order, etc ..
    Regards
    Jambu

  • JOptionPane-how to disable a single choice

    Hi
    Can someone please guide me how to disable a single hoice in the JOptionPane class.what i want is like this
    i the dropdown box i have five choices
    a
    b
    c
    d
    e
    now i want that choice b should not be highlighted and the user should not be able to select choice b but he should be able to see it.I don't have a clue how to do this,any help is welcome

    I'm thinking you might end up having to implement your own
    ListSelectionModel, perhaps extending DefaultListSelectionModel, and
    have it ignore the items you don't want selected. You would then need
    to get the list from the combo box and set this selection model on that
    list. Unfortunately, looks like you'll have to go in through the L&F
    classes to get at this list.
    : jay

  • How to highlight the whole row of a particular line item of sale

    How to highlight the whole row of a particular line item of sales order depending on condition?
    Please help its urgent..
    Looking forward your reply.
    Moderator message: please do more research before asking, show what you have done yourself when asking, do not flag posts as "urgent".
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    Edited by: Thomas Zloch on Aug 9, 2011 9:30 AM

    Any ideas on what would cause this NOT to work? I added this row right after the table is created and populated and it is still not highlighted when I enter the form. The snippet of code that does this is:
    MyTableModel modelS = (MyTableModel)dataModel.get("S");
    jTable1 = new JTable(modelS);
    jTable1.setRowSelectionInterval(0,0);MyTableModel is this:
    class MyTableModel extends DefaultTableModel {
      public MyTableModel(Object[] columnNames, int numRows) {
        super(columnNames, numRows);
      public boolean isCellEditable(int row, int column) {
        if (TableKey == 'S') {
          if (column == 6) {
            return false;
        if (TableKey == 'O') {
          if (column == 0 || column == 4 || column == 5) {
            return false;
        if (TableKey == 'P') {
          return false;
      return true;
    }Can anyone help? Thanks.
    Allyson

  • How to create a single 'not null ' validation for all the items in a page ?

    Hi everyone ,
    how to create a single 'not null ' validation for all the items in a page ? I have many textfields . Instead of creating 'not null' validation for each item , I would like to create a a single validation control that will serve the purpose
    Thanks & Regards
    Umer

    Nice1 wrote:
    bob , as u said I have done the following :
    1) under create button , there are 9 items and for each item I have set Required to 'Yes'
    2) under delete button , there is 1 item and have set Required to 'Yes' for the item
    3) defined page validation for 9 items under 'create ' button and have set it to fire when 'create ' button clicked
    4) defined page validation for 1 item under 'delete ' button and have set it to fire when 'delete ' button clicked
    now , when I click 'create' button it even shows for the item under 'Delete ' button that it is a required itemSorry, I didn't see this note. The required template won't work, there is no way to attach it to the button.
    The best solution is as the reply a couple replies up
    Create 2 page type validations as a PL/SQL with code
    1st validation
    :P1_ITEM1 IS NOT NULL and :P1_ITEM2 IS NOT NULL ...... and :P1_ITEM9 IS NOT NULL  include all 9 items
    Set the When Button Pressed to the CREATE button
    2nd validation
    :P1_ITEM10 IS NOT NULL
    Set the When Button Pressed to the DELETE buttonI think that's going to be the easiest way to do it.
    Edited by: Bob37 on Apr 27, 2012 12:02 PM

  • How to make fields required in an updateble multi line form?

    How to make fields required in an updateble multi line form?

    You need to create a validation item that is triggered when the user clicks the submit button.
    Set the validation type to "Function Returning Error Text".
    Then add your validation into the "Validation Expression 1" field. Something like:
    BEGIN
    FOR I IN 1.. HTMLDB_APPLICATION.G_F02.COUNT LOOP
    IF HTMLDB_APPLICATION.G_F02(I) IS NULL THEN
    RETURN 'Please enter in a value for xxxxx on line ' || TO_CHAR(I,'0');
    END IF;
    END LOOP;
    RETURN NULL;
    END;
    As long as the function returns a string, an error is generated - as there is no single field where this error can be displayed, it will need to be displayed "On Error Page".
    If the return value is NULL, then the fields are valid and the submit process can continue.
    Andy

  • How to change the "name of column" property of an text item in runtime?

    How to change the "name of column" property of an text item in runtime?
    I look the properties of items in help and found nothing about this!
    It's possible?

    Hi,
    an other solution is change the block property QUERY_DATA_SOURCE_TYPE from "Table" to "Sub-query" , than change at run time the property QUERY_DATA_SOURCE_NAME.
    First create block and add items
    The QUERY_DATA_SOURCE_NAME will be for ex. "Select 'A' as col1, 'B' AS col2, 'C' as col3 from dual"
    Set into items the column name property to col1 , col2 ...
    At run time change the query to "Select 'Z' as col1, 'X' as col2 , 'Y' as col3 from dual"
    in this way you can change the source of column value.
    Caution because if you change value type from varchar2 to date you must cast date into varchar2.
    May be that this way is valid only for view data not for insert-update, i don't remember.
    bye
    Message was edited by:
    Killernero

  • How do you display multi line text

    Hi
    How does one display multi line text? I would like to display address information on the screen so that the user can select it and copy/paste it into another application (ms word).
    I have the address information as separate columns (address1, address2, city, province, postal code) so I've changed the query on my view object to add it as address1 || chr(10) || address2 || chr(10) || city ....
    If I display it on the page as an output text, it all displays as one line (okay, the chr(10) thing did not work but that's beside the point).
    In general, is there a way to display multi line text? What component is suitable for this, if there is one?
    Thanks

    You can use normal outputText components in a panelGroupLayout (vertical layout) and add each attribute to it. The remove the labels or set the components to simple. You can then mark the data in the browser and use normal copy&paste to transfer the data.
    If you want to output longer text with line breaks you can use an outputText with escape=false and use the br html tag to generate a line break;
    <af:outputText escape="false"
    value="+++++++long<br>test<br> this is a long text in multiple lines" id="ot10" truncateAt="#{viewScope.ToggleBean.truncateLength}"/>Timo

  • How to add A single row at the middle of the table in a Webi report

    Hi,
         I created a Webi report using Universe(Created universe using bex query).Now i have a requirement to display a row at the middle of a report. Can you please tell me ,how to add a sigle row at the middle of a Webi report.
                                                    Thanks in advance
    Regards
    Monika

    Hi Monika,
    It is not really possible to add a row (I assume you mean of unrelated data) to the middle of a table in a report. You can add a new table with a single row between two tables. For instance you could add a new one row table, or even single cells which are positioned relatively between two tables. Possibly a block on top of another. But this gets tricky.
    Can you explain in more detail what you are trying to do?
    Thanks

  • How to get a single row column from a viewobject in java?

    I have a class file that goes out and gets a viewobject and sets its where clause
    this is it:
    vcRow = vc.createViewCriteriaRow();
    vcRow.setAttribute("LogonId", "='" + strPcis_Login.toUpperCase() + "'");
    vc.addElement(vcRow);
    vo.applyViewCriteria(vc);
    vo.executeQuery();
    I know this working cause I can watch it in debug..
    but now the problem.
    I've looked in the docs and don't see how one can pull the value of the row it found and place it in a uix page in a textinput area
    how can I get a single row column, in this case the UserName that is in the view object to a string and then place it into my
    uix page? I've looked and looked and don't see a method for this.
    is there a way to take the oracle.cabo.servlet.Page and set a textinput with a viewobject get method?
    what way do you do this and where is it documented?

    is there a way to take the oracle.cabo.servlet.Page and set a textinput with a viewobject get method?
    what way do you do this and where is it documented? What you can do is get the value from your VO and set it somewhere that UIX can data bind to -- as a Page proprety, on HttpSession, etc. This is documented in Chapters 4 (Data Binding) and 5 (Controller) of the UIX Developer's Guide.
    To set a property, you use Page.setProperty(String key, String value). Then, in your UIX file, to make a textInput that has the value pulled from a given page property, use:
    <textInput data:text="key@ctrl:page" />
    -brian
    Team UIX

  • How to update a single row of data table

    How we can update a single row of the data table by clicking the button in the same row.
    Thanks in Advance.

    Hi!
    What do You mean 'update'? Get fresh data from DB or change data and commit it in DB?
    If commit, try to read here:
    http://developers.sun.com/jscreator/learning/tutorials/2/inserts_updates_deletes.html
    Thanks,
    Roman.

  • How do I create a multi-line text box?

    I have a PDF that was tradionally printed and filled out by hand, and am trying to convert to an e-version.
    Everything is working great but I can't figure out how to make this one thing work. For example I have a section like this:
    More Info: _______________
    How can I make it so when one starts typing in the "More Info" section, their response continues from the 1st line to the 2nd, to the 3rd, etc.?

    You can set a text field to be multi-line and tick off the option to scroll
    long text to have it automatically wrap, but you'll have a problem with the
    first partial line, since form fields can only be rectangular. Another
    problem might be the lines themselves, since you'll have to use a font size
    that will fit them exactly, or it will look odd. I would suggest getting
    rid of those lines altogether. They are not needed when filling in the form
    electronically. It's a relic from printed out forms where people had to
    hand-write their answers.

  • How to disable the first row of an ALV Grid?

    Hi All,
          I am working on a module pool programme. I am displaying ALV grid. I have to give some default values in the first row and disable it. I have to disable the third column and fourth row value. How can i achieve this?
    Help will be appreciated.
    Thanks,
    Ibrahim.

    here is the code i have written....but its not working...
    TYPES : BEGIN OF tp_grid,
            fname(25)   TYPE c,
            reqd,
            seqno       TYPE n,
            tl_styl TYPE lvc_t_styl,
            edit,
            END OF tp_grid.
    DATA : wl_styl TYPE lvc_s_styl.
    DATA : wl_layout TYPE lvc_s_layo.
    DATA : lt_celltab TYPE lvc_t_styl.
      READ TABLE tl_grid INTO wl_grid INDEX 1.
      wl_styl-fieldname = 'TAG NUMBER'.
      wl_styl-style = cl_gui_alv_grid=>mc_style_disabled.
      INSERT wl_styl INTO TABLE lt_celltab.
      INSERT LINES OF lt_celltab INTO  wl_grid-tl_styl index 1.
      MODIFY tl_grid INDEX 1 FROM wl_grid.
      wl_layout-stylefname = 'TL_STYL'.
      CALL METHOD l_initgrid->set_table_for_first_display
        EXPORTING
          is_layout                     = wl_layout
        CHANGING
          it_outtab                     = tl_grid
          it_fieldcatalog               = tl_init_fcat
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4.
    ENDFORM.                    " display_initgrid
    Help will be appreciated....
    Thanks,
    Ibrahim

  • How to disable a particular row in a JTable

    How can a disable only a particular row/column in a JTable.
    I am trying to create an XML Notepad type of application for which I need the row which contains the root element or any element which has a child element to be disabled. How can I achieve this??
    I would be grateful for replies.

    Hi,
    Create your own class which extends TableModel and in that class u override the method
    public boolean isCellEditable( int row, int col)
    As u know the row and col which u want to disable hard code those values in the method.
    Like
    public boolean isCellEditable( int row, int col)
    if( row == 2 and col == 1 )
    return false
    else
    return true
    Hopefully this provides u with a solution.
    Cheers :)
    Nagaraj

Maybe you are looking for

  • Name of attachment PFD form, while sending it by email?

    after displaying PDf form on screen (preview) , we send it by EMAIL from ICON on screen, the email is creating ,but the name of the attachment PDF file, is internal sap name. we want to control this name, and make it our name (with some meaning) how

  • ALV list with 2 header lines

    Dear gurus, Need help in displaying ALV list report. the below report is an example of AR aging report. The report output is as below: DEC NOV OCT SEP 0-30 31-60 61-90 90+ xx xx xx xx SUBTOTAL The first 2 lines are the list header. While the 'x' is t

  • InDesign Cs4 Bleed/Slug not scaling with reduced print?

    Maybe I'm crazy, but I feel certain that when I've printed my layouts in the past, Indesign scaled the bleed and slug along with the rest of the page when I printed at a reduced size. Today, I can't get the bleed or the slug to output in relative sca

  • Seeking help with an InDesign installation

    I have successfully installed CS6 onto my virtual machine. The lone holdout is InDesign...naturally, it's the program I use and need the most. I have tried to search through the various troubleshooting recommendations on the Adobe site, to no avail.

  • Over Delivery Block

    Respected Friends, i have Scenario that my Organization Want to Block Over Delivery Mean That: the Quantity in the Sales Order Must be equal to Delivery Quantity. For Example: Sales Order Quantity : 10 Kg Delivery Quantity : Must Not Be be greater 10