How to change properties of a TableCell over Code ?

Hy all,
i want to enable a cell of the selected row over code.
How can i do this ?
I dont know, how to get the UI-Element table of my view over code.
I have read the API and have seen all the method to change the properties, but not found the method to get any of my UI-Elements of the actual view.
Is there any method to get or browse all the UI-Elements of the view ?
Have anyone a code-example to get a UI-Element of a view ?
Thanks for help.
by Jürgen

Hy Valery,
my scenario is to enable a Button or LinkToURL UI-Element in a table cell of the selected row. The data in the table are mapped from a node und the Button/LinkToURL Element was insertet by visual editor with property enable = false.
I have a action onLeadSelection to get the parameters of the selected row to build the right URL.
Do I have access in the action to the wdDoModifyView-Method to change the property ?
How can i change the cell-enable-property of the selected row ?
I can get the table, the array of tablecolumns and an iterator over the table. But i have not found a method
to get the column like table.getColumn(XXX).
I have read the IDWTable API with the following text:
  "Table columns are defined by aggregating TableColumn
   objects. Each table column has a table cell editor.
   Every property of the table cell editor may be bound
   either
      to an attribute of the context node X, or
      to a context root attribute.
Now I am a little bit confused. Do I need a value attribute "URL" in my model node?
But this should not solve my problem to enable a Cell of a table, or ?
Thanks for help.
Jürgen

