Ticket #60 (closed enhancement: fixed)

Opened 4 years ago

Last modified 3 years ago

Templatechooser: add/modify option

Reported by: t.w.abma@… Owned by: business@…
Priority: major Milestone: Should have
Component: Import wizards Version:
Keywords: Cc:
Product: Operating system:
URL: Hardware:

Description (last modified by work@…) (diff)

The importer does not allow you to add/modify templates. When you have created a study and want to import subject data, templates cannot be added or modified. @see study create wizard for examples

Change History

Changed 3 years ago by work@…

This is relatively easy to implement. Have a look at  https://wiki.nbic.nl/index.php/DbNP_Technical_Documentation#Select_Add_More

I use this in wizard.js to initialize the 'Select Add More':

// handle template selects
new SelectAddMore?().init({

rel : 'template',
url : baseUrl + '/templateEditor',
vars : 'entity,ontologies',
label : 'add / modify..',
style : 'modify',
onClose : function(scope) {

refreshWebFlow();

}

});

Also, you need to encrypt the entity as in the templateEditor classes are dynamically instantiated. See templateSelect in the WizardTagLib?.groove for more information on how to do that...

Changed 3 years ago by work@…

  • description modified (diff)

Changed 3 years ago by business@…

  • milestone set to 0.7

Changed 3 years ago by t.w.abma@…

  • owner changed from t.w.abma@… to business@…
  • status changed from accepted to assigned

Implemented in revision 1171, works fine for me.

Changed 3 years ago by business@…

  • owner changed from business@… to t.w.abma@…

On CI it does not work... an error appears when you click add/modify:

HTTP Status 404 - /gscf-0.6.0-test/gscf/templateEditor

type Status report

message /gscf-0.6.0-test/gscf/templateEditor

description The requested resource (/gscf-0.6.0-test/gscf/templateEditor) is not available.

Changed 3 years ago by t.w.abma@…

  • owner changed from t.w.abma@… to business@…

Fixed, added baseUrl. Works now on CI.

Changed 3 years ago by business@…

  • status changed from assigned to closed
  • resolution set to fixed

works fine

Note: See TracTickets for help on using tickets.