Issue in 2-way picklist

Hi,

I have 3 picklists:One is 2-way list(coreRoles) and other two are 1-way
picklists (coreFunctionalTask and coreAppList).

On click/focus on left-side of any role in 'coreRoles' picklist, I need
to populate data on 'coreFunctionalTask' and 'coreAppList' field.

I am using following code:

var varCoreRoles=form.getValue("coreRoles");
form.setValues('coreFunctionalTask',IDVault.get(null,String(varCoreRoles),
'Role', 'chwUPRoleFunctionalTask'));
var appAccessArray=new Array();
var appArray=new Array();
var tempArray;
appAccessArray=IDVault.get(null,String(varCoreRoles), 'Role',
'chwUPApplicationPermission');
for(var i=0,j=0;i<appAccessArray.length;i++,j++)
{
tempArray=new Array();
tempArray=appAccessArray[i].split("-");
appArray[j]=tempArray[0];
}
form.setValues("coreAppList", appArray);

This code is perfectly working fine, if my 'coreRoles' field is 1-way
picklist and also when i select any values from left-side to right-hand
side(2-way picklist) and then click/focus on any roles in left-side, i
am able to populate the correct values in 'coreFunctionalTask' and
'coreAppList' field.

What I need is that even if no roles in there in the right-side and all
the roles are in left-side, whenever i click/focus on any role in
left-side,then I should be able to populate the values in target field.

Am I missing anythign in my pusedocode? Please advice.

Regards,
Vishal Mittal


-- 
vishalmittal1981
------------------------------------------------------------------------



0
vishalmittal1981
3/24/2009 4:06:03 PM
novell.id-manager.userapp 4379 articles. 0 followers. Follow

1 Replies
345 Views

Similar Articles

[PageSpeed] 25

On 03/24/2009 10:06 AM, vishalmittal1981 wrote:

> Hi,
> 
> I have 3 picklists:One is 2-way list(coreRoles) and other two are 1-way
> picklists (coreFunctionalTask and coreAppList).
> 
> On click/focus on left-side of any role in 'coreRoles' picklist, I need
> to populate data on 'coreFunctionalTask' and 'coreAppList' field.
> 
> I am using following code:
> 
> var varCoreRoles=form.getValue("coreRoles");
> form.setValues('coreFunctionalTask',IDVault.get(null,String(varCoreRoles),
> 'Role', 'chwUPRoleFunctionalTask'));
> var appAccessArray=new Array();
> var appArray=new Array();
> var tempArray;
> appAccessArray=IDVault.get(null,String(varCoreRoles), 'Role',
> 'chwUPApplicationPermission');
> for(var i=0,j=0;i<appAccessArray.length;i++,j++)
> {
> tempArray=new Array();
> tempArray=appAccessArray[i].split("-");
> appArray[j]=tempArray[0];
> }
> form.setValues("coreAppList", appArray);
> 
> This code is perfectly working fine, if my 'coreRoles' field is 1-way
> picklist and also when i select any values from left-side to right-hand
> side(2-way picklist) and then click/focus on any roles in left-side, i
> am able to populate the correct values in 'coreFunctionalTask' and
> 'coreAppList' field.
> 
> What I need is that even if no roles in there in the right-side and all
> the roles are in left-side, whenever i click/focus on any role in
> left-side,then I should be able to populate the values in target field.
> 
> Am I missing anythign in my pusedocode? Please advice.
> 
> Regards,
> Vishal Mittal
> 
> 


All the events are tied to the right hand side of the 2 picklist. So
what you are trying to do cannot be done.
0
John
3/25/2009 10:25:33 AM
Reply:

Similar Artilces:

2 way picklist issue
Hi, I have a 2 way picklist. I am hiding this field on the onLoad event. When a specific condition is met, i am making this field visible through field.show() method. But the 2 way picklist does not appear. Can anyone help me in this regard. Regards Saurabh -- skachru ------------------------------------------------------------------------ Greetings Saurabh, That has been covered in this list, that it is a known bug. Also, you asked the same question on 13-May-2009 in the Thread "2 way picklist show/hide" and were told then that it was a known bug....

2-way picklist display issue
Hi, Is there any way I can get a 2-way picklist to cover 2 fields ? I have created a form where we have everything in 2 columns to conserve space and would like the 2-way picklist to cover both columns, right now it just looks ugly. Either the picklist gets to small or we get a big space between the columns. Thanks -- ----------------------------------- joakim . ganse_@_ accept-it . se ------------------------------------------------------------------------ Hi Joakim, you can use jQuery to rearrange form items and massage the GUI - set "colspan" in yo...

