Changing properties in JavaScript

<af:inputText id="it1" autoSubmit="false">
<af:clientListener type="valueChange" method="changed"/>
</af:inputText>
<af:commandButton text="Unchanged" id="cb1"/>
<af:resource type="javascript">
function changed(event) {
var it = event.getSource();
it.setValue("Changed");
cb1.setText("Changed");
</af:resource>
The value of it1 has been changed, the text of cb1 has not been changed.
Edited by: user5376911 on 24.05.2013 4:40

Hi,
Always mention your JDev version. Check out this announcement : https://forums.oracle.com/forums/ann.jspa?annID=56
You are trying to set the label of the button, without find the button component.
Try this
                <af:inputText id="it1" autoSubmit="false" clientComponent="true">
                    <af:clientListener type="valueChange" method="changed"/>
                </af:inputText>
                <af:commandButton text="Unchanged" id="cb1" clientComponent="true"/>
                <af:resource type="javascript">
                  function changed(event) {
                      var it = event.getSource();
                      it.setValue("Changed");
                      var cb1 = AdfPage.PAGE.findComponentByAbsoluteId('cb1');
                      cb1.setText("Changed");
                </af:resource>-Arun

Similar Messages

  • Error (23317) The operation Change properties of virtual machine is not permitted on a virtual machine that has shared virtual hard disks. Recommended Action The operation Change properties of virtual machine is not permitted on a virtual machine that h

    Experts !
    Error (23317)
    The operation Change properties of virtual machine is not permitted on a virtual machine that has shared virtual hard disks.
    Recommended Action
    The operation Change properties of virtual machine is not permitted on a virtual machine that has shared virtual hard disks.
    Is this limitation by design? If we have a shared VHDX between two VMs, then I am not able to change the VM properties from SCVMM.
    SCVMM 2012 R2 with Windows Server 2012 R2 Hyper-V.
    Appreciate any help !
    Optimism is the faith that leads to achievement. Nothing can be done without hope and confidence.
    InsideVirtualization.com

    Hello,
    that is a VMM issue.
    If you did not deploy your virtual cluster from a VMM service template, VMM doesn't recognize the configuration.
    Until MS got it fixed, you could use the workaround from system center central:
    http://www.systemcentercentral.com/tag/shared-vhdx/
    This posting is provided >AS IS< with no warranties.

  • Change Properties by ADF JavaScript

    Hello Experts,
    I am trying to change two properties styleClass and shortDesc of a panelGroupLayout. I have a clientListener attached to that panelGroupLayout.
    <af:panelGroupLayout id="dc_pgl3" styleClass="carousel-player-panel start" layout="vertical">
        <af:clientListener method="playOrPauseCaroselAnimation" type="click"/>
    </af:panelGroupLayout>
    From the playOrPauseCaroselAnimation method I am doing:
    var playOrPauseCaroselAnimation = function(event) {
        //some other code
        var carouselPlayerPanel = event.getSource();  
        if(hasStyleClass(carouselPlayerPanel, 'start')) {
            carouselPlayerPanel.setProperty("shortDesc", "Pause", false, AdfUIComponent.PROPAGATE_LOCALLY);
            carouselPlayerPanel.setProperty("styleClass", "carousel-player-panel stop", false, AdfUIComponent.PROPAGATE_LOCALLY);
      //some other code
        } else {          
            carouselPlayerPanel.setProperty("shortDesc", "Play", false, AdfUIComponent.PROPAGATE_LOCALLY);
            carouselPlayerPanel.setProperty("styleClass", "carousel-player-panel start", false, AdfUIComponent.PROPAGATE_LOCALLY);
    But the strange thing that is happening is, it is not working unless I comment the line where I am changing the property shortDesc. For the styleClass it does work.
    I even have tested by commenting the property change of the styleClass. And in that case also the shortDesc is not updating.
    And if I do this:
    var playOrPauseCaroselAnimation = function(event) {
        clearInterval(searchCarouselInterval);
        var carouselPlayerPanel = event.getSource();  
        if(hasStyleClass(carouselPlayerPanel, "start")) {
            //carouselPlayerPanel.setProperty("shortDesc", "Pause", false, AdfUIComponent.PROPAGATE_LOCALLY);
            carouselPlayerPanel.setShortDesc("Pause");
            carouselPlayerPanel.setProperty("styleClass", "carousel-player-panel stop", false, AdfUIComponent.PROPAGATE_LOCALLY);
            //some other code                
        } else {          
            //carouselPlayerPanel.setProperty("shortDesc", "Play", false, AdfUIComponent.PROPAGATE_LOCALLY);
            carouselPlayerPanel.setShortDesc("Play");
            carouselPlayerPanel.setProperty("styleClass", "carousel-player-panel start", false, AdfUIComponent.PROPAGATE_LOCALLY);
    Then on the first click the change is not reflecting. The codes which are in the "//some other code" portion get executed but the o change in styleClass and shortDesc. On second time clicking it is working. But when again that panelGroupLayout got the styleClass "start" it behaves the same (first time doesn't work, on second click work). Also by changing the shortDesc this way would persist the change and that is not desired. Since I want if any PPR happens the panelGroupLayout should get reset as it was initially.
    I am unable to figure what is causing the issue? Any pointer would be very helpful.

    Hi Tapas,
    I think you might be doing something else in //someothercode. I tried the following and it works as expected with no problem:
                            <af:resource type="javascript">
                                function updateAttributes(event){
                                    var panel = event.getSource();
                                    console.log("entering");
                                    console.log(hasStyleClass(panel,'start'));
                                    if (hasStyleClass(panel,'start')){
                                        panel.setProperty("shortDesc", "Pause");
                                        panel.setProperty("styleClass", "carousel-player-panel stop");
                                    }else{
                                        console.log("Adding ShortDesc");
                                        panel.setProperty("shortDesc", "Play");
                                        console.log("Adding start class");
                                        panel.setProperty("styleClass", "carousel-player-panel start");
                                function hasStyleClass(ui, str){
                                    var style = ui.getStyleClass();
                                    console.log("looking for "+str);
                                    console.log("in "+style);
                                    console.log("Returning "+(style != null ? style.indexOf(str) != -1? true : false : false));
                                    return (style != null ? style.indexOf(str) != -1? true : false : false);
                            </af:resource>
    Also, you need to put clientComponent="true" to your panelGroupLayout.

  • Can I change properties of objects by javascript?If can,how do this?

    In my jsp page I wrote:
    <%
    session.setAttribute("username","admin");
    %>
    I want to use javascript change value of "username" to "guest",please tell me......
    thanks

    Javascript, which is run on the client, cannot change the value of server-side session variables.

  • Can't change properties to selectors.

    Hello,
    I'm new to using Dreamweaver. I've created some selectors for div files in my HTML. When I go to add properties to the selector, it doesn't do anything. I can't change the padding, position or anything. The image or text just stays in the same place and doesn't change. Am I doing something wrong?
    I'm using Dreamweaver CC and a Macbook Pro running Lion on it.
    Here is my code if this helps.
    HTML:
    <!doctype html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>vacancyart</title>
    <link href="CSS/index.css" rel="stylesheet" type="text/css">
    <!--The following script tag downloads a font from the Adobe Edge Web Fonts server for use within the web page. We recommend that you do not modify it.--><script>var __adobewebfontsappname__="dreamweaver"</script><script src="http://use.edgefonts.net/source-sans-pro:n2:default.js" type="text/javascript"></script>
    </head>
    <body>
    <
      <header id="top">
        <nav id="mainNav">
          <ul>
            <li><a href="index2.html">Home</a></li>
            <li><a href="about.html">About</a></li>
            <li><a href="art.html">Art</a></li>
            <li><a href="photos.html">photos</a>
            <li>
            <li><a href="Projects.html">Projects</a></li>
            <li><a href="Resume.html">Resume</a></li>
            <li><a href="https://www.etsy.com/shop/VacancyArt">Etsy</a></li>
            <li><a href="Contact.html">Contact</a></li>
          </ul>
          <div id="main2">Vacancy Art is for all art and design. Check back frequently for updates!</div>
        </nav>
      </header>
    <body> <div id="IG image"><img src="Images/IGlogosite2.png" alt="" width="50" height="55" id="IG"/></div></body>
      <footer>
        <p>&copy;</p>
      </footer>
    </div>
    </body>
    </html>
    CSS:
    header {
      text-transform: uppercase;
      list-style-type: none;
      list-style-position: outside;
      width: 115%;
      bottom: 1px;
      max-height: 0%;
      text-decoration: none;
    #main2 {
      display: block;
      color: #FFFFFF;
      -webkit-box-sizing: inherit;
      -moz-box-sizing: inherit;
      box-sizing: inherit;
      position: fixed;
      font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
      font-style: normal;
      text-align: center;
      text-decoration: none;
      text-transform: none;
      line-height: 200px;
      margin: auto;
      margin-top: -100px;
      position: absolute;
      top: 70%;
      width: 80%;
      background-color: #000000;
      opacity: 0.9;
      right: 10%;
    #mainNav ul  {
      list-style-type: none;
      display: block;
      padding-bottom: 2px;
    #mainNav a {
      width: 10%;
      display: block;
      color: #FCFCFC;
      text-decoration: none;
      background-color: #010101;
      text-align: center;
      line-height: 100%;
      -webkit-box-shadow: 0px 0px 0px 1px;
      box-shadow: 0px 0px 0px 1px;
      opacity: 0.9;
      overflow-x: visible;
      visibility: visible;
      -webkit-box-sizing: content-box;
      -moz-box-sizing: content-box;
      box-sizing: content-box;
      float: left;
      text-shadow: 0px 0px;
    #mainNav {
      text-align: center;
      vertical-align: baseline;
      list-style-type: none;
      list-style-position: inside;
      display: inline;
      color: #000000;
      opacity: 0.4;
    body {
      background-color: #000000;
      color: #F9F8F8;
      font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
      font-style: normal;
      font-weight: 200;
      text-align: center;
      padding-top: auto;
      padding-bottom: 0px;
      max-width: none;
      background-image: url(../Images/Japanesehouse1.52.jpg);
      background-size: 100px
      background-repeat: no-repeat;
      display: inherit;
      width: 100%;
      height: 100%;
      padding-right: 0%;
      position: static;
    #IGimage {
      padding-right: 100%;
    footer {
      position: absolute;
      bottom: 0;
      width: 100%;
      height: 60px;
      padding-left: 10px;
    Any Idea? Thanks!

    Messy code often causes DW to choke.  And it doesn't make browsers happy either.  My advice is to use HTML5 tags since you're already using an HTML5 doc type.  It makes your code much simpler.  Copy & paste this into a new, blank document.  SaveAs test.html and preview in browsers.  I'll let you style it however you wish.  My goal was to get things cleaned up and remove the invalid & redundant code.
    <!doctype html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>vacancyart</title>
    <!--The following script tag downloads a font from the Adobe Edge Web Fonts server for use within the web page. We recommend that you do not modify it.-->
    <script>var __adobewebfontsappname__="dreamweaver"</script><script src="http://use.edgefonts.net/source-sans-pro:n2:default.js" type="text/javascript"></script>
    <style>
    /**CSS Reset**/
        padding: 0;
        /**fixes the CSS box model in Fluid Layouts**/
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    img {
        vertical-align: baseline;
        display: block;
        max-width: 100%
    body {
        width: 88% /**adjust width in px or % as req'd**/;
        margin: 0 auto; /**with width, this is centered**/
        color: #F9F8F8;
        font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
        /**scales BG image to viewport**/
        background: #000 url(Images/Japanesehouse1.52.jpg) no-repeat center center fixed;
        /**for Safari,Chrome**/
        -webkit-background-size: cover;
        /**for Firefox**/
        -moz-background-size: cover;
        /**for Opera**/
        -o-background-size: cover;
        /**for other browsers**/
        background-size: cover;
    header, footer {
        width: 100%;
        background: rgba(51,102,153,0.5)
    nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        float: right;
        width: 85%
    nav li a {
        text-transform: uppercase;
        color: #CCC;
        text-decoration: none;
        text-align: center;
        float: left;
        width: 6.5em;
        opacity: 0.75;
    nav li a:hover,
    nav li a:active,
    nav li a:focus {
         text-decoration: underline;
         opacity:1.0
    /**clear floats after nav**/
    nav:after {
        clear: both;
        display: block;
        content: '';
        visibility: hidden;
    /**main content**/
    article {
        text-align: left;
        padding: 1%;
        background: rgba(255,255,255,0.2)
    /**re-usable classes**/
    .right { text-align: right }
    .center { text-align: center }
    .left { text-align: left }
    </style>
    </head>
    <body>
    <header> <img src="Images/IGlogosite2.png" alt="logo" id="IG"/>
    <nav>
    <ul>
    <li><a href="index2.html">Home</a></li>
    <li><a href="about.html">About</a></li>
    <li><a href="art.html">Art</a></li>
    <li><a href="photos.html">photos</a><li>
    <li><a href="Projects.html">Projects</a></li>
    <li><a href="Resume.html">Resume</a></li>
    <li><a href="https://www.etsy.com/shop/VacancyArt">Etsy</a></li>
    <li><a href="Contact.html">Contact</a></li>
    </ul>
    </nav>
    </header>
    <article>
    <h1 class="center">Vacancy Art is for all art and design. Check back frequently for updates!</h1>
    <h3>Heading 3</h3>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.  Mauris vitae libero lacus, vel hendrerit nisi!  Maecenas quis velit nisl, volutpat viverra felis. Vestibulum luctus mauris sed sem dapibus luctus.  Pellentesque aliquet aliquet ligula, et sagittis justo auctor varius. Quisque varius scelerisque nunc eget rhoncus.  Aenean tristique enim ut ante dignissim. </p>
    <h3>Heading 3</h3>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.  Mauris vitae libero lacus, vel hendrerit nisi!  Maecenas quis velit nisl, volutpat viverra felis. Vestibulum luctus mauris sed sem dapibus luctus.  Pellentesque aliquet aliquet ligula, et sagittis justo auctor varius. Quisque varius scelerisque nunc eget rhoncus.  Aenean tristique enim ut ante dignissim. </p>
    </article>
    <footer>
    <small class="right">&copy; 2014 Web Site Name.  All rights reserved.</small>
    </footer>
    </body>
    </html>
    Nancy O.

  • Changing language using Javascript

    Hi,
    Does anyone know what the JavaScript code would be to change the language option to English UK in Adobe Acrobat?
    I.e. the same as would be achieved by going to:
    File -> Document Properties -> Advanced -> Reading Options -> Language
    I need to run this as a batched process on c10,000 files, which is why I need to use JavaScript.
    Grateful of any help.
    Thanks
    Ben

    Thanks for the reply Dave.
    Preflight isn't something I had come across before so have just been reading up on it.
    I have managed to find the Edit Profiles window but can't find a 'converting to PDF/A' profile. I am using Acrobat 6.0, is it available in there do you know?
    Cheers
    Ben

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

  • Changing properties in a portfolio

    I created a form in Adobe Acrobat Pro 9 with a read only field. I distributed the form and received about 100 responses. In my portfolio I was able to change the read only setting so that I could enter the data I needed in the form. I did this by going to 
    The feature under forms "add edit fields" is not accessible and I can not right click on the text field to see a properties option.
    Any help would be appreciated

    A ResourceBundle is a read-only object. It doesn't provide any methods for updating. If you want to allow your users to update the data, the code will have to update the underlying properties file. This also is impossible if your application server doesn't expand the application but runs it from a WAR or EAR archive.
    [Edit] And even at that, allowing users to update properties files in a multi-user environment is risky -- if two users update the file at the same time, it's easy to lose one of the updates.

  • 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

  • Change font in JavaScript in html snippet

    I would like a 'this website was last updated' and have found a script that seems to work in an html snippet in iweb but I can't work out how to change the font.  Also I don't want to incude the day of the week but am unsure how much to delete. I'm a novice so if someone could edit the code for me that would be marvellous!  I would like the font to be in Helvetica Neue in size 12.  Thank you
    Here's the script
    <script language="javascript">
    months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
    var d=new Date();
    var weekday=new Array(7);
    weekday[0]="Sunday";
    weekday[1]="Monday";
    weekday[2]="Tuesday";
    weekday[3]="Wednesday";
    weekday[4]="Thursday";
    weekday[5]="Friday";
    weekday[6]="Saturday";
    var d = new Date();
    (d.getFullYear());
    var theDate = new Date(document.lastModified);
    theDate.setTime((theDate.getTime()+(60*60)) )
    with (theDate) {
    document.write("<i>Last updated "+weekday[getDay()]+' '+getDate()+' '+months[getMonth()]+' '+d.getFullYear()+' '+getHours()+':'+getMinutes()+" GMT</i>")
    </script>

    Eureka!  I think I've finally done it.  With the help of all of you and combining & editing scripts I think I've achieved it.  It seems to be working anyway.  Perhaps you would have a look at it and see if there are any glaring errors!  Many thanks to you all... I understand it a little better now but I still couldn't have done it on my own.  Thanks again
    <div style="width: 250px; height: 15px; margin-left: 0px; font-family: Helvetica Neue, Cochin, 'Helvetica Neue', Arial, sans-serif; font-size: 11px; color: #424242">
    <script type="text/javascript">
    <!--
    var d_names = new Array("Sun", "Mon", "Tue",
    "Wed", "Thu", "Fri", "Sat");
    var m_names = new Array("Jan", "Feb", "Mar",
    "Apr", "May", "Jun", "Jul", "Aug", "Sep",
    "Oct", "Nov", "Dec");
    var d = new Date(parent.document.lastModified);
    var curr_day = d.getDay();
    var curr_date = d.getDate();
    var curr_hour = d.getHours();
    var curr_min = d.getMinutes();
    var sup = "";
    if (curr_date == 1 || curr_date == 21 || curr_date ==31)
       sup = "st";
    else if (curr_date == 2 || curr_date == 22)
       sup = "nd";
    else if (curr_date == 3 || curr_date == 23)
       sup = "rd";
    else
       sup = "th";
    var curr_month = d.getMonth();
    var curr_year = d.getFullYear();
    var a_p = "";
    if (curr_hour < 24)
       a_p = "GMT";
    else
       a_p = "GMT";
    if (curr_hour == 0)
       curr_hour = 24;
    if (curr_hour > 24)
       curr_hour = curr_hour - 24;
    if (curr_min < 10)
       curr_min = "0" + curr_min;
    document.write("Site last updated:  " + d_names[curr_day] + " " + curr_date + " " + m_names[curr_month] + " " + curr_year + " at " + curr_hour + ":" + curr_min + " " + a_p);
    //-->
    </script>
    </div>

  • BUG : Can't change properties (font, size, etc.) in Text Box (Acrobat Pro Extend 9.3.4)

    Here is a bug in Acrobat 9. It's really frustrating :
    1- Open any PDF file.
    2- Select the Text Box tool and type something.
    3- Notice that you can change the font using the Properties toolbar (CTRL + E).
    4- Open a second PDF file.
    5- Select the Text Box tool and type something in this document.
    6- Notice that you can change the font using the Properties toolbar (CTRL + E) also.
    7- Switch back to the first opened PDF file.
    8. Try using the Properties toolbar.
    YOU CAN'T BECAUSE THE TOOLBAR IS DISABLED!
    There is nothing you can do to make it enabled again.
    This bug seems to be present since Acrobat 8 and the Acrobat Developper Team did not fix it yet. I am a programmer and I know that you need only 5 minutes to fix this bug. WHY IT HAS NOT BEEN FIXED YET???
    It's horrible to deal with this bug...
    I hope Acrobat Developper Team heard me and will fix this ASAP.
    Thank you.

    We have had tons of discussions about this problem.  I would love it if Adobe would fix this problem.  In the meantime, one thing we are testing in our environment, and we think it is successful, is to set Preferences to "never view in PDF/A mode'.  Maybe that can help you.

  • Changing properties in JTable

    Hi
    New to Java but with extensive Borland Delphi/C++ experience.
    Using NetBeans I've added a form to my project and added a JTable to the form. However I cannot seem to be able to alter the rowCount or the columnCount in a JTable's properties....why is that?
    And how do change their values?

    in netbeans just right-click on one of the created rows in jtable
    not on the empty space in jtable because that would take you to the
    properties of jscrollpane(netbeans automatically put jtable on jscrollpane). After doing that just reduce the number of rows and
    columns.

  • Using Excel macros & change properties

    Hi,
    1) my program use Excel macro via a runtime.exec(cmd). I want to use JWS to deliver new versions of application but if I have to put my macros in a jar file how can I reach them (no problem with a file propertie or with gif ressources).
    2) how can I change default properties ("Dossier des applications" in French maybe Applications dir in advanced) wich is enabled in the window.
    thanks a lot
    Sophie

    1) my program use Excel macro via a runtime.exec(cmd).
    I want to use JWS to deliver new versions of
    application but if I have to put my macros in a jar
    file how can I reach them (no problem with a file
    propertie or with gif ressources).You have a lot of options how to do this.
    I would try to use the I/O APIs that reads the macro file
    from a web server (InputStream is = url.openStream()) and put it
    in a local file (FileOutputStream = new FileOutputStream(file)).
    Of course you would need a local location where to store it, could
    be hardwired, or asked from the user.
    2) how can I change default properties ("Dossier des
    applications" in French maybe Applications dir in
    advanced) wich is enabled in the window.I do not understand what you want to do. Explain again.
    Regards,
    Marc

  • Screen changes made through JavaScript are not rendered

    Hello,
    What I have done first:
    1) Download <a href="http://www.adobe.com/devnet/livecycle/articles/AddingRemovingTableRows.pdf">http://www.adobe.com/devnet/livecycle/articles/AddingRemovingTableRows.pdf</a>
    2) Open it with Adobe Designer
    3) Save as xdp file
    4) Create simple WD component
    5) Insert InteraciveForm UI element and bound all reqiuired properties
    6) Move AddingRemovingTableRows.pdf to src\configuration\Components\<name of WD component>\ and rename to be the same like in UI elelemnts property "templateSource".
    7) Run application
    Now, the problem: <b>rows are not added</b>! I got the message about max limit BUT screen itself is not changed.
    I placed FileDownload UI elelement and bind it to the same context attribute as pdfSource and tried to download generated PDF. Then I opened it with Adobe Designer and saved as xdp file.
    The diference between initial and generated includes among others:
    Initial:
    <acrobat>
    <acrobat7>
      <dynamicRender>required</dynamicRender>
    </acrobat7>
    </acrobat>
    Generated:
    <acrobat>
    <acrobat7>
      <dynamicRender>forbidden</dynamicRender>
    </acrobat7>
    </acrobat>
    Could some one give me idea how make script (which adds rows to table) running?
    Thank you!
    Best regards, Maksim Rashchynski.

    Hello Maksim,
    You have to render a 'dynamic PDF' on the server. This can be achieved by using the <a href="https://media.sdn.sap.com/javadocs/NW04s/SPS7/wd/com/sap/tc/webdynpro/clientserver/adobe/pdfdocument/api/IWDPDFDocumentInteractiveFormContext.html#setDynamic(boolean)">setDynamic</a> method of the IWDPDFDocumentInteractiveFormContext interface.
    Regards,
    Philipp

  • Change properties of a cluster element withing an array of clusters

    Hello all,
    I have an array of cluster that is shaped as a line with different display elements.
    A list or a tree wouldn't have made it, so I had to use a cluster and make a table.
    The problem is that I want to change not only the text but also the text color.
    Individually.
    I found this :
    http://www.ni.com/example/30904/en/
    But it change the property in all the clusters in the array, not just the one I need.
    Some people have the same problem :
    http://forums.ni.com/t5/LabVIEW/Reference-to-Array-of-Clusters-with-an-array-element/td-p/1006427
    http://forums.ni.com/t5/LabVIEW/Different-set-of-values-for-two-rings-in-an-array-of-clusters/m-p/10...
    http://forums.ni.com/t5/LabVIEW/array-of-clusters-get-references-to-all-the-clusters/td-p/1079456
    http://forums.ni.com/t5/LabVIEW/How-can-I-reference-the-properties-of-a-control-in-a-cluster-in/m-p/...
    http://forums.ni.com/t5/LabVIEW/Writing-only-to-certain-cluster-elements-in-an-array-by/m-p/2200728
    http://forums.ni.com/t5/LabVIEW/Update-Properties-Of-One-Control-In-An-Array/m-p/3015501
    http://forums.ni.com/t5/LabVIEW/Array-of-clusters-and-in-the-cluster-is-a-bar-meter-how-can-I/m-p/15...
    http://forums.ni.com/t5/LabVIEW/Property-node-of-a-control-inside-of-cluster-inside-an-array/m-p/946...
    Obviously, while in a list/table or tree you can change the property of an individual
    cell (font, color) you cannot do it within an array of cluster, by some sort of magic,
    the property of a cluster element (font, color) are all linked together, hence rendering
    the use of an array worthless.
    A possible hack is proprosed by using control masking, setting one visible and the
    other invisble, swapping their position, whatever. It's a hack you have to perform,
    hence add another code to maintain.
    Is that still the case or is there now a more official way to handle individual cluster
    properties, not just its data ? After all that's a common real-life example that should
    be handled by Labview. In my opinion.
    David Koch
    Solved!
    Go to Solution.

    altenbach wrote:
    One of the elements could be a 2D picture indicator of about the same size. You can write text in any color using picture functions.
    Here's what I had in mind. Seems to work just fine (I would fine-tune the font, picture border, etc. but this should get you started).
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    ColorText.png ‏13 KB
    ColorText.vi ‏9 KB

Maybe you are looking for