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.

Similar Messages

  • Best Practice: Dynamically changing Item-Level permissions?

    Hi all,
    Can you share your opinion on the best practice for Dynamically changing item permissions?
    For example, given this scenario:
    Item Creator can create an initial item.
    After item creator creates, the item becomes read-only for him. Other users can create, but they can only see their own entries (Created by).
    At any point in time, other users can be given Read access (or any other access) by an Administrator to a specific item.
    The item is then given edit permission to a Reviewer and Approver. Reviewers can only edit, and Approvers can only approve.
    After the item has been reviewed, the item becomes read-only to everyone.
    I read that there is only a specific number of unique permissions for a List / Library before performance issues start to set in. Given the requirements above, it looks like item-level permission is unavoidable.
    Do you have certain ideas how best to go with this?
    Thank you!

    Hi,
    According to your post, my understanding is that you wanted to change item level permission.
    There is no out of the box way to accomplish this with SharePoint.               
    You can create a custom permission level using Visual Studio to allow users to add & view items, but not edit permission.   
    Then create a group with the custom permission level. The users in this group would have the permission of create & add permission, but they could no edit the item.
    In the CodePlex, there is a custom workflow activities, but by default it only have four permission level:
    Full Control , Design ,Contribute and Read.
    You should also customize some permission levels for your scenario. 
    What’s more, when use the SharePoint 2013 designer, you should only use the 2010 platform to create the workflow using this activities,
    https://spdactivities.codeplex.com/wikipage?title=Grant%20Permission%20on%20Item
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How do I change the properties of all my highlight boxes at the same time?

    How do I change the properties of all my highlight boxes at the same time?

    Hello,
    Which version of Captivate do you use, please?
    Lilybiri

  • How can we change the properties of a seeded item in OAF !!!

    Hi All Gurus!
    I have a seeded item (Button 'Apply') on an Add attachement page provided by Oracle in Self Service Web Module. Oracle documentation says this:
    If you want changes to the Attachments table or page to commit automatically, without requiring a user to select Apply in the base page, you can turn on "auto-commit" by setting the Automatic Save property to True for the attachmentLink, attachmentTable, or attachmentImage item.With "auto-commit" turned on, each action ("Add", "Update", "Detach") performed by the user in the Attachments table or page is automatically committed.
    Q1) How we can see the properties of the seeded items?
    Q2) How we can turn on the personalization pencil button of an item that is disabled by Oracle development team?
    Please let me know how we can achieve this through self-service personalization. Any light on this.
    Thanks in advance!
    John
    Message was edited by:
    jtom

    You donot need to do anything on the Add Attachment page. The autoCommit feature is exposed as a property on the Attachment bean. You need to extend the controller in the base page where the attachment Image, Link is present and get a handle to the attachmentBean and call setAutoCommit(true) which will enable automatic saving.Use personalizations to modify the controller class property on the base page. You can later choose to remove the Save button on base page using personalization.

  • 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)...

  • How can I change session properties in Audition after omf import.

    After importing an omf. Everything is imported correctly. But the session properties do not match. I would like to change it back to 24bit. How can I change the session properties such as bit depth, without having to create a new session? There used to be a advanced session properties window.

    When you save the session in Audition, if you use 'Save As' then you'll get options to set the save defaults to whatever you want.

  • How To dynamically change values in custom form

    Hi,
    Requirement is to change values in custom form dynamically that are passed by Global variables through standard form .
    I have used forms personalization to call custom form and passing some parameters to custom form using global variables.
    Now i have to change values displayed in custom form(already opened) when user moves from one record to another record.
    I cannot change the standard form.Only i have write logic in custom form that dynamically changes values as user moves from one record to another in standard form.
    Global variables values will be different for each record.
    Pls let me know how i can achieve this.
    Regards
    Udit

    Udit,
    Your question should be posted to the Enterprise Business Suite (EBS) forum. This forum is dedicated to non-EBS forms development.
    Craig...

  • How to dynamically  change start time in calendar

    Hi !
    Is it possible dynamically change start time attribute in calendar. Let's say I'd like to have start time = sysdate through 24 for display

    Hello Johann,
    If you created the calendar region using the wizard, it should have created a page item 'P#_CALENDAR_DATE' (# being your page number). Look at the Default setting for that item and it will likely be:
    return to_char(localtimestamp,'YYYYMMDD');This is the default date for the calendar (current date), in 'YYYYMMDD' format. Any code that sets this item to a date in 'YYYYMMDD' format should tell the calendar to display the calendar for that date. For example, I just changed it to this:
    return '20080101';And it displayed the calendar for that January, 2008. To test further I created a submit button and a branch, and in that branch I specified to set my P1_CALENDAR_DATE item to 20080601 and when I clicked the button it redisplayed the calendar for June, 2008.
    Hope this helps,
    John

  • How can we change item category  customisation

    How can we change the nature or customisation of item catgeory L,S,T etc.
    Can any body help with the path.

    Hi,
    In MM, Item category customization can not be changed.  It comes with SAP and doesn't allow us to change.  Only a combination of "item category and account assignment category" can be changed. 
    Regards

  • How we can change items in TO be Approved status to Appproved status in CCM

    Hi,
    Is there any method to change items in "To be approved status" to "Approved" in procurement catalog in CCM1.0?
    Thanks

    Hi Prithwiraj
    The simple answer is you approve them! You should assign yourself as an approver in the catalog (Under tab 'Schema' -> Manage Approvers), your user should also then have the role /ccm/catalog_approver, once they do, the link will appear on the catalog home page to approve catalog entries, you should then go in to the relevent catalog and select Find -> Items for approval -> Select all -> Approve
    Hope this helps.
    Jason

  • How to dynamically change data type

    Hi 
    Let say I have 1 byte in the folowwing hex format (1F )
    Then if I say convert it to 24 bit then the number should become 1F 00 00 and if I say convert it 32 bit the number should become 1F000000
    Could you please help me to implement this in LabVIEW ?
    Thanks

    Ah right, now I see why you mentioned dynamically changing the data type - LabVIEW is a strictly typed language which means you must end up with one of the numeric formats in LabVIEW (with 64-bits being the largest). If you're going to have more than 8 bytes, I'm not sure what the solution would be, if you're going to have 8 bytes or less then I would just assume the worst case and convert/fit the numbers into a U64.
    Here's an example:
    I am starting off with an empty U64, taking each input byte and shifting the U64 left by one byte and then adding the input byte.
    I guess that leads to my next question - what are you going to do with the numbers? Would having an array of U8's or converting the bytes to a character string not be better? If you have a string or array these can have a dynamic length so you can more easily manipulate the data (e.g. by performing string/array indexing functions).
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • How can we change Item per Sales Unit if define Wrong

    Hi all,
         I facing an item that the Item per Sales Unit in Item Master Files had define in wrong quantity. Initialize quantity for Item Per Sales Unit is 10. After they said want change to 8 because of they define wrong. The System doesn't allow to change once had transaction.
    Besides creating a new item code, is that any other best solution to change item master ->Item Per Sales Unit?
    Thank for Reply..
    From :
    Eric

    I think the option left is to create a new item.

  • How to dynamically refresh system properties when changed

    Hi All,
    Through weblogic startup class I'm loading the properties from a properties file
    into system properties, Now my requirement is to refresh those system properties
    when ever I make changes to the properties.
    Is there any way to achieve this functionality through MBeans.

    Hello Lucky,
    I believe you cannot refresh properties file dynamically using MBeans. What
    you can do is write an MBean which necessrily mirror your property file and
    register with MBeanServer. You can set values on the MBean dynamically but
    in order to persist your changes you need to write your own persistance
    mechanism.
    Cheers
    Ali
    "Lucky" <[email protected]> wrote in message
    news:3f84d68f$[email protected]..
    >
    Hi All,
    Through weblogic startup class I'm loading the properties from aproperties file
    into system properties, Now my requirement is to refresh those systemproperties
    when ever I make changes to the properties.
    Is there any way to achieve this functionality through MBeans.

  • How to dynamically change link in Page Viewer Web Part SharePoint 2010?

    Newbie Question:
    Situation:
    a) Created: Two Site Pages page 1 & page 2
    b) Page 1: Includes simple hyperlink text Example - Home | About Us | Contact etc
    c) Page 2: Includes Page Viewer Web Part that includes link to an existing web site (this site has all of the pages) and the olde site is shown in SharePoint site
    Complication:
    a) I want the users to click on Page 1 - About Us etc
    b) The View on Page 2 - page viewer link should be dynamically updated to About Us . If user clicks on contact us on Page 1..the page 2 view should change dynamically to Contact US
    ASK:
    a) How do I dynamically update the links in Page Viewer web part using minimal coding (if possible)
    Any Guidance will be greatly appreciated.

    Hello,
    You can also used the another appoch,
    Create your custom webpart , then add the PageViewer Webpart at run time,Create webpart property for the custom webpart to change the url and add the PageViewer webpart runtime,
    I have created the custom webpart property to specified the url at the tine of edit the webpart
    Here is the code
    using System;
    using System.ComponentModel;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.WebControls;
    using System.Collections;
    using Microsoft.SharePoint.Publishing.WebControls;
    using Microsoft.SharePoint.WebPartPages;
    namespace MyNameSpace.MyPageViewer
    [ToolboxItemAttribute(false)]
    public class MyPageViewer : System.Web.UI.WebControls.WebParts.WebPart
    private string _customUrl = "http://yourdefaulturl";//Specified default url
    [WebBrowsable(true)
    , Personalizable(true)
    , Bindable(true)
    , Browsable(false)
    , DefaultValue("")
    , Category("Custom Page Viewer Properties")
    , WebPartStorage(Storage.Shared)
    , FriendlyName("PageViewer URL")
    , Description("PageViewer URL")]
    public string CustomUrl
    get { return _customUrl; }
    set {if (string.IsNullOrEmpty(value) == false) { _customUrl = value; } }
    #endregion
    public MyPageViewer()
    this.ChromeType = PartChromeType.None;
    protected override void OnInit(EventArgs e)
    EnsureChildControls();
    base.OnInit(e);
    protected override void CreateChildControls()
    string pageViewerUrl = CustomUrl;
    Microsoft.SharePoint.WebPartPages.PageViewerWebPart pageViewerWebPart = new Microsoft.SharePoint.WebPartPages.PageViewerWebPart();
    if (!string.IsNullOrEmpty(pageViewerUrl))
    pageViewerWebPart.ContentLink = pageViewerUrl;
    pageViewerWebPart.ChromeType = PartChromeType.None;
    pageViewerWebPart.Height = "382";
    pageViewerWebPart.Width = "682";
    this.Controls.Add(pageViewerWebPart);
    protected override void OnLoad(EventArgs e)
    base.OnLoad(e);
    protected override void OnPreRender(EventArgs e)
    base.OnPreRender(e);
    Hope this will help you
    Hiren Patel | Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.

  • Dynamically change cell properties in a table

    Hi,
    I have read all forum posts about changing table cell properties, but I can't find the solution to my problem.
    I have a table that derives its structure from a table which is the output of an RFC.
    The rows are provided by the model.
    When displaying the result of the RFC call, I want to add a colored row between certain sections with totals of that particular section.
    I managed to add the row in the appropriate place, however I cannot change the color of this row (or even better: the particular cell).
    Can anyone tell me how to proceed? And what property determines backgroundcolor of a tablecell? TextViewSemanticColor determines the text color, I want to change the background color.
    Here is a fragment from my wdDoModifyView:
    i=0;
    IPrivateResultView.IEp_OpportunitiesNode node = wdContext.nodeEp_Opportunities();
    while (i<node.size()) {
         total1 += <some value>;
         total2 += <some value>;
         if (<start of new section>) {
              IPrivateResultView.IEp_OpportunitiesElement el = (IPrivateResultView.IEp_OpportunitiesElement) node.createElement(new Zopportunities());
              el.setAttributeValue("Exp_Revenue", new BigDecimal(total1));
              el.setAttributeValue("Chancevalue", new BigDecimal(total2));
    //     totals row is added here:                    
              node.addElement(i, el);
    //     how can I make this work for background color?
              el.node().getNodeInfo().addAttribute("TextViewSemanticColor", "ddic:com.sap.ide.webdynpro.uielementdefinitions.TextViewSemanticColor");
              el.setAttributeValue("TextViewSemanticColor", WDTextViewSemanticColor.NEGATIVE);
              total1 = 0;
              total2 = 0;
         i++;
    Thanks in advance,
    Roelof

    Hello Knibbe,
    One can play with the readOnly of table cell editor (Input Field) to acheive the expected result.
    Let us take a specific case where your table has four columns say col1, col2, col3, col4 and each of these columns have Input field as the table cell editor.
    Then depending upon the condition specified below choose your option.
    <u>If you have bound the table to the model node</u>
    1. Create a new value node and create a bolean value attribute under it.
    2. Set the cardinality of the value node to 1:1 and singleton to false.
    3. Bind this attribute to the Table cell editor <b>(Inputfield)</b> in col1, col2, col3 and col4.
    4. set the value of this attribute to TRUE when the table gets filled up initially i.e for the elements/rows in which you want to display the total, as per your requirement.
    5. set the value of this attribute to FALSE for the other rows where you want the user to edit the data.
    <u>If you have bound the table to a value node</u>
    1. Create a value attribute of type boolean under the value node and follow the ONLY the steps 3, 4 and 5
    Please reward appropriate points.
    Bala
    Message was edited by: Bala Krishnan

Maybe you are looking for

  • How do I use the option "table view" in NetWeaver 2004s Query Designer?

    Dear, We have used NetWeaver 2004s Query Designer, We found a strange problem. The option to select table view is not available. It is greyed out. How can you select table view (tabular) in 2004s Query Designer? I have read the help doc about tabular

  • Logfile Generation utilizing "Excel" (Creating and Appending Report)

    All, As always, thanks for the help you have given me in the past....especially the Vets. I have tried to figure out a solution to my issue from the message board, but no solution seems to fit what I am doing. Here is my situation...... I am using La

  • How to define a parallel, deterministic pl/sql function in OWB 11.2?

    Hi, at my customer site, we are starting with the new development work after upgrading from OWB 10.2 to 11.2 and we can't find the configuration parameter to define a parallel and deterministic function within a new package. The "old" function dialog

  • Titling movie clips in IPhoto?

    Can't seem to title my movie clips in IPhoto when I deleted the word "movie" I lost my video. Does it still exist?  Should I be downloading to IMovie? Thanks in advance of your help. Bob

  • Model view distribution error

    Distribution of model view MATMODEL Target system MATLOGR3 RFC destination for synchronous communication (message type SYNCH) Partner profile LS MATLOGR3 SYNCH does not exist Generate partner profile or specify outbound partner profiles for message t