2 way picklist
I have a 2 way picklist on the form. There are some pre-populated values on the right side when the form gets loaded. Now, if the user tries to de-select those values and move them to left side, i need to give a message and a yes, no option. If user selects yes, the value should move to left and if user selects no the value should remain on the right side. but this behaviour should not happen if user moves a value from left to right. Can anybody suggest how can i achieve this functionality. Regards Saurabh Kachru -- skachru -------------------------------------------------...

2 issues with Seamonky 2.2
When I installed SM 2.2 my bookmarks are gone. Second problem is annoying more than a problem, there isn't a little x on the tab to close it. You have to rt click to close the tab. I sure would like to see my bookmarks again. Any ideas how to fix this?? B Sat, 13 Aug 2011 09:34:32 -0700, /Juiceman/: > When I installed SM 2.2 my bookmarks are gone. Second problem is > annoying more than a problem, there isn't a little x on the tab to > close it. You have to rt click to close the tab. As far as I remember, no SeaMonkey version has ever had a little x on...

10.3.1 server, 10.2.2 managed devices any issues?
We have to upgrade our primary servers to 10.3.1 to fix an issue with patch but we do not want to upgrade all the managed devices at this time. So far the test environment seems to be ok with this configuration. Has anyone else ran 10.3.1 on the servers with 10.2.2 devices and had issues, patch problems, etc? Thanks. -- dtemple-sgi ------------------------------------------------------------------------ I recently had 10.2 agents running with 10.3.1 and all seemed ok, I ended up upgrading all the agents as I wanted the patch baselined...but not because I was having...

PickList issue #2
Problem Statement : I have to show (make visible) a two-way picklist(multivalued is true and show two lists is true) on the form when the user selects a radiobutton on the form. to achieve this -onmouseup event on the radiobutton field, the action expression is field.fireevent("showFacility"). -on showFacility event on the Picklist, the action expression is field.show(). But this is not happening on the request form. Please suggest a way out of it -- sharmche ------------------------------------------------------------------------ Greetings, This is a ...

[ID 19991025.007] Build Issues with perl5.005.2 on AIX 4.3.2.0
Hi, I've just completed a good build with AIX 4.3.2.0 using gcc 2.95.1 There were some problems with the hints and I needed to add -lmssa in order to get the math functions to work I've still got the build dir intact so if I can send you anything to help let me know Thanks, Bob French UNIX system manager US Diagnostics Inc bfrench@usdl.com The output from myconfig..... Summary of my perl5 (5.0 patchlevel 5 subversion 2) configuration: Platform: osname=aix, osvers=4.3.2.0, archname=aix uname='aix u-sewpbcbo-vis2 3 4 00059247a100 ' hint=...

RE: [ID 19991025.007] Build Issues with perl5.005.2 on AIX 4.3.2. 0
People, Let me take a bow here, I was rushed and just grabbed the version that was on the gnu page instead of going to CPAN and checking out the README I usually do. If anything I would suggest that the link on the GNU page just point you to the perl source dir on CPAN and leave it to the user to get the right version. The way it looks now you would think that 5.005_02 is the current latest. Anyway I've got 5.005_03 and I'll build it this evening Thanks -Bob French -----Original Message----- From: Elaine -HFB- Ashton [mailto:elaine@chaos.wustl.edu] Sent: Wednesday,...

RE: [ID 19991025.007] Build Issues with perl5.005.2 on AIX 4.3.2. 0
I know but you have a link from there and those of us that work with gcc and other GNU tools tend to use it as a base page. Just a suggestion anyway -----Original Message----- From: Jarkko Hietaniemi [mailto:jhi@iki.fi] Sent: Wednesday, October 27, 1999 3:05 PM To: Bob French Cc: 'Elaine -HFB- Ashton'; M.J.T. Guy; perl5-porters@perl.org Subject: RE: [ID 19991025.007] Build Issues with perl5.005.2 on AIX 4.3.2. 0 Bob French writes: > People, > Let me take a bow here, I was rushed and just grabbed > the version that was on the gnu page instead of going to ...

