Home
Web CMS (TeamSite)
Datasource default options issue
chris__d
Hi,
I've been putting datasources into one of my workflows, but I'm having problems with default options.
I'm hoping to use a datasource to automatically set the user for a particular workflow task based on the branch where the workflow was started. I also don't want to have to reveal this option to the user on the instantiation screen, if possible, because that just means one more thing they have to click, and one more option for confusion.
I've set the owner of this task in the workflow to one of my datasources - but there lies my problem - this sets a default option, or a blank option, which is sometimes different to what I've set in the branch. How can I remove this default and just have it look up whoever is assigned to the role in the branch? It still remembers the default that is written within default_config.xml.
I've hit a bit of a barrier at this point, so suggestions on what I might try next would be welcome.
Regards,
Chris.
Find more posts tagged with
Comments
kalpanat
Did you get an answer of how to reset the dafault value? If so please let me know how you did it as i am having the same sort of issue.
Thanks
Faizi
You have to do custom configuration for each branch.
From: Administration Tab -> Configure Workflows.
Select a workflow then branch and set global variables as well as Datasource variable. In this way you can achieve your requirement. You may set it hidden and read only then it will not seen on instantiation screen.
SanjeevR
hi,
Even i m facing the same issue.DataSource is adding extra space as the default option. Can some one please provide me the solution how to avoid the extra space which is getting added by default.
Thank you.
Matias
I know this is an old thread. But I ran into the same issue, and the following change fixed it:
Locations of files modified:
/usr/Interwoven/ApplicationContainer/server/default/deploy/iw-cc.war/datacapture/datasourceJs.jsp
/usr/Interwoven/ApplicationContainer/server/default/deploy/iw-wcmweb.ear/iw-dcf.war/datacapture/datasourceJs.jsp
Change Made:
Original:
String responseStr = " ";
With Change:
String responseStr = "";
Snnipet: Changed:
else if(obj instanceof Map)
{
if(LOGGER.isDebugEnabled())
{
LOGGER.debug("MapDSResult = " + (Map)obj);
}
Map map = (Map)obj;
String responseStr = " ";
Set keys = map.keySet();
Iterator keysIte = keys.iterator();
while(keysIte.hasNext())