This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Problem with Multiselect in CMII Wizard

dennis - Wednesday, December 15, 2010 2:19 PM:

 

Looking through the source code for the CMII Wizard I noticed that it appears to be written in a manner that allows the user to multiselect items from the main grid and act on them. However, multiselect does not work in the interface. To enable multiselect in the CMII Wizard, add the following line 

treeControl.setMultiselect(true);

to the rest of the treecontrol. statements in the block of code following these lines of code, 

 

<script language="jscript" for="tree" event="GridStart(isSuccess)">

// ----  MAIN TREE -----------------------------------------------------

treeControl=document.tree;

You should now be able to multiselect in the grid.

 

 

 

 

 



pottsm - Wednesday, December 15, 2010 3:30 PM:

Dennis,

 

Which method is that in?



dennis - Wednesday, December 15, 2010 3:56 PM:

Sorry about that, I wasn't very clear.

The CMII wizard is driven by a Form named CMII Affected Items Wizard. So search for, lock, and open that form. On the form is an HTML control named html0. On the Field Type tab, in the HTML Code box is about 1700 lines of HTML and javascript. Select in the box and type control^A to select everything and control^C copy everything (the edit menu is grayed out). Open notepad and paste the contents of the clipboard into it. Search for the lines in the above post and make the change. Select everything in notepad and copy it to the clipboard. Go back to Innovator and select everything in the HTML Code box with control^A. I like to delete everything in the box before I paste it, so hit the delete key and control^V to paste. Save, Unlock and Close the form and you should be all set.



pottsm - Wednesday, December 15, 2010 4:48 PM:

hmm... looks like the multi-select is already enabled in 9.2, it's set at the beginning of the affectedOnLoad function

 

it would be nice to be able to multi-select in the pop-up dialog when there are multiple results to your search.



dennis - Wednesday, December 15, 2010 5:01 PM:

In your version does the line treeControl.setMultiselect(true); have commented lines above and below that begin with //dal ?

The "nice to have" that you suggested would be really nice. I think it would be a pretty big change though. The whole wizard is designed from the point of view of working with a single part. I guess the obvious alternative would be to search for part 1, make the selections and search for part 2.



pottsm - Wednesday, December 15, 2010 5:04 PM:

yep..

 

function affectedOnLoad() {    //fires when the last grid "notTree" is loaded and starts.

//DAL - put the treeControl in multiselect. It looks like it was configured for multiselect before but not working.
    treeControl.setMultiselect(true);
//dal



dennis - Wednesday, December 15, 2010 5:17 PM:

That means that you have the CMII Wizard solution with the Bulk Change addition, not the standard CMII Wizard. The multiselect of the bulk change wizard was already fixed. Is multiselect working in your environment without making any changes?



pottsm - Thursday, December 16, 2010 12:50 AM:

yep, the multi-select is working.  when i read your post initially, i thought it would allow multi select in the pop-up as mentioned in the previous post.  unfortunatly that's not the case, but the multi-select in the main window does work

 

thanks