Set item property to false and true

when i set item to false and then set item property to true. The item is displayed but its gray out and not enabled. Am i missing something
Set_Item_Property('PUSH_BUTTON_SAVE',VISIBLE,PROPERTY_FALSE);
and then
          Set_Item_Property('PUSH_BUTTON_SAVE',VISIBLE,PROPERTY_TRUE);

Check the Forms online help on Set_Item_Property, near the bottom in the usage notes. Lots of things happen when you set visible to False:
Setting DISPLAYED to False:
  sets the Enabled and Navigable item properties to False
  sets the Updateable item property to False
  sets the Update_Null item property to False
  sets the Required item property to False
  sets the Queryable item property to False
So you may need to set more of them back to true in your code when you want to make it re-display.

Similar Messages

  • Why SAP B1 set all form item property of "Enabled" to true automatically?

    When I set some items property of "Enabled" to false in a user define form in the form load event.
    But now I click some editable item and type some thing in the edit text bar, I see all of uneditble item suddenly can be edit. It's not convenient, means we need to more coding work about this.

    Hi Alan,
    you may set the Form Property
    oForm.AutoManaged =False
    If it's True all item visible/enabled-propertys are dependent to form mode and they're always switching back to their defined state when the mode changes.
    If you want to use the oForm.AutoManaged =True then you can define exactly the behavior of the items in each mode:
                Dim modeMaskFind As Integer
                Dim modeMaskOk As Integer
                Dim modeMaskAdd As Integer
                Dim colUid As String
                Dim oCbx As SAPbouiCOM.ComboBox
                oForm.AutoManaged = True
                oForm.SupportedModes = _
                         SAPbouiCOM.BoAutoFormMode.afm_Ok Or _
                         SAPbouiCOM.BoAutoFormMode.afm_Add Or _
                         SAPbouiCOM.BoAutoFormMode.afm_Find
                modeMaskFind = SAPbouiCOM.BoAutoFormMode.afm_Find
                modeMaskOk = SAPbouiCOM.BoAutoFormMode.afm_Ok
                modeMaskAdd = SAPbouiCOM.BoAutoFormMode.afm_Add
               With oForm.Items
                    .Item("CBX_YEAR").SetAutoManagedAttribute( _
                           SAPbouiCOM.BoAutoManagedAttr.ama_Editable, modeMaskAdd, _
                           SAPbouiCOM.BoModeVisualBehavior.mvb_True _
                    ) ' editable in AddMode
                     .Item("CBX_YEAR").SetAutoManagedAttribute( _
                             SAPbouiCOM.BoAutoManagedAttr.ama_Editable, modeMaskFind, _
                             SAPbouiCOM.BoModeVisualBehavior.mvb_False _
                     ) ' NOT editable in FindMode
                    .Item("CBX_YEAR").SetAutoManagedAttribute( _
                           SAPbouiCOM.BoAutoManagedAttr.ama_Editable, modeMaskOk,  
                           SAPbouiCOM.BoModeVisualBehavior.mvb_True _
                     ) ' editable in OKMode
                    .Item("CBX_YEAR").AffectsFormMode = True
                End With
    Cheers,
    Roland

  • Set item property

    Dear All
    Any one tell me. Can i use
    SET_ITEM_PROPERTY('ALLAWANCES.TXT_TEST', VISIBLE, PROPERTY_TRUE);
    in when list change trigger
    thanks in advance
    Regards,

    Look up Set_item_property in the on-line help, at the very bottom, the section titled "Propagation of Property Changes". When you set Visible to false, Forms also sets these False: Enabled, Navigable, Queryable, Updateable and Update_Null.
    So along with setting Visible to True, you also should set Enabled=True, Navigable=True, Queryable=True and Updateable=True, in that order.

  • Why Does Java not see 0 or 1 as false and true

    hello,
    all other languages i have worked with see a 0 and 1 as a true or false value
    for instance...in perl this would be the case
    if ( 0 ) same of javas if ( false )
    or
    if ( 1 ) same as javas if ( true )
    same with javascript
    im am asking if there is a way in java to use the boolean type or object in this way. seems strange to me to store "true" or "false" as a varchar in a database when with all other languages you can store 0 or 1...faster to store int's

    Many of the differences the creators of Java made in the language were to address what they saw as problematic features in other languages. This is one of those cases.
    How many nasty, hard-to-find bugs in C or Perl do you think have been caused by this kind of mistake: int cnt ;
    cnt = howMany() ;
    if (cnt = 0)      /* whoops: should be == */
    [/code                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Set auto commit to false

    Hi
    I have problems with multiple updates causing a Block in the database.In order to solve this I am trying to set commits to false and true explicitly before and after updates.Since I am performing updates within a loop I would like to know if I need to explicitly inside the loop.
    For eg can i do something like this
    for (int i = 0;i < part_Vect.size() ;i++) {
    conn.setCommit(false);
    sql = Update stmt;
    stmt.executeUpdate(sql);
    conn.setCommit(true);
    } // end loop
    or should i set the commits outside the loop
    Thanks
    Arn

    Most of the time I'd put the commit related stuff outside of the loop to reduce the number of database calls and guarantee data integrity. There are a couple of factors to consider though.
    1. Whether you want all the updates to be committed in one transaction. If there is a failure in the middle of your operation, is it ok if some updates have been performed and others have not. Can you restart and recover correctly? If you need a single transaction, then the commit code should be outside of the loop.
    2. The number of updates. The more updates there are in a transaction, the more database locks will be required and the greater the performance hit. The limit depends on your configuration and access needs. If there are several thousand updates and many other users who need to read the data, a different design may be required.

  • In SSRS , after exporting report in excel,wrap text property for cell and freeze column for SSRS table header not working in Excel

    I am working no one SSRS my table headers are freeze cangrow property is false and my report is working perfect while rendering data on RDL and i want same report after exporting in Excel also , i want my table header to be freeze and wrap text property
    to work after exporting in my report in excel but its not working ,is there any solution ? any patch ? any other XML code for different rendering ? 

    Hi Amol,
    According to your description, you find the wrap text property and fix column is not working after exporting into Excel. Right?
    In Reporting Services, when exporting to excel file, it has limitation for textbox.
    Text boxes are rendered within one Excel cell. Font size, font face, decoration, and font style are the only formatting that is supported on individual text within an Excel cell.
    Excel adds a default padding of approximately 3.75 points to the left and right sides of cells. If a text box’s padding settings are less than 3.75 points and is just barely wide enough to accommodate the text, the text may wrap in Excel.
    In this scenario, it supposed to be wrap text unless you merge cells. If cells are merged, word-wrap does not work correctly. If any merged cells exist on a row where a text box is rendered with the
    AutoSize property, autosize will not work. For the Fix Data Property, it can't be working in Excel. These are features when exporting to Excel. We can't change it because it's by design.
    Reference:
    Exporting to Microsoft Excel (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Gettng item property - prompt visual attribute

    have set the prompt visual attribute to 'ACTIVE_COL'
    SET_ITEM_PROPERTY ('TEST',PROMPT_VISUAL_ATTRIBUTE, 'ACTIVE_COL')
    but when I try to get the value back it return 'CUSTOM'
    GET_ITEM_PROPERTY ('TEST',PROMPT_VISUAL_ATTRIBUTE)
    Why???

    I have overcome this problem by setting item property in form design to 'ACTIVE_COL' then change it back to 'DEFAULT'
    it works fine.

  • Item property

    hi can someone help me !!!
    I have some 100 records in a table.I have created a form to display these records.
    Now say I want the records with the previous years 2005-06 to be shown in the form as greyed out or not enabled but visible.At the same time the records with the year 2007-08 in the same form should be highlighted.
    please let me know how to use the set item property or set item instance property for the above records.
    Thanks

    When I put this trigger in Post query
    all the records are disabled.
    the current year record to be enabled.
    Please suggest it is urgent.
    Post Query:
    if :mhr_expenses.exp_fyear = '2005-06' then
         set_item_property('exp_fyear',enabled,property_false);
         set_item_property('exp_slno',enabled,property_false);
         set_item_property('exp_particulars',enabled,property_false);
         set_item_property('exp_value',enabled,property_false);
    elsif :mhr_expenses.exp_fyear = '2007-08' then
         set_item_property('exp_fyear',enabled,property_true);
         set_item_property('exp_slno',enabled,property_true);
         set_item_property('exp_particulars',enabled,property_true);
         set_item_property('exp_value',enabled,property_true);
    end if;

  • Setting Sinleton property of tree

    How we can set Singleton property to FALSE of a context value created for a tree node??
    Thanks & Regards
    Vipin

    Hello Vipin
    Do you mean Singlton property for recursion node in the context? It's always FALSE.
    Best Regards
    Sergei

  • How to personalize and set rendered property false to poplist

    HI,
    could u please tell me that How to personalize and set rendered property false to poplist
    when poplist was developed initially it's user personalization property set as FALSE, that is why when i tried to personalize and set rendered property as flase, i could not able to find the property as rendered for that perticular item.
    Please provide me step by step process.
    Thanks,
    Ram.

    Hi Ram,
    you can do set rendered false through personalization as well as co extension.
    if you go for persoalization set the profile option Personalize Self Service Definitions and clik on personaliztion link
    then search for item and set its rendered property to false.
    If you go for co extension capture the poplist bean and and setRendered(false) to that field.
    If you are feeling difficulty by personalizatoin better go for CO extension.
    Thanks
    Amit Jaitly

  • Get value from table record and set Disabled property...

    Hi! I have table in my JSPX page. I search for records and then press on one of the records with right click, see: http://my.jetscreenshot.com/2677/20120203-fas1-30kb
    I set disabled property like this of my commandMenuItem:
    #{row.GenResGrupa != 'true'}But as You can see from my picture above, the disabled property do not work. Where I am wrong with my code:
    <af:commandMenuItem text="#{sampleBundle.pases}"
                                                  id="commandMenuItem1"
                                                  action="adfMenu_pasesDati"
                                                  actionListener="#{bindings.setCurrentRowWithKeyValue.execute}"
                                                  disabled="#{row.GenResGrupa != 'true'}"/> Please correct me! If You need some other information, please let me know.
    Best regards, Debuger!

    Dear fedor! Popup is in facet contextMenu. contentDelivery="lazyUncached" for my popup:
    <af:popup id="p1" contentDelivery="lazyUncached">
                            <af:menu text="menu 1" id="menu1">
                              <af:commandMenuItem text="#{sampleBundle.pases}"
                                                  id="commandMenuItem1"
                                                  action="adfMenu_pasesDati"
                                                  actionListener="#{bindings.setCurrentRowWithKeyValue.execute}"
                                                  disabled="#{row.bindings.GenResGrupa.inputValue != 'true'}"/>
                            </af:menu>
                          </af:popup>In my pageDef I have this code:
    <bindings>
        <tree IterBinding="LVAIMeklesanaIterator" id="LVAIMeklesana">
          <nodeDefinition DefName="kokaugi.model.view.LVAIMeklesana"
                          Name="LVAIMeklesana0">
            <AttrNames>
              <Item Value="Accename"/>
              <Item Value="LvaiKolekcijaPk"/>
              <Item Value="Accenumb"/>
              <Item Value="AvsGrupa"/>
              <Item Value="Cropname"/>
              <Item Value="EkspGrupa"/>
              <Item Value="GenResGrupa"/>
              <Item Value="Genus"/>
              <Item Value="Species"/>
              <Item Value="Sinonims"/>
            </AttrNames>
          </nodeDefinition>
        </tree>
        <action IterBinding="LVAIKolekcijaDatiIterator"
                id="setCurrentRowWithKeyValue"
                InstanceName="KokaugiModuleDataControl.LVAIKolekcijaDati"
                DataControl="KokaugiModuleDataControl" RequiresUpdateModel="false"
                Action="setCurrentRowWithKeyValue">
          <NamedData NDName="rowKey" NDValue="#{row.LvaiKolekcijaPk}"
                     NDType="java.lang.String"/>
        </action>
      </bindings>And disabled property is like this:
    disabled="#{row.bindings.GenResGrupa.inputValue != 'true'}"But it is still do not working. I am wrong somewhere? Maybe the only way to correct my problem is like Hohn said?
    Best regards, Debuger!

  • Forms 10g : How to set the Database Item property for an item dynamically ?

    Hello all,
    I have a requirement where I need to set the database item property of an item to TRUE/FALSE
    dynamically at runtime based on certain conditions.
    Earlier, in forms 6i I've used,
    Set_Item_Property (<item_name>, DATABASE_ITEM, PROPERTY_TRUE);
    But in Forms 10g it doesn't recognize this Database_Item property and gives a compilation error.
    Have I overlooked something or has this property become obsolete in Forms 10g ?
    If obsoleted what is the replacement property ?
    Regards,
    Sam

    Some options:
    1. Create a database-view, including the "real" column in databases where it exists and a "dummy"-column in databases where it doesn't exist.
    If that's not possible,
    2. set database="No" for your item and
    -- create a POST-QUERY-trigger which reads the data for that column from the database, if the column exists, and
    -- create a ON-UPDATE-trigger which includes an
    UPDATE_RECORD;
    UPDATE THETABLE SET
      THECOLUMN=thevalue
    WHERE  ROWID=:THEBLOCK.ROWID;3. Base your block on either a select-from-clause, a ref-cursor or a procedure to adjust he query-part,, for saving use a procedure.

  • Set 'IgnoreUnrelatedDimensions' property to True for a single attribute

    Currenlty the 'IgnoreUnrelatedDimensions' property is set to false for a particular measure group. And because of this the measure value is null againist all unrelated dimension attributes.
    There is a requirement to show the measure values against one of the attributes within unrelated dimension, while it most remain null against all the other attibutes.
    Is this anyway possible ?
    Saurabh Kamath

    Thanks Pritam.
    I think you didn't get my question.
    For Example consider AdventureWorks cube, in case of 'Sales Targets' measure group IgnoreUnrelatedDimensions property is set to false and because of this when we look at the value of '[Measures].[Sales Amount Quota]' against any attribute of 'Geography'
    dimension (unrelated dimension) the result is null. Or even Category attribute from Product dimension.
    If I switch IgnoreUnrelatedDimensions property to "True", I get to see measure values for all the attributes of 'Geography' dimension and attributes from other unrelated dimension as well. But I just want have a look at '[Measures].[Sales Amount
    Quota]' against Country attribute of Geography dimension.
    Answer:
    Inclusion of a simple script command shown below will do the trick.
    Scope([Geography].[Country].Children,[Measures].[Sales Amount Quota]);
    This = [Geography].[Country].CurrentMember.Parent;
    End Scope;
    So [Measures].[Sales Amount Quota] value is seen against Country attribute of Geography dimension even though there is no relationship between 'Geography' dimension and 'Sales Targets' measure group, and IgnoreUnrelatedDimensions property
    of 'Sales Targets' measure group is set to false.
    Saurabh Kamath

  • Set Synchronize with Item property at runtime in Forms

    Hi,
    We have a requirement to set the "sychronize with item" property to null for one of the fields of seeded form during run time (this is to avoid modifying the seeded form which has the synchronize property of field A set to field B. We are planning to do this change in CUSTOM.PLL). I couldn't find any property in "APP_ITEM_PROPERTY2.set_property" which can suffice my requirement. I am working on Forms 10g.
    Please let me know if anybody has worked on similar requirement.
    Thanks,
    Shree

    Hello.
    You can perform this by using:
    set_tab_page_property('Tab_page_name', label,'your_desire_label');
    and for item set_item_property.
    More details on these built-ins and also some example can be found in Forms Builder Help.
    Regards,
    Alex
    If someone's answer is helpful or correct please mark it accordingly.

  • False 1 time, and true everytime

    hi, i have this problem...
    initially, i want my program to run the ClusterArrayIndex + 1 = ClusterArrayIndex,
    then I only want to use that same function ClusterArrayIndex + 1 = ClusterArrayIndex ONLY WHEN ROW = 64.
    with the current program, i am getting all the reading except the first one...
    my question is..
    is there any better program way to do this?
    how do i set up an intial condition that is only FALSE FOR THE FIRST TIME AND TRUE EVERY OTHER TIME..
    Message Edited by krispiekream on 03-05-2008 12:52 PM
    Best regards,
    Krispiekream
    Attachments:
    truefalse.PNG ‏12 KB

    Just do a logical ["first call?" OR "row=64"].
    (In the picture you attached,  both cases have the same code, thus you could safely delete the case structure and nothing will change )
    You are also making the mistake of abusing local variables like classic variables in text based programs. This just breaks dataflow, may cause race conditions, and causes additional data copies in memory. Typically you would just keep the value in a shift register. Now you often don't even need an associated control or indicator. (see image above)
    Message Edited by altenbach on 03-05-2008 11:23 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    IncrementIndex.png ‏8 KB

Maybe you are looking for

  • Phone link updater is out of date

    does anyone know where i can get a phone link updater, that is more recent than 2005 and will let me connect my zire 72 to my samsung e900? and on a side note, has anyone else noticed that when you register on palms very own forums and it asks you wh

  • Touch Screen wont work after i plug into a charger...​?

    Anyone else have this problem.. Its very annoying. I have to take the battery out of the phone while its on after every time i charge it...ug. 

  • Changes to xmp:CreateDate not reflected in exif:DateTimeDigitized

    Hi, I've been playing around with the xmp toolkit sdk recently and tried to find out how the different date/time properties are related to each other. The metadata working group's guidance (http://www.metadataworkinggroup.org/pdf/mwg_guidance.pdf) ha

  • Mail does not respond!

    When I open it, it is checking for e-mail over and over again. I have already waited for long time but not finishing. It is unable to stop unless I force quit it. What's wrong with it? Anyone can help? Thanks

  • How do I go from QTPro to iDVD?  Powermac G-5 with os X 10.5.8

    How do I burn DVDs from QTPro?  DVDs made from iMovie are of poor quality.  Apple Store "Genius" suggested exporting from iMovie to QTPro, and then to iDVD.  Upgraded to QTPro but can not find a way to burn a DVD from there.