Additional properties - multiple changes of a field

Hello,
I am creating a custom component based on a Google Maps component which shows circles of different colors on a map. My idea is to use the Additional Properties window to modify the colors of circles that I have already displayed.
I created a small additional properties sheet in order to change the colors of my circles, which works great in design studio as shown in the pictures below. Note: initially, all circles were red.
In the first image, the color for the circle over Lausanne is changed to blue; and in the second the color for the circle over Sion is changed to black.
In the component, both changes are visible, however once I execute it in a browser only the last change is applied, as shown below.
My question is the following: is there a way to save multiple changes of a same field in the additional properties window? I would like to avoid having multiple identical forms for each circle if possible.
Any insight on how I could approach this problem would be appreciated. I have tried several different approaches such as for example pushing all modifications into an array, without any luck.
Thank you very much for your help!
Michael

Unfortunately I have not figured out how to get it to work. I implemented the following getter/setter in my component.js:
this.circleColors = function(value) {
       if (value === undefined) {
            return JSON.stringify(myCircleColors);
       else {
             if (value != "") myCircleColors = JSON.parse(value);
             return this;
where myCircleColors is an internal array.
Also, I added a circleColors property (type String) in my .xml file, and I still have the same issue as earlier: only the last modification to the array is kept.
Is this code correct, or did I missunderstand your explanation?
Note: the method is called when a modification is done to a color field in the additional properties window

Similar Messages

  • When combining multiple PDF's, the field properties change

    When combining multiple PDF's, the field properties for the Font and/or the "Scroll long text" checkbox change settings. What is causing this to happen?

    Thank you for the prompt reply. I do indeed have the same field name across multiple files, but they are all set the same in their individual files.

  • Set focus on item that selected in multiple-selection list box field in infopath

    Hi
    I have  multiple-selection list box field in infopath that have for example 40 items. (I customize sharepoint list with infopath),then
     publish infopath form in to sharepoint list. users want to add new item,when they selected or checked each item in multiple selection list box, after that automatically control focus on first item, but I want to focus remain on that item
    I was selected. Why this happen?! I also set postback settings to “never” in multiple-selection list box properties. But didn’t work.
    Thanks.

    Hi,
    According to your post, my understanding is that you wanted  to find several columns based on user selection of checkboxes in one of the Multiple-selection List Box.
    I recommend to customize the form to concatenate values from choice field (with multiple values) into single line text box, and then hide the fields based on the text box value.
    We can follow the steps as following:
    Add a text box control(filed 3) on the form to hold the value selection in the multiple selection list box.
    Set the default value for the text box control as
    substring-after(eval(eval(Value, 'concat(., ";")'), ".."), ";")
    (you need to change the ‘Value’ in the formula to your multiple selection list box name: filed1).
    Add the conditional formatting on the flied: flied 3 does not contain value (you need to change the ‘Value’ in the formula to your multiple selection list box value.).
    In addition, you can add Formatting action to hide the text box control.
    Here are the result screenshots for you to take a look at:
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Multiple Page Contents Page Fields In Custom Page Layout SP2013

    I'm rather new so bare with me.  I'm trying to add multiple page content page fields with snippets to a custom page layout html file in SP2013 Designer.  Once I add the snippet and publish, I review the page and any text written
    in the last created page content box saves for both page content boxes instead of saving unique text in both.  How do you change the snippets to where they are unique snippets and won't be referenced as the same one? 
    Any help is greatly appreciated.
    Thanks,
    SP2013Newbie

    ok thnaks a lot for the reply. in my form has 6 pages. so i want to copy only first page half page data ( content & fillble fileds) in to new pdf page. so is this possible ???

  • SQL Query -How2bring multiple results into one field using Formatted Search

    Hi Everyone
    i am trying to bring in the results of the field dbo.Lot_ITEM.LOT using a formatted search into a row level using the following query:
    SELECT     dbo.LOT_ITEM.LOT
    FROM       dbo.DLN1 INNER JOIN dbo.LOT_ITEM ON dbo.DLN1.ItemCode = dbo.LOT_ITEM.ITEM
    WHERE     dbo.LOT_ITEM.ITEM=$[DLN1.ItemCode]
    however the result of the dbo.Lot_ITEM.LOT field could be more then one value depending on how many lots are assigned for that item
    (for example this query would be similar to assigning batch/serial numbers to an item being despatched - as you can choose multiple batches/serials depending on the quantities available and required and then move from the left to the right side of the selection window) if that makes sense!
    is it possible to bring in the multiple results into one field? and how can i amend the above query to include this?
    Thankyou in advance :o)
    Edited by: Asma Bi on Apr 23, 2008 7:22 PM
    Edited by: Asma Bi on Apr 23, 2008 7:24 PM

    Hi Suda
    Thanks for replying :o) but im not sure about the query?
    just to simplify it (as the query im working with is to do with 3rd party addons) i have used the serial/batchs field instead and used standard demo database fields from SBO 2005 sp01:
    SELECT     dbo.ixvSerialNoFact.SRI1_IntrSerial
    FROM       dbo.DLN1 INNER JOIN
                    dbo.ixvSerialNoFact ON dbo.DLN1.DocEntry = dbo.ixvSerialNoFact.SRI1_BaseEntry
    WHERE     dbo.ixvSerialNoFact.ItemCode='g1000' and dbo.ixvSerialNoFact.SRI1_BaseEntry = '193'
    The above brings me the relevant results but when i change it to be used in a formatted search:
    SELECT     dbo.ixvSerialNoFact.SRI1_IntrSerial
    FROM       dbo.DLN1 INNER JOIN
                    dbo.ixvSerialNoFact ON dbo.DLN1.DocEntry = dbo.ixvSerialNoFact.SRI1_BaseEntry
    WHERE     dbo.ixvSerialNoFact.ItemCode=$[dln1.itemcode] and dbo.ixvSerialNoFact.SRI1_BaseEntry = $[dln1.DocEntry]
    i cant seem to get it to work - now this may be because the serial number is not allocated until teh record is added to the system, however when this happens i am unable to go back in and manually trigger the query as the delivery note rows cannot be selected!
    i  think as what im originally wanting an answer for is same as this example, im wanting to know if this is even possible?
    Thanks
    Edited by: Asma Bi on Apr 24, 2008 3:53 PM
    Edited by: Asma Bi on Apr 24, 2008 3:55 PM

  • Combining Multiple occurrencesof the same field value into one and Sum prob

    Hi
    I am trying to combine the multiple occurrences of the field values and sum the amount to the target
    Source
    <Record>
    <Item>
    <Item1>1</item1>
    <item2>2</item2>
    <item3>3</item3>
    <item4>4</item4>
    <Amount1>5</Amount1>
    <Amount2>5</Amount2>
    </Item>
    <Item>
    <Item1>1</item1>
    <item2>2</item2>
    <item3>3</item3>
    <item4>4</item4>
    <Amount1>15</Amount1>
    <Amount2>15</Amount2>
    </Item>
    <Item>
    <Item1>1</item1>
    <item2>2</item2>
    <item3>3</item3>
    <item4>4</item4>
    <Amount1>5</Amount1>
    <Amount2>5</Amount2>
    </Item>
    </Record>
    Target
    <Record>
    <Item>
    <Item1>1</item1>
    <item2>2</item2>
    <item3>3</item3>
    <item4>4</item4>
    <Amount1>25</Amount1>
    <Amount2>25</Amount2>
    </Item>
    </Record>
    I am using MM at present. All fields are KeyFields here. Should check against each other.
    I followed Context setting to the Root Item and Sort, SplitByValue and CollapseContext to achieve the functionality.
    But it checks against each field and not all fields. So either one field has different value, only that perticular field gets into New Node and not the entire record. In this case, i might need UDF i guess. Any UDF help is much appreciated
    Bad Target example of what i am getting
    Source
    <Record>
    <Item>
    <Item1>1</item1>
    <item2>2</item2>
    <item3>3</item3>
    <item4>4</item4>
    <Amount1>5</Amount1>
    <Amount2>5</Amount2>
    </Item>
    <Item>
    <Item1>1</item1>
    <item2>2</item2>
    <item3>3</item3>
    <item4>4</item4>
    <Amount1>15</Amount1>
    <Amount2>15</Amount2>
    </Item>
    <Item>
    <Item1>2</item1>
    <item2>2</item2>
    <item3>3</item3>
    <item4>4</item4>
    <Amount1>5</Amount1>
    <Amount2>5</Amount2>
    </Item>
    </Record>
    Target
    <Record>
    <Item>
    <Item1>1</item1>
    <item2>2</item2>
    <item3>3</item3>
    <item4>4</item4>
    <Amount1>25</Amount1>
    <Amount2>25</Amount2>
    </Item>
    <Item>
    <Item1>2</Item1>
    </Item>
    </Record>
    In the above scneario, only Item1 returns the value into different node. But i like to have entire node values into the record, if one value changes in the entire record.
    Appreciate your help with the UDF in advance
    </Record>

    I think you are looking for string aggregation.
    The following are the replies posted by me in the forum recently on the same case.
    they might help you.
    Re: Concatenating multiple rows in a table - Very urgent - pls help
    Re: Doubt in a query ( Urgent )
    Re: How to remove words which consist of max 2 letters?
    Re: output like Name1,Name2,Name3...

  • Create Multiple Signature and Date fields with a custom Toolbar Button

    First off, thanks in advance!  I am a scripting newbie and I am trudging my way through with very little experience with scripting of any kind.  I am good at taking other's scripts and forming them into something I need, but I can't seem to find anything to do what I want.
    Using Adobe Acrobat X, I am trying to create a toolbar button that I can press to create multiple signature and date fields with predetermined locations.
    Below is the script I have that is working to create just a single signature box, but I can't seem to figure out the exact syntax to have that same button create multiple fields.  In total it is 9 signature fields and 9 date fields need to be created.  If you can just give me an example of what the button would look like with multiple scripts?  I was assuming I would set up multiple variables and then in the cExec property of the toolbar button I could just call out all of those variables? 
    var sigswm = "addField('sigSWM', 'signature', '0', [108, 198, 494.64, 72])"
    app.addToolButton({cName: "dotbutton", cExec: sigswm, cLabel: "Place Signature and Date Blocks",});
    Thanks in advance for any help you can provide.
    Billy Sweeney

    Thanks!  That was probably the only thing I didn't try.
    I do have one more question.  What I want is when the signature field is clicked it fills out a specific date field. I beleive the script I want would be:
    var currentTime = new Date()
        var month = currentTime.getMonth() + 1
        var day = currentTime.getDate()
        var year = currentTime.getFullYear()
        var signingTime = day +"/"+month+"/"+year
        var f = this.getField("dateSWM"); 
        f.value = signingTime;
    I found this on another thread that mentioned it could be placed in the Signed tab of the signature properties dialog.  I am assuming it would be placed in my button script file as a setAction script for each signature, but I am not real sure exactly where or how?

  • [svn] 3552: This patch contains multiple changes, mostly renames, outlined below:

    Revision: 3552
    Author: [email protected]
    Date: 2008-10-09 15:07:55 -0700 (Thu, 09 Oct 2008)
    Log Message:
    This patch contains multiple changes, mostly renames, outlined below:
    1.Rename properties in FxComponent: skinObject -> skin, skinZZ -> skinClass.
    2.Rename property in Skin: data -> fxComponent (this also means Skin doesn?\226?\128?\153t implement IDataRenderer anymore)
    3.Renames in DataGroup: Mostly around "skin" to "renderer" to get terminology correct
    4.Random other cleanups: For instance changing typing of "*" to "Object" in ItemsComponent and DataGroup or removing some un-used imports in Group and GroupBase.
    5.Lots of cleanup in flex4tests to deal with renaming of classes and renaming of properties
    6.Gumbo-manifest.mxml - typo...some files listed as mx.componentss.* instead of mx.components.*. This file is going away as all components are moved into the 2009 namespace, but we'll fix this for now.
    7.Defaults.css ?\226?\128?\147 FxDataComponent should be FxDataContainer.
    8.SystemManger fix: this was in the previous SystemManager but got overwritten by a bad merge. Jim?\226?\128?\153s aware of the issue, and I?\226?\128?\153m checking in the fix for it.
    QE: Yes - Joann and Steve have pre-emptively made the changes
    Doc: Yes
    Bugs: SDK-17056, SDK-17174
    Reviewer: Chet, Evtim
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17056
    http://bugs.adobe.com/jira/browse/SDK-17174
    Modified Paths:
    flex/sdk/trunk/development/eclipse/flex/flex4test/src/AddItemsTest.mxml
    flex/sdk/trunk/development/eclipse/flex/flex4test/src/EffectsProperties.mxml
    flex/sdk/trunk/development/eclipse/flex/flex4test/src/NewEffects.mxml
    flex/sdk/trunk/development/eclipse/flex/flex4test/src/RemoveItemsTest.mxml
    flex/sdk/trunk/development/eclipse/flex/flex4test/src/ScrollbarFrenzy.mxml
    flex/sdk/trunk/development/eclipse/flex/flex4test/src/components/AnimationPropertiesForm. mxml
    flex/sdk/trunk/development/eclipse/flex/flex4test/src/components/CircularScrollBar.as
    flex/sdk/trunk/development/eclipse/flex/flex4test/src/flex4test.mxml
    flex/sdk/trunk/development/eclipse/flex/flex4test/src/skins/CircularScrollBarSkin.mxml
    flex/sdk/trunk/development/eclipse/flex/flex4test/src/skins/MyVScrollBarSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/defaults.css
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Skin.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxComponent.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxApplicationSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxHScrollBarSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxHSliderSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxNumericStepperSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxSpinnerSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxVScrollBarSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxVSliderSkin.mxml
    flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as

    Hi, Nubz!
    Yes, I just saw that, and am still chuckling.
    Maybe that will mollify the Jive gods?
    Thanks again,
    Jim

  • Additional Item Added to InfoPath Choice Field Missing from Designer

    I have an InfoPath 2013 form submitting back to a SharePoint 2010 Forms library.  I had published the form, promoting the various fields, and everything was working properly.  I then needed to add an additional option to two different choice fields. 
    I added them in InfoPath, re-published the form and the options are available and selectable when I use the form.  They show up in the SharePoint forms library on submit. 
    I'm now building a workflow for this library and I'm trying to add a condition that uses the added item (Global) from one of the choice fields (Region).  It is not showing as an option.  I've refreshed the list and workflow in SP Designer. 
    I've re-published the form from InfoPath.  I've cleared the cache for SP Designer, InfoPath and Internet Explorer.  I have never had this happen before and have no idea how to fix.  Suggestions?  Thanks in advance for any help!
    Here is what is in the InfoPath form:
    And here is what is in SharePoint Designer:

    Hi,
    I have done a test. I can re-appear your issue.
    Refer to the following:
    I published the form to SharePoint 2010 Forms library, the type of the Region column is a “single line of text”.
    Then I automatically changed the type of the Region column to “choice” and added the options to the choice filed.
    After add an additional option to the choice fields(Region) in InfoPath, I re-published the form to SharePoint 2010 Forms library. when I click new document,
    the new added option showed up in the SharePoint forms library on submit, but It is not showing as an option in SharePoint Designer.
    I found the choice column Region didn’t update the new added option, I need to add it
    automatically. Then It will showing as an option in SharePoint Designer.
    For your issue, Go to Library Settings->edit “Region” column->add the value(Global) choice into the column.
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • Master-detail: detail field not displayed after changed by master field

    I want to use the Depends on item with Clear/refresh value functionality in a master detail situation. Within the same group it is no problem to use the setter method of a field to change a second field and then displaying this new value. But in the detail group, I can not select items from the master group as a depends on item.
    In the setter of the master field, the value in a field for each row in the detail (table layout) is updated. The only problem is that this updated value is not displayed, the old value doesn't change. When saving the changes, the displayed value is committed to the database. When de updated field is not displayed at all, the correct value is saved, so I know the detail field is updated.
    How can I make sure the displayed value in the detail is displayed after changeing a master field? I already gave the detail field the correct partial trigger.

    Wouter,
    I guese you don;t see the changed value when you display the detail item because after the depends on item update changed the detail item, JSF procesing continues and the detail table changes are sent to the server which will override again the detail item attriibute, resetting it to the old, still displayed value.
    So, the trick is to get PPR working. Make sure the partialTYriggers property of the detail item is set to the value of the id property of the master item. If it still doesn't work, try setting the partial triggers property on the table, instead of the individual item.
    Steven Davelaar,
    JHeadstart team

  • Who has changed the Custom Field value?

    Dears,
    Need to know the information regarding how to fetch that who has changed the Custom field value from PWA/MPP.
    Example:
    There is a PDP (say ProjectInfo):
    There is a Custom Field added to that PDP (say Project Status = In Progress).
    Now for ProjectA, someone has checked out and changed the Custom Field "Project Status" from "In Progress" to "Closed".
    I need to fetch the information regarding who has changed that Custom field.
    In which direction should I move: Event Handlers, PSI???? Any other stuff?
    Thanks & Regards,
    Shravan

    Hi Shravan,
    I'm not a developer but I do know that you can use an event handler pushing the resource name and date in custom fields.
    Another way is to use a 3rd-party tool like
    FluentPro Audit Tool.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • To Display Output in Grid ALV with change of some field display total with

    Hi Masters,
    I m working on ALV in which  i have to display output with the following format.
    Header
    "Some String"                                                             date/time                                                                               
    User:XYZ01       page 1 
    Line
    1st field    2nd    3rd     4th       5th   6th    7th   8th   9th  10th field
    x               y       z        A        B     C       D     E      F       G
    BLANK..............................................................................                            
                          "total 3rd+4TH"           P        Q     R      S        T       
    same thing for every change of 4th field .
    So the problem is with inserting the line with string "Total of 3rd+4th" in the output .
    Can Anyone help me out?
    Thanks ,
    Varlani Amit

    Hi,
    Use control-break statement ON-CHANGE for the 4th field, and do the changes.
    regards,
    sri

  • In Mail can I change my "To" field to From or sender

    In Mail my inbox shows 3 fields "To, Subject, Date Recieved" Can I change the "to" field to from or sender. I know who the mail is to, it's always to me after all it's my mail I'm checking. I would like to know the sender so I can better decide which mail to open and read. Sometimes I'm looking for a response from a paticular person.

    Hi Ubettergetit: Actually it is quite easy to get rid of that little annoyance. With mail open, Right (Control) Click on one one of the headings in Mail. (To, From, Subject....). This will bring up a menu that allows you to select which headings you would like to see, change it as required.
    Enjoy
    Stedman

  • Background job on change of some field!!

    HI
    i have to trigger a background job on change of some field value (status field chages it's values from w to U).
    so how to go about the same..
    how to call a background job once some fields changes!!
    regards
    Gunjan

    1. You can use JOB FM's to invoke the job.
    2. You can call the FM ( Background execution program ) in background.
    CALL FUNTION .... IN BACKGROUND.
    Regds
    Manohar

  • How can we change the input field on a view stop showing zeros

    Hello,
           To make screen look consistent with other character input field. How can we change the input field on the view stop displaying zeros even though the data type is NUMC and data type should not be change?
    Edited by: sap_learner on Mar 25, 2010 5:44 PM
    Edited by: sap_learner on Mar 25, 2010 5:49 PM
    Edited by: sap_learner on Mar 25, 2010 5:55 PM

    hello Manas Dua,
                           Thanks for your help. I am able to resolve my problem.
    My code will help  the future comers to resolve this kind of issues.
    *The code is applied to method WDDOINIT of the default view.
      DATA lo_nd_terms_input    TYPE REF TO if_wd_context_node.
      DATA lo_nd_terms_input_i TYPE REF TO if_wd_context_node_info.
      DATA lv_zeros             TYPE wdy_attribute_format_prop.
      lv_zeros-null_as_blank = 'X'.
      lo_nd_terms_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
      lo_nd_terms_input_i = lo_nd_terms_input->get_node_info( ).
      lo_nd_terms_input_i->set_attribute_format_props(
        EXPORTING
          name              = `ENTER THE ATTRIBUTE NAME`
          format_properties = lv_zeros     ).
    Edited by: sap_learner on Mar 26, 2010 5:02 PM

Maybe you are looking for

  • External Display native resolution suddenly not available

    Hello, I'm using a Westinghouse LCM-22w3 external monitor with my MBP, connected via a DVI-to VGA adapter. I've used this computer/monitor setup for quite some time with no problem. Yesterday, I hooked my computer up to my 46" Samsung HDTV with no pr

  • Can't Restore from Time Machine Backup???

    I was trying to revert my OS to Snow Leopard from Lion, and thus I backed up all my files first just in case something went wrong. I however forgot that you cannot restore a backup from a newer OS to an older one, so I redownloaded Lion to set things

  • Cannot install windows media player

    i downloaded windows media player for mac but cannot install it on my macbook pro. its giving me an error that it is not supported on this system. Is there an easy way to install it, or is there a version avaialbe for macbook pro?

  • EmailSubmitButton's "Select Email Client" dialog different in Reader XI?

    With Adobe Reader X we used to get a dialog looking as below: When selecting Internet Email one was offered to save the file as XML. With Reader XI it looks like (in Swedish): In this dialog there seems to be no way of saving the data as XML. Instead

  • HD-DVD Freezes at same place every time.

    I recently created an HD-DVD on a DVD-5 disc, using FCP 6.0, Compressor, and DVD Studio Pro. It's looks and plays great, but it freezes almost everytime at the same spot on the disc. 12:45, of a disc that is 13:00. I have created 5 discs of the same