Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] AppStudio js for multiple dropdownbox
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] AppStudio js for multiple dropdownbox
 Login/Join
 
Silver Member
posted
Hello all,
may be somebody faced with js problems for multiple dropdown boxes?
I have quite complicated logic in HTML composer code for dropdown box with attribute multiple. And I have to analyze type of controls, get attribute values or use following constructions:

text_val = frame.getElementById("lst_name").value
, where

frame = document.getElementById(frame_id).contentwindow.document.

(for parameter screen I have to use tabs and frame for second tab runs other html page with controls).
Html source was created in Developer studio and works fine, but if save it in App studio (8.0.2.3), the most of js code becomes unworkable for this control(for text or select-one controls such code works fine). for some cases I can use IbComposer functions (for example, .value could be replaced with IbComposer_getCurrentSelection function), but not in case of calling from other source or analyze of type or attribute values.
Could you, please, help me? Thank you.

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8.0.0.8, 8.2.0.3
Windows, All Outputs
 
Posts: 32 | Registered: August 09, 2011Reply With QuoteReport This Post
Expert
posted Hide Post
So, that's what you've done... And it doesn't work... that beckons the question: What is it that you are attempting to do (Specs)?


   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Most recent: 8204 Gen 48 in Test and Production.
   Currently Available. Please contact me.
 
Posts: 2987 | Location: Middle Tennessee [8204M Gen48 in Test&Prod] | Registered: February 23, 2005Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Isn't it obvious Doug? He is trying to figure out how to bake a cake. Really...

Oly,

If you are trying to get a multi-select drilldown working, you just need to ensure your WHERE statement in your procedure supports multi-select controls by using the OR syntax:

TABLE FILE CAR
PRINT COUNTRY
      CAR
      MODEL
WHERE CAR EQ &CAR.(OR(FIND CAR IN CAR)).CAR.;
ON TABLE PCHOLD FORMAT HTML
END


Then, ensure the listbox or dropdown control multiple property is set to true or enabled.


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
 
Posts: 1110 | Location: USA | Registered: January 27, 2015Reply With QuoteReport This Post
Expert
posted Hide Post
Obvious: IDK...
JS: is there a need for JS to do this?...
Cake: I Like Cake...
"ensure your WHERE statement in your procedure supports multi-select": Fine.

I created a parser (fex) in a few cases to loop thru the incoming variable from an 'edit' control where the user would separate their criteria with commas (EX: commsc%,%USA%,%tech% ) and create the complete WHERE statement within that loop: WHERE THISFIELD LIKE 'COMMSC%' OR '%USA%' OR 'TECH%'. Sometimes you just gotta do what you gotta do...
 
Posts: 2987 | Location: Middle Tennessee [8204M Gen48 in Test&Prod] | Registered: February 23, 2005Reply With QuoteReport This Post
Silver Member
posted Hide Post
Hello Guys,
thank you for your answers, but as far as I understand in App Studio we have HTMLDivElement objects for dropdownboxes with switched on attributes Multiple. Before it was HTMLSelectElemenet for multiple and for single. And from now javascripting for such controls should be changed, because a lot of object's properties are not working.Frowner


WebFOCUS 8.0.0.8, 8.2.0.3
Windows, All Outputs
 
Posts: 32 | Registered: August 09, 2011Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Is your version 8.2.03 or 8.0xxx?

Most of my controls created in Dev Studio 8.0xx need recreating in App Studio 8.1xx. A few more need recreating from App Studio 8.1xx to app Studio 8.2xx.


WebFOCUS 8.2.03 - Production
WebFOCUS 8.2.04 - Sand Box
Windows 2012 R2 Server
HTML, PDF, Excel
In FOCUS since 1980
 
Posts: 116 | Location: Seattle, WA | Registered: April 07, 2015Reply With QuoteReport This Post
Silver Member
posted Hide Post
Hello Michael, I do migration from 8008 to 8203. Yes, I do recreation for some cases, but dropdownboxes with multiple attribute literally kill me.


WebFOCUS 8.0.0.8, 8.2.0.3
Windows, All Outputs
 
Posts: 32 | Registered: August 09, 2011Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] AppStudio js for multiple dropdownbox

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.