Two way Picklist issue
i have three 3 fields on my form viz. 1) R1 - trueFalseradiobutton with options "A" , "B" and "C" 2) R2 - trueFalseradiobutton with options "X" , "Y" and "Z" 2) PL1 - two way pick list(initially hidden) 3) PL2 - two way pick list (initially hidden) when i select option "A" on R1, R2 is shown, when "X" option is selected PL1 is shown. on the onchange of PL1, PL2 is shown. now, on the same instance of form, when user switches to option "B" on R1, all the fields (R2, PL1, and PL2) should...

2 way picklist onClick
Hi, I have a requirement of populating a field based on the value selected in a 2 way picklist. Now, if i select more than one value in the 2 way picklist, i need to set the other field as blank. I am using the following code to find the index of the selected value and its value: var index = document.uiform._CoreRoles.selectedIndex; var SelectedValueName = document.uiform._CoreRoles[index].value; Now, when multiple values are selected and the above variables are printed using the alert method, the index and the value of the value that has the lowest index is printed. Can anybody...

displaying 2 way picklist
Hi I have a requirement of making a picklist 2-way dynamically at runtime. Normally we set the show-2lists attribute to true in the properties of the picklist. But how can i achieve this at runtime by writing a piece of code. regards Saurabh -- skachru ------------------------------------------------------------------------ On 05/11/2009 03:46 PM, skachru wrote: > Hi > > I have a requirement of making a picklist 2-way dynamically at runtime. > Normally we set the show-2lists attribute to true in the properties of > the picklist. But how can i ac...

New issue, on a different server... "The 4K memory pool of named cache tempdb_cache (cache id 3, cachelet id 1) is configured too small for current demands (state 2). Transaction progress may cease o
New issue, on a different server... "The 4K memory pool of named cache tempdb_cache (cache id 3, cachelet id 1) is configured too small for current demands (state 2). Transaction progress may cease or response time may increase." What would cause this? I believe Derek mentioned in the other Discussion Thread that these type of errors are generated when a "create index" or "update stats" is performed on a large table. Is it safe for us to assume that this is the cause for this error message as well? Thank you for your help and time you are setting ...

2 issues with Amarok 2 in openSUSE 11.2
First, I currently have v2.2.1 installed via the KDE repo. After futzing about with it I've finally got it working and playing music. The problem is that I can no longer connect my Creative Zen Vision:M. The fact that 2.x no longer provides the MTP device configuration interface is troubling. Originally, I had the 2.1.x version that is in the 11.2 repo installed. As soon as I plugged in my device Amarok saw it and immediately connected. This blew me away. No such luck in 2.2.1, though. That actually leads to my next issue. I tried to downgrade so I could try to get that func...

Web resources about - Issue in 2-way picklist - novell.id-manager.userapp

The Orlando Project
The Orlando Project is an experiment in the integration of text and technology. It has designed and continues to enhance digital tools to harness ...

Charles Mok 可圈可點
多得梁振英錯愛,想不到我今天的一篇香港家書(註一),再要求成立科技局,都能夠得到特首這麼認真地以新聞公告(註二)回應,實在要感激他。 特首辦的回應說:「由於立法會拉布,現屆政府至今未能落實建議...(莫乃光)提到行政長官上任前曾承諾會成立科技及通訊局,有關建議雖然在立法會內得到主 ...

P - Computer dictionary and glossary
Computer dictionary abbreviations, definitions, glossary, and terms beginning with the letter P.

Winter ’14 Developer Preview
Summer is fading and fall will soon be here. Question: do you know what the best part of fall is? That’s right, the winter release of Salesforce.com. ...

App outreach and sustainability: lessons learned by Portland, Oregon
The big problems faced by contests and challenges in government apps are encouraging developers to turn their cool apps into sustainable products, ...

Magento - Wiki - All Articles
Menu OUR SITES Magento Magento's Corporate Site Enterprise Edition Enterprise-Class Platform Magento Go Small Business Storefront Connect Extensions ...

List Master - Video Demo
Login List Logic Software List Master Lists Your Way VIDEO DEMO MY LISTS Signup Help FAQ Tips and Tricks iPhone App Screenshots Video Demos Description ...

Attachments - OnTime Developer API
These are the get, post, and delete methods for managing attachments in the OnTime RESTful API.

App outreach and sustainability: lessons learned by Portland, Oregon
Having decided to hang around Portland for a couple days after the Open Source convention , I attended a hackathon sponsored by the City of Portland ...

Final Draft 8 for Windows review: Screenwriting software ready for its close-up
... write the screenplay. You'll have to bring your own brilliant ideas, but Final Draft can help with the format. Final Draft 8's Elements picklist ...

Resources last updated: 11/21/2015 4:09:49 AM