-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Just as a first thought, there are spaces in the internalName for the
Anopheles option. Internal names should not have whitespace or
Javascript-sensitive symbols in as this can cause weird problems
elsewhere in the software. Try removing the space (replacing with an
underscore is the usual solution) and see if you still have the problem.

cheers,
Richard

seth redmond wrote:
> I seem to be having some difficulty with setting up a push action. It's
> all been put together via the "make dropdown" and "automate push action"
> options in marteditor; no errors are returned when I do this or when I
> validate. However when the javascript is generated, instead of
> requesting 'species' and filling in 'seq_regions' it requests
> 'seq_region' (despite the push action being within spp).
> 
> So what am I missing here?
> 
> thanks
> 
> -s
> 
> 
> the relevant xml (prettified a bit) and javascript is below.
> 
>> <FilterCollection displayName="Location" internalName="Location">
>>     <FilterDescription    displayName="Species"
>>                     field="spp"
>>                     internalName="spp"
>>                     key="reporter_id_key"
>>                     legal_qualifiers="="
>>                     qualifier="="
>>                     tableConstraint="vb__reporter_mapping__dm"
>>                     type="drop_down_basic_filter">
>>         <Option     displayName="Anopheles gambiae"
>>                 internalName="Anopheles gambiae"
>>                 isSelectable="true"
>>                 value="Anopheles gambiae">
>>             <PushAction    
>> internalName="seq_region_name_text_push_Anopheles gambiae"
>>                         ref="seq_region_name_text">
>>                 <Option displayName="2L" internalName="2L"
>> isSelectable="true" value="2L" />
>>                 <Option displayName="2R" internalName="2R"
>> isSelectable="true" value="2R" />
>>                 ...
>>             </PushAction>
>>         </Option>
>>         ...
>>     </FilterDescription>
>>     <FilterDescription     displayName="Seq region"
>>                     field="seq_region_name_text"
>>                     internalName="seq_region_name_text"
>>                     key="reporter_id_key"
>>                     qualifier="="
>>                     tableConstraint="vb__reporter_mapping__dm"
>>                     type="drop_down_basic_filter" />
>> </FilterCollection>
>>
>>
>>> function setVBSEQ_REGION_NAME_TEXTOptions( )
>>> {
>>> ...
>>>   // Get forms to process
>>>   var fromSlct    = document.settings.vb_seq_region_name_text;
>>>   var toSlct = document.settings.vb_seq_region_name_text;
>>>
>>>   var new_options = new Array( "---" );
>>>   switch( fromVal ){
>>>     case "Aedes*aegypti":
> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFL08Q4C5LeMEKA/QRAhEhAJwKlB5ifKh7HtPsuSyNBPFqtsBmVwCeKG5O
S/bb4+MC3Xvy232lblFxbrw=
=hYUg
-----END PGP SIGNATURE-----

Reply via email to