Similar Messages

  • How to change posting period for a company code

    Hi Gurus,
    In MIGO while doing goods receipt i get this error " Posting only possible in periods 2006/05 and 2006/04 in company code 3000"
    How to change the posting period.
    I have serched in SDN, i tried transaction MMPV, and OB52 but i am not able to change as i dont know the basics of the screen as i am ABAPER.
    Can u tell me how to change. or give sme link with some snapshots.
    Thanks

    hi
    I think you need to check your fiscal year varian before you do the MMPV. Fiscal year is set up by the FI consultant and it is deciding in which fiscal year period your current month belongs to.(Transaction -OB29)
    Ex:
    if you use K4 fiscal year variant then this october month is treated as 2010-07 period. Because the fiscal year starts from April and 2010 fiscal year starts from 2009 april.
    Calendar Year                 Fiscal year
    2009 april                =       2010 - 01
    2009 may                =       2010 - 02
    2009 Oct                 =       2010 - 07
    So first get the fiscal year and period accurately (I suggest get it from your FI guy) and put it in the MMPV
    If you accidentally close a wrong period dont forget to follow these notes too.
    545952,369637 AND 487381
    thanks & BR
    sandun

  • How to use .properties files in Webdynpro Java code?

    Hi all,
      I want to use a logon.properties file when I initial a JCO connection pool in my webdynpro DC (JCO.addClientPool()),but  I found when I deployed this DC to the server, it always giv e me an FileNotFoundException. So I donot know how to deploy a .properties file to the server and how to access this file in my Java code?
    Thans and Best regards
    Deyang

    Hi,
    1) put .properties file to your packege under src\packages folder (src\packages\com\sdn\properties\jco.properties)
    2) load property:
         final InputStream is = getClass().getClassLoader().getResourceAsStream("com/sdn/properties/jco.properties");
         final Properties properties = new Properties();
         try
              properties.load(is);
         catch(Exception e)
              wdComponentAPI.getMessageManager().reportException(new WDNonFatalException(e), false);
    Regatds Maxim R.

  • How to change properties dinamically to all objects that are in a JPanel

    Hi experts!
    I have this code:
    JPanel pnlDataTxt;
    pnlDataTxt.add(new JTextField());
    But I want to change the properties of that JTextField after it has been added to the JPanel.
    How can I do that??

    Hi experts!
    I have this code:
    JPanel pnlDataTxt;
    pnlDataTxt.add(new JTextField());
    But I want to change the properties of that JTextField
    after it has been added to the JPanel.
    How can I do that??You have to create a handle to an instance of an object like:
    JTextField testField = new JTextField();
    JPanel pnlDataTxt;
    pnlDataTxt.add(testField);Now you can change the properties of "testField".

  • How to change properties for some controls in runtime ?

    hi,
    I would like to change some of the properties for some controls in front panel in runtime. Number of control properties I want to change is depending of a log file user opens in final application.
    I attach an example where I'm trying to change the visibility of numeric controls. Problem I have I don't know which reference to connect to property node in case the control in for loop is not a numeric control. The example relies to label.text property but I could use the more generic classname property as well.  
    regards,
    petri
    Solved!
    Go to Solution.
    Attachments:
    dynamic reference.vi ‏11 KB

    pcardinale wrote:
    Initially, a control has no caption.  It's not just that the caption string is empty and the caption not visible, but the caption object does not exist.
    I think this should probably be changed in future versions, because even if each control had a caption, it would still be a negligible small part of the VI. The current behavior made sense many years ago where HD and memory space was very precious. Not any more!
    This issue comes up often enough that it warrants addressing the root of the problem.
    It is hard to convince the casual that the caption does not exist if he can simply do a "show caption" at edit time and it will show in all glory, even with the default set to the current label. It is confusing!
    There is even an idea about this that seems worth supporting (also read the link in the discussion).
    What do you think?
    LabVIEW Champion . Do more with less code and in less time .

  • How to change properties of UI element in SRM webdynpro

    I am having handfull of experience in ABAP WEBDYNPRO. Now i got an apportunity work in Webdynpro in SRM. As all we know changing the property of UI element in SRM is not that easy like we do like Webdynpro in ABAP.
    So i request anyone please provide me steps from scratch list what supposed to be done SRM. Aso please provide me regarding how enhancement carried with Webdynpro UI elements?

    Hi Sahil,
    There was a discussion before:
    [Compare different ways of customize Web Dynpro ABAP;
    Regards,
    Donald

  • How to change properties or add components in JPanel after initialization ?

    Hi,
    I am working on an applet where an image will be loaded in a JPanel from an URL. The JPanel is inside a JscrollPane.
    1.The image will be added on the JPanel later , not during initialization.
    2. JPanel size will be the size of the image.
    3 .the image size may change when the image is changed. Then the JPanel size also has to be updated.
    FYI I am using MediaTracker to load the image.
    I was trying updateUI() for scrollPane. But it is not working.
    How can I do it? Any suggestion?
    Thanks in advance.

    I have to use JPanel because I need flexible control on the imageYou said previously that the panel was the size of the image, so I don't understand what kind of flexible control you are talking about. Presumably you have code in the paintComponent(...) method of the JPanel something like:
    g.drawImage(0, 0, width, height)
    Well that is exactly what a JLabel would do.
    So if you need further custom painting then you would just override the paintComponent(...) method of JLabel to do your custom painting.

  • How to change properties of an image when the state changes? (normal, rollover, mouse down, action)

    I want to enlarge image (photo) while rolling over.

    Sure, This works but copying back the button does not replace the original, it just adds a new button, so for every change, there is a new copy added. I did notice this when I wanted to change the size of the button, they were both visible !
    Pierre

  • How to change properties of layout.

    Hi All,
    In ICWC agent inbox , when we perform a search , the result gets displayed in the form of page view.i.e. 20 mails gets displayed per page and the users have to scroll down thru pages.But the requirement is that the result should be in a single page view with scrolling option.Can anybone tell me if this is possible and how to do that.
    *Points assured for helpful answers
    Regards,
    Raghu.

    Hi,
      Your question is related to which CRM release?
      If it is for CRM 5.1 or later, may be you can check with the personalisation button on the search result list table view. They may be a setting for the number of entries in 1 page.
    Otherwise, you have to check up with an appropriate tag attribute for tag <thtmlb:tableView> like 'visiblerowcount', 'scrolling' etc.
    I do not have access to a CRM system right now, but it should be possible in either of these ways.
    Hope this helps!
    Thanks,
    Sudipta.

  • How to change properties in Synchronize Options [js][cs4]

    Hi all,
    From that above TOC Synchronize options scrrenshots i need to set the value of Smart Match Style Groups to flase, but i cant... Is ther e any way to set those properties.
    Regards,
    San

    Ofcourse its a book property, i can set the property as below
    myBook.styleSourceDocument =myBook.bookContents[i];//stDoc;
            //myBook.styleSourceDocument = app.documents[0];//File ('/Users/sankar/Desktop/TOC_1 column/templates/Untitled-9.indd');//stDoc.tocStyles[1];//.bookContents[0];//app.document .File('/Users/sankar/Desktop/TOC_1 column/templates/35865_00_Template.indd');//stDoc;
            myBook.synchronizeTableOfContentStyle  = true; // Synchronize TOCStyles
            myBook.synchronizeTextVariable = false;
            myBook.synchronizeTableStyle = false;
            myBook.synchronizeParagraphStyle = false;  
            myBook.synchronizeCharacterStyle = false; 
            myBook.synchronizeTrapStyle = false; 
            myBook.synchronizeMasterPage = false;  
            myBook.synchronizeObjectStyle = false; 
            myBook.synchronizeSwatch = false; 
            myBook.synchronizeCellStyle = false; 
            myBook.synchronizeBulletNumberingList = false;
            myBook.synchronizeConditionalText = false;  
            //myBook.smartMatchStyleGroups = false;
            //myBook.synchronizeCrossReferenceFormat = false; -- Cant
    and also i want to set smartMatchStyleGroups and synchronizeCrossReferenceFormat. And i searched there is no object for synchronizeCrossReferenceFormat( is it possible).
    Please give your valuable suggestion to control smartMatchStyleGroups
    Thanks in advance,
    San

  • Changing properties file value without redploying code

    Hi,
    If I use properties file colors.properties in my web dynpro application for storing key-value pairs as
    color1=RED
    color2=BLUE
    color3=GREEN
    is it possible to change colors.properties  in future to show new colors
    color1=ORANGE
    color2=YELLOW
    color3=PURPLE
    without redeploying code ? through Visual Admin / Config tool  ?
    If not, what is the other way to avoid hard coded values in Web Dynpro Java ?
    Thanks !!

    Hi,
    Its can be achieved using the WDConfiguration API of Java Webdynpro.
    The details are given in the blog below;
    /people/daniel.wirbser/blog/2005/09/28/properties-files-in-web-dynpro-applications-how-to-use-the-wdconfiguration-api
    Also for changing this properties all we need to do is from Visual Administrator/Config tool(changing from config tool will need a re-start)
    Proceed as follows to start the Visual Administrator:
           1.      Start the Visual Administrator by double-clicking on file go.bat in the file directory C:\usr\sap\<System ID>\<System Number>\j2ee\admin, in which the J2EE Engine is installed. For example, the background file can be stored in directory C:\usr\sap\J2E\JC00\j2ee\admin.
    You can find a description of the Visual Administrator in the SAP Library under SAP NetWeaver u00AE Application Platform (SAP Web Application Server) u00AE J2EE Technology in the SAPWeb Application Server u00AE Administration Guide u00AE Server Administration u00AE SAP J2EE Engine Administration Tools u00AE Visual Administrator.
           2.      Navigate to directory Server 0/Services/ Configuration Adapter / webdynpro/ <sap.com/Your namespace>/ <Your Web dynpro application>
           3.      Select the property file
           4.      The Visual Administrator opens so that you can edit the values. You can change or redefine the parameters and check the option "Use Custom " to take the new value.
    Thats all.
    One more URL is
    http://help.sap.com/saphelp_nw04/helpdata/en/09/a4d6a674bc1d4a9e74abf81bed3ef6/frameset.htm
    Regards
    Priya

  • How to change chart of account to company code

    Dear  Guruu2019s
                                 I am new  SAP  FICO . I got the following thread  . I have configured the company code through copy the existing company code. Now I  want to change the Chart of Account to this company code. I gone to T code  OB62  from position go to my company code I changed the chart of account  but while saving the file I got thread  u201CReset company code data before changing the chart of accountsu201D
    How to go further could anybody explain me.
    Thank you in advance
    krishna

    If you really want to allocate a different chart of accounts to the company code, first of all reset the company-code specific data for the old chart of accounts.
    1. First of all you must, if it exists, reset the transaction data for this company code.
    2. Finally, carry out the resetting of the company code-dependent G/L account master data (without the general master data).
    Note:
    When dealing with large quantities of data, resetting the master data or transaction data can be very time-consuming. In this case, it is advisable to schedule the running of these reports as a batch run.

  • How to change VENDOR payment transactions in T-code XK02

    when I use BDC code to change vendor payment transaciton in XK02.
    There is a problem.
    AT the payent transaction view,bank details at the control table,When i want to change it ,i use cursor to decide which line change. But at the run time,it may be wrong. The fact,i want to change the second line bank data,but at my code,it change the
    first one line.
    SO, have FUNCTION MODULE to change it or how to avoid my problem?

    HI,
              This  function is update module ,  I  am not sure  that  I can correct use it .  I  solved the problem with BDC programm.
              Thank you all the same.

  • How to change InputField background color using Java Code

    Hi,
    In my application use will enter some set of Cost Centers in a table and submits request.
    In return i will get a list of invalid cost centers which i need to display in a table with input field
    In that table all cost centers will displayed, but invalid cost centers should be highlighted or background color should some other color. like red or yellow.
    Is it possible using java code to change a input field color.
    Please help me.
    Thanks

    Hi,
        declare a error message in message pool and declare a method say "checkCostCenters " and in this method, u can check whether it is a valid cost center .. if it is invalid cost center , then throw the erro message using the below code :
    wdComponentAPI.getMessageManager().reportContextAttributeMessage(
                        inputfieldattibutePointer, IMessageProgramPlanComp.ur error message,
                        new Object[] );
    for getting pointer and label use the below code:
    IWDAttributePointer inputfieldPointer = URNODEELEMENTElement
                        .getAttributePointer(URNODEELEMENT.ATTRIBUTENAME);
              String inputfieldLabel = wdContext.nodeURVALUENODE.getNodeInfo()
                        .getAttribute(URNODELEMENT.ATTRIBUTE).getSimpleType()
                        .getFieldLabel();
    hope it helps..
    Thanks and Regards

  • How to change the header and footer in the Section Breaks Next Page using OpenXML?

    I have a word document file in which I added a Section Break of Next Page, now I want to change the header and footer of that page.
    Scenario of example, I have a doc file which has four pages with headers and footers and added fifth page in the section break next page, I want to change the header and footer of the fifth page only. This is achievable manually by deselecting the Link to Previous
    button in the Word Application but I don't know how to change it using XML?
    My code that adds the new page in the section breaks is:
    class Program
    static void Main(string[] args)
    string path = @"C:\Riyaz\sample.docx";
    string strtxt = "Hello This is done by programmatically";
    OpenAndAddTextToWordDocument(path,strtxt);
    public static void OpenAndAddTextToWordDocument(string filepath, string txt)
    using (DocX document = DocX.Load(@"C:\Riyaz\sample.docx"))
    document.InsertSectionPageBreak();
    Paragraph p1 = document.InsertParagraph();
    p1.Append("This is new section");
    document.Save();
    Please help.

    Here is the sample for your reference:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using DocumentFormat.OpenXml;
    using DocumentFormat.OpenXml.Packaging;
    using DocumentFormat.OpenXml.Wordprocessing;
    namespace WordAddNewFooterHeader
    class Program
    static void Main(string[] args)
    string path = @"E:\Document\TestHeaderandfooter-Copy.docx";
    string strtxt = "OpenXML SDK";
    OpenAndAddTextToWordDocument(path, strtxt);
    public static void OpenAndAddTextToWordDocument(string filepath, string txt)
    // Open a WordprocessingDocument for editing using the filepath.
    WordprocessingDocument wordprocessingDocument = WordprocessingDocument.Open(filepath, true);
    MainDocumentPart part = wordprocessingDocument.MainDocumentPart;
    Body body = part.Document.Body;
    //create a new footer Id=rIdf2
    FooterPart footerPart2 = part.AddNewPart<FooterPart>("rIdf2");
    GenerateFooterPartContent(footerPart2);
    //create a new header Id=rIdh2
    HeaderPart headerPart2 = part.AddNewPart<HeaderPart>("rIdh2");
    GenerateHeaderPartContent(headerPart2);
    //replace the attribute of SectionProperties to add new footer and header
    SectionProperties lxml = body.GetFirstChild<SectionProperties>();
    lxml.GetFirstChild<HeaderReference>().Remove();
    lxml.GetFirstChild<FooterReference>().Remove();
    HeaderReference headerReference1 = new HeaderReference() { Type = HeaderFooterValues.Default, Id = "rIdh2" };
    FooterReference footerReference1 = new FooterReference() { Type = HeaderFooterValues.Default, Id = "rIdf2" };
    lxml.Append(headerReference1);
    lxml.Append(footerReference1);
    //add the correlation of last Paragraph
    OpenXmlElement oxl = body.ChildElements.GetItem(body.ChildElements.Count - 2);
    ParagraphProperties paragraphProperties1 = new ParagraphProperties();
    SectionProperties sectionProperties1 = new SectionProperties() { RsidR = oxl.GetAttribute("rsidR", oxl.NamespaceUri).Value };
    HeaderReference headerReference2 = new HeaderReference() { Type = HeaderFooterValues.Default, Id = part.GetIdOfPart(part.HeaderParts.FirstOrDefault()) };
    FooterReference footerReference2 = new FooterReference() { Type = HeaderFooterValues.Default, Id = part.GetIdOfPart(part.FooterParts.FirstOrDefault()) };
    PageSize pageSize1 = new PageSize() { Width = (UInt32Value)12240U, Height = (UInt32Value)15840U };
    PageMargin pageMargin1 = new PageMargin() { Top = 1440, Right = (UInt32Value)1440U, Bottom = 1440, Left = (UInt32Value)1440U, Header = (UInt32Value)720U, Footer = (UInt32Value)720U, Gutter = (UInt32Value)0U };
    Columns columns1 = new Columns() { Space = "720" };
    DocGrid docGrid1 = new DocGrid() { LinePitch = 360 };
    sectionProperties1.Append(headerReference2);
    sectionProperties1.Append(footerReference2);
    sectionProperties1.Append(pageSize1);
    sectionProperties1.Append(pageMargin1);
    sectionProperties1.Append(columns1);
    sectionProperties1.Append(docGrid1);
    paragraphProperties1.Append(sectionProperties1);
    oxl.InsertAt<ParagraphProperties>(paragraphProperties1, 0);
    body.InsertBefore<Paragraph>(GenerateParagraph(txt, oxl.GetAttribute("rsidRDefault", oxl.NamespaceUri).Value), body.GetFirstChild<SectionProperties>());
    part.Document.Save();
    wordprocessingDocument.Close();
    //Generate new Paragraph
    public static Paragraph GenerateParagraph(string text, string rsidR)
    Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = rsidR };
    ParagraphProperties paragraphProperties1 = new ParagraphProperties();
    Tabs tabs1 = new Tabs();
    TabStop tabStop1 = new TabStop() { Val = TabStopValues.Left, Position = 5583 };
    tabs1.Append(tabStop1);
    paragraphProperties1.Append(tabs1);
    Run run1 = new Run();
    Text text1 = new Text();
    text1.Text = text;
    run1.Append(text1);
    Run run2 = new Run();
    TabChar tabChar1 = new TabChar();
    run2.Append(tabChar1);
    paragraph1.Append(paragraphProperties1);
    paragraph1.Append(run1);
    paragraph1.Append(run2);
    return paragraph1;
    static void GenerateHeaderPartContent(HeaderPart hpart)
    Header header1 = new Header();
    Paragraph paragraph1 = new Paragraph();
    ParagraphProperties paragraphProperties1 = new ParagraphProperties();
    ParagraphStyleId paragraphStyleId1 = new ParagraphStyleId() { Val = "Header" };
    paragraphProperties1.Append(paragraphStyleId1);
    Run run1 = new Run();
    Text text1 = new Text();
    text1.Text = "";
    run1.Append(text1);
    paragraph1.Append(paragraphProperties1);
    paragraph1.Append(run1);
    header1.Append(paragraph1);
    hpart.Header = header1;
    static void GenerateFooterPartContent(FooterPart fpart)
    Footer footer1 = new Footer();
    Paragraph paragraph1 = new Paragraph();
    ParagraphProperties paragraphProperties1 = new ParagraphProperties();
    ParagraphStyleId paragraphStyleId1 = new ParagraphStyleId() { Val = "Footer" };
    paragraphProperties1.Append(paragraphStyleId1);
    Run run1 = new Run();
    Text text1 = new Text();
    text1.Text = "";
    run1.Append(text1);
    paragraph1.Append(paragraphProperties1);
    paragraph1.Append(run1);
    footer1.Append(paragraph1);
    fpart.Footer = footer1;
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Runtime error in Elements 9, editor will not work

    I have Windows Vista. The organizer seems to work fine.  But right after a photo opens in editor, a window appears saying:  Microsoft Visual C++,    Runtime Library.  It says Runtime Error!  Program....PhotoshopElementsEditor.exe  This application ha

  • How can i run java file by double click like Visual basic

    i have to run java file by giving a command on DOS promtp.But in Visual basic i easily make a .exe file to run my program. Does java provide this thing? please help me.

  • HT1918 How can i change my purcase limit in a game

    I playing a game and want to purcase done it a few times and now it dont work. Can sombody help?

  • Playbook crashes - won't restart

    Hi - hoping someone can help.  Will try to get this right. Had a problem with playbook freezing and crashing when I tried to use blackberry bridge link - almost always when launching the second bridge app (eg. had messages open, and crash would occur

  • Counter Strike 1.6 on Mountain Lion 10.8.4

    Hello there, Here is what is happening... I have a Macbook Pro on Mountain Lion 10.8.4 and I downloaded the Steam client for Mac. When I try to start Counter Strike 1.6 it says: "Failed to Start the Game (Missing Executable)". Does anybody has any id