Quantcast
Channel: Adobe Community: Message List - XMP SDK
Viewing all articles
Browse latest Browse all 801

FileInfo XMPComboBox

$
0
0

Hello,
I am creating a FileInfo Panel, I noticed that when I create a XMPComboBox, if no one makes a selection the data isn't saved. Is there away to force the data to be written even if the field isnt changed? Example: I have a Gender combo box, Gender : Female is the first and default. If they want Female, they wouldnt change anything, so the data isnt being written.

I am guessing I could call the xmpWriteHandler, but I dont know syntax to have it store the value.


Screen Shot 2014-07-09 at 12.45.50 PM.png


Some of the code:


[Bindable]

  private var model_gender_list: ArrayCollection = ZStringManager.getDictionaryFrom("model_gender_list=Female{Female};Male{Male}");

 

import com.adobe.xmp.events.XMPEvent;

private function xmpWriteHandler(event:XMPEvent):void{

}

 

<fi:XMPFormItem label="Model&apos;s Gender:">

  <fi:XMPComboBox dataProvider="{model_gender_list}" xmpWrite="xmpWriteHandler(event)" xmpPath="en:model_gender" />

</fi:XMPFormItem>

 

Thanks

Dean


Viewing all articles
Browse latest Browse all 801

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>