On 13 Oct 2006, at 11:17, seth redmond wrote:
Ah, this was actually me trying random things earlier on, I'm replaced
the original internalNames, restarted it and still nothing doing. Is
there any way to force where the push_action reads from? or is it all
inherited from the xml tags?
Java script is generated from whatever is in XML so
you need to set it up correctly in MEditor. Did you try
looking at similar setups in uniprot or ensembl_gene datasets?
There are also some examples in the docs. Following
Ensembl gene dataset example:
1. Generate naive for homo sapiens ensembl genes
2. Choose filter chromosome
3. Make drop down
4. Choose automate push action (from the level of chromsome filter)
5. Type filter name 'band' when prompted
This should generate the correct push actions for that filter
not sure if this is the help you looking for :) get
back to us if you need more info,
a.
-s
On 13 Oct 2006, at 09:32, Richard Holland wrote:
-----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-----
------------------------------------------------------------------------
-------
Arek Kasprzyk
EMBL-European Bioinformatics Institute.
Wellcome Trust Genome Campus, Hinxton,
Cambridge CB10 1SD, UK.
Tel: +44-(0)1223-494606
Fax: +44-(0)1223-494468
------------------------------------------------------------------------
-------