Jazz Register Log in
Jazz Forum Welcome to the Jazz Community Forum

Welcome to the Jazz Community Forum

Connect and collaborate with IBM Engineering experts and users

Save a Workitem with dojo

 Hello,

I have already coded some custom Widgets with dojo for RTC 3.0.1 editorPresentations to connect some custom APIs of my customers application landscape. 

Now i have a widget that takes some arguments and after clicking a button is intended to save the current workitem and change the view to another based on the arguments given.

I already achieved to switch to another workitem without saving the current one using this:
var url = WorkItemUtil.getNewWorkItemUri2(args);
window.location = url;
Now i tried to just use the workitem editor to save my current workitem before doing the above like this:
var editor = com.ibm.team.workitem.web.ui.internal.view.editor.WorkItemEditor;
editor.save();
But this gives me a "is not a function" error. Am I Missing something?

0 votes



One answer

Permanent link
 I finally used
  
this.params.parentController.save();
	
which works as intended. I think it is important to always go over "this" to achieve something workitem related.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,997
× 6,142

Question asked: Aug 14 '12, 2:06 p.m.

Question was seen: 6,630 times

Last updated: Aug 15 '12, 6:26 a.m.

Confirmation Cancel Confirm