Need Ideas for This Puzzle

The puzzle relates to displaying check boxes (checkbox or multibox).
What I have are members who belong to professional groups and sub-groups. E.g.,
Group A with sub-groups A-1, A-2, A-3, A-4.
Group B with sub-groups B-1, B-2, B-3
Group C with sub-groups C-1, C-2, C-3, C-4, C-5, C-6
etc.
web site users make multiple selections among groups. And all members in those groups will receive an e-mail message.
I can display a check box for every single "sub-group". And give each "group" a "select all" check box. All I have to take care are the checked "sub-groups".
The challege comes as the "roles" of the web site users are introduced. According to the role of the web site user, I have to display certain groups (not all the groups) and certain sub-groups (not all sub-groups within a group) to him/her.
How do I disply groups and their sub-groups under such a condition?

well, presuming you still need all values..., something along these lines
<%
boolean checked = isChecked("a"); // check if the value should be checked by default
if(showCheckbox(user, "a")) { // check if, for this user, the checkbox should be visible
%>
<input type="checkbox" name="a" value="a" <%= checked ?"checked":"" %>>
<%
} else { // show disabled checkbox (or leave that out to show nothing...)
%>
<input type="checkbox" name="noname" <%= checked ? "checked" : "" %> disabled="diabled" />
<%
   if(checked) { // don't need hidden value if default is unchecked
%>
<input type="hidden" name="a" value="a">
<%
%>

Similar Messages

  • Pls i need help for this simple problem. i appreciate if somebody would share thier ideas..

    pls i need help for this simple problem of my palm os zire 72. pls share your ideas with me.... i tried to connect my palm os zire72 in my  desktop computer using my usb cable but i can't see it in my computer.. my palm has no problem and it works well. the only problem is that, my  desktop computer can't find my palm when i tried to connect it using usb cable. is thier any certain driver or installer needed for it so that i can view my files in my palm using the computer. where i can download its driver? is there somebody can help me for this problem? just email me pls at [email protected] i really accept any suggestions for this problem. thanks for your help...

    If you are using Windows Vista go to All Programs/Palm and click on the folder and select Hot Sync Manager and then try to sync with the USB cable. If you are using the Windows XP go to Start/Programs/Palm/Hot Sync Manager and then try to sync. If you don’t have the palm folder at all on your PC you have to install it. Here is the link http://kb.palm.com/wps/portal/kb/common/article/33219_en.html that version 4.2.1 will be working for your device Zire 72.

  • Need ideas for new PJC/Java Beans

    Hello everybody,
    I am always looking for new ideas about the Java Bean and PJC stuff. Sometimes I have good ideas about this, but sometimes it is quite a pain to find something new and innovative.
    If you have ideas or needs about this, let me know in this thread.
    (Sorry Oracle staff if I am going beyond my rights by using the Forum for that purpose)
    Francois

    Francois ,
    I think that we all need to thank you for all your hard work promoting Oracle Forms.
    Your input and constant support on this forum is greatly appreciated.
    But I personally think that all this needs to be addressed by Oracle.
    Your wrote
    Sometimes I have good ideas about this, but sometimes it is quite a pain to find something new and innovative.
    And I agree with you.
    You can go as far as the Forms let you go...
    Thanks,
    Michael

  • Need Ideas for Minimalist Website and Image Gallery

    I am looking for ideas for creating a minimalist online image gallery/portfolio? I want to either use html for the site and then flash for the portfolio images or some other method. I want to click on the thumbnails and then a large image will open.
    Should I use Flash, Dreamweaver, Would it be easier to load the images dynamically to a folder. Does anyone have an example they could show me. Thanks.

    I second Mahendra's suggestion for JAlbum Excellent product!  Just so you know, you don't need to use their image hosting.  Simply download the software and install it on your PC.   The beauty of JAlbum is that it generates thumbnails and HTML pages for you from your folder of images.  Lots of different Skins available. CSS can be customized.  And you can't beat the price. 
    Minimalism is nice but on the web, if you don't have some real text in the HTML markup you're essentially invisible to search engines, language translators and web assisting technologies like screen readers.  I realize this is a portfolio, but you want to maintain some degree of visibility so people can find you.  For this reason, Flash sites don't do well.  HTML is preferred.
    Good luck with your project,
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Ple give me ur idea for this scenerio

    hi frids
    i created view for BSEG and BKPF bec in both tables i have common key comp_code is there.
    now i created datasource for this
    now i need to add another 3 fields.
    ECC field table
    BKLAS MBEW
    STPRS MBEW
    MEINS     EINA
    can i create another datasource with table for this 2 fields and add meins using datasource enhancements
    or can i add 3 fields for view datasource
    which is best
    if ur idea is to add ple let me know coading how to take primary keys to write code
    regards
    suneel.

    Hi
    I dont have any common filed to create view for this 2 tables mbew and meins. can i create table datasource and add meins field using datasource enhancements
    why cant add that 3 fields for view datasource
    now 2 choices
    1 already view data source is there
    2nd i need use table datasource for mbew and add meins field
    or i need create mbew datasource and meins datasource
    total will be 3 datasources.
    let me know which one will be goood according performance wise also

  • Need Sequence for this logic

    Hi,
    I need sequence for autogenerate of code
    Table 1
    id     code
    We need to autogenerate code for every new entity of id 
    ex:
    id          code
    sbi        sbi001
    hsb        hsb002 
    xyz        xyz003
    And
    ex:
    id          code
    sbi      s001
    hsb     h002
    xyz    x003

    You can use a Sequence and Trigger in combination like this
    create table t
      id   varchar2(10)
    , code varchar2(25)
    create sequence t_seq;
    create or replace trigger t_trig before insert on t for each row
    declare
      l_seq integer;
    begin
      select t_seq.nextval into l_seq from dual;
      :new.code := :new.id || to_char(l_seq, 'fm099');
    end;
    insert into t (id) values ('sbi');
    insert into t (id) values ('hsb');
    insert into t (id) values ('xyz');
    select * from t;

  • Need code for this Small validation on when-validate-item

    Hi All,
    I have a text item(date datatype) in forms 4.5 I need to do a small validation want to write on when-validate-item. When I enter a date in that text item (Ex 10-JUN-2005) it has to check
    1) It Cannot be "blank"
    2) It cannot be "Not older than today"
    can you please put me code for this small validation. I am new to Forms.
    Thanks in Advance,
    Reddy

    I always put code in the when-validate-RECORD trigger to ensure fields are entered, rather than setting the property. That way, the user can enter other fields within the record, and then gets a message that the field is required only when leaving the record.
    ...of course, if the date item is the only field in the block, then the when-validate triggers will not run unless the user at least types a space in the date. In that case, you need to check in the key-commit trigger.

  • Idea for this code pls

    Hi,
    In the below code, I have certain doubts.
    1.Do I need to go for inner join statements in fetching data for parameters?..
    2. How can I group by document type and print the total of net value...for this do i need to move the datas to another internal table ?..How to ?
    tables : vbak,vbap.
    data : begin of itab occurs 0,
            vbeln like vbak-vbeln,
            auart like vbak-auart,
            netwr like vbak-netwr,
            waerk like vbak-waerk,
            zmeng like vbap-zmeng,
            zieme like vbap-zieme,
            posnr like vbap-posnr,
            matnr like vbap-matnr,
            end of itab.
    select-options : s_vbeln for vbak-vbeln.
    Parameters     : s_vkorg(10) type c,
                     s_vtweg(10) type c,
                     s_spart(10) type c.
    start-of-selection.
    select avbeln aauart anetwr awaerk bzmeng bzieme bposnr bmatnr
    into table itab from vbak as a inner join vbap as b on b~vbeln =
    avbeln where avbeln in s_vbeln .
    loop at itab.
    write : /5 itab-vbeln,15 itab-posnr,25 itab-auart,
    30 itab-matnr,35 itab-zmeng,40 itab-zieme,45 itab-netwr,50 itab-waerk..
    endloop.
    Initialization.
    at selection-screen.
    IF   s_vbeln is initial and
         s_vkorg is initial and
         s_vtweg is initial and
         s_spart is initial.
        MESSAGE e000(zam).
      ENDIF.
      IF not s_vbeln is initial.
       select vbeln  auart netwr waerk from vbak into table itab where vbeln
                                                                 in s_vbeln.
        IF sy-subrc NE 0.
             MESSAGE e001(zam).
                 ENDIF.
        else.
        if not  s_vkorg is initial.
         select vbeln auart netwr waerk from vbak into table itab
                                         where vkorg = s_vkorg.
             if sy-subrc NE 0.
                 message e002(zam).
                         endif.
                          endif.
        If not s_vtweg is initial.
         select vbeln auart netwr waerk from vbak into table itab
                                          where vtweg = s_vtweg.
           If sy-subrc NE 0.
                message e003(zam).
                      endif.
                       endif.
         if not s_spart is initial.
            select posnr matnr zmeng zieme from vbap into table itab
                                               where spart = s_spart.
            if sy-subrc NE 0.
                 message e004(zam).
                     endif.
                       endif.
       ENDIF.

    The JOIN looks OK.
    You can move the document type to the beginning of the internal table and sort on it when the data is collected.Then:
      LOOP AT itab.
        AT NEW auart.
    * Totals
        ENDAT.
        WRITE :  /5 itab-vbeln,15 itab-posnr,25 itab-auart,
                 30 itab-matnr,35 itab-zmeng,40 itab-zieme,
                 45 itab-netwr,50 itab-waerk..
      ENDLOOP.
    Rob

  • I need solution for this query

    hi all,
    could anyone please send me solution for this query these are the database tables am having
    TABLE NAME :USERS
    ATTRIBUTES
    UNAME
    PASSWORD
    GROUPNAME
    TABLE NAME:GROUPS
    ATTRIBUTES
    GROUPID
    GROUPNAME
    my requirement is that i need 2 acces the groupname of a particular user and the reamining groups to which i doesn't belong in A SINGLE QUERY
    my result needs to be like this
    Authorised group
    consultant
    UNAuthorised groups
    sales
    vender
    recruiter
    admin
    if any body got the solution please send

    hi All,
    I have 3 tables 1)PREVILEGES (groupname, previleges(values y or n only))
    2)GROUPS (groupid, groupname)
    3) USERS (uname, groupname).
    Here each user belongs to one group, each user hav a default previlege means example if user is consutant then he can access only consultant group. Means default previlege will be used. For default previleges, there is no record in Previleges table.
    The Problem is that, I need to reterive the groupname from users which de doesn't belong as well as his previleges from previleges, If there is no values in previleges in the table it should return n. or value what is therey.
    the different groups are
    SALES,CONSULTANT,VENDER,RECRUTER,ADMIN

  • Need procedure for this logic

    Hi
    I need a procedure 4 this logic,
    Need to get 32+ inputs in procedure of same type varchar2,
    If comp_id !=360
    insert 32 inputs in table column-> value using custom-id
    Note:
    Column : brand-code,value,custom_name using custom_id
    brand-code gets from comp-id from another table
    i/p- from procedure comp_id and 32 inputs
    This 32 inputs should use varray cocept
    end if;
    ex:
    table 1
    brand_code custom-id value editble
    table 2
    custom-id custom-name
    Could you please share ur suggestions

    Create or replace procedure cdm_cl_proc is
    v_sqnum number(3);
    cursor c1 is
    select dcn, pp_code from d_cl_ext;
    Cursor c2 is
    Select t_code, s_date, area_chrg, rc_pct from d_c_p_ext;
    Begin
    for v1 in c1
    Loop
    update d_cl set pp_code = v1.pp_code
    where dcn=v1.dcn;
    select d_sqnum into v_sqnum from d_cl
    where dcn=v1.dcn;
    For v2 in c2
    Loop
    Update d_c_p set area_chrg= v2.area_chrg, rc_pct=v2.rc_pct
    Where t_code= v2.t_code and s_date = v2.s_date
    and d_sqnum = v_sqnum;
    if mod(c2%rowcount,1000)=0 then
    commit;
    end if;
    End loop;
    if mod(c1%rowcount,1000)=0 then
    commit;
    end if;
    End loop;
    Commit;
    End;
    I amable to load the data when dcn is matched but, if the dcn is not matched no data found error is coming. can u suggest error handling for this.

  • You're my last resort for this puzzler

    I tried to do a merge with Word and it froze every time (Office X). I thought is was Word that was at fault. I reinstalled it and it continued to freeze.
    I logged out and logged in as a different user and it works fine.
    I repaired permissions, copied all the preferences from the 'good' user to my user and logged in as myself. Word still freezes doing exaclty the same thing with the same data files.
    Does anyone have any ideas about how to remedy this strange issue for me?
    Many thanks

    I'll try anything but I have little hope.
    I tried to use Pages to create a page of labels but I couldn't find a way to do it. Avery has templates which can be filled with data (name <tab> address <tab> etc,) with a return after each record in Word but I don't see how to do the same thing with Pages. I think Appleworks used to be able to do something similar but I don't have anything other than Word for this purpose. I'm not a heavy user of Word btw.
    Thanks

  • Problem transferring old iPhone 3GS to new phone 5S using computer.  The iMac which I've been using to back up 3GS for years does not seem to recognize the 5S.  No setup assist is coming on screen so I can't begin the transfer.  Any ideas for this?

    Problem tranferring old iPhone 3GS (ios 6.1.6) to new iPhone 5S (ios 8.1.2) through iTunes on my iMac computer  (OSX 10.5.8) . I have backed up the 3GS this way since purchase of 3GS.  The computer does not seem to recognize the 5S is there -- no setup assist is appearing on screen. Any ideas welcome.

    this may not be your problem my according to the tech specs on apple.com the 5s requires:
    Syncing with iTunes on a Mac or PC requires:
    Mac: OS X v10.6.8 or later
    PC: Windows 8; Windows 7; Windows Vista; or Windows XP Home or Professional with Service Pack 3 or later
    iTunes 11.1 or later (free download

  • Need code for this checkbox trigger...please

    Hi All,
    I have a checkbox in detail block where block is having No. of records displayed is 3(Three) so Checkbox and all other items are displaying thrice. I am inserting the records 1 by 1 using the following code
    Declare
    Begin
         Loop
              First_Record;
              Insert into Veri_Test values(:PNo,:c1);
              Exit When :System.Last_Record='TRUE';
              Next_Record;
         End Loop;
         COMMIT;
    End;
    Its inserting properly. no problem. But what I want is
    when i checked on 1st row of checkbox remaining two(2nd,3rd row) checkboxes should be disabled. If i uncheck 1st row checkbox then
    remaining two should be enabled. As same way
    If i click on 3rd row of checkbox remaining two(1,2) should be disabled. If i uncheck 3rd row checkbox then remaining two(1,2) should be enabled.
    Hope its clear. is it possible ? if yes can anyboxy give the code for this checkbox trigger ?
    Thanks in Advacne
    Devender

    Hello,
    Apply this in a When-Checkbox-Changed trigger:
    Declare
       -- Record being modified --
       LN$CurRec pls_integer := :system.cursor_record ;
       LN$Rec    pls_integer := 1 ;
    Begin
       If :BLOC.CB1 = 'O' Then
          -- Goto first record --
          First_record ;
          Loop
             If LN$Rec <> LN$CurRec Then
                -- record <> current record --
                :BLOC.CB1 := 'N' ;
             End if ; 
             If :system.last_record = 'TRUE' Then
                Exit ;
             End if ;
             -- Goto next record --
             Next_record ;
             LN$Rec := LN$Rec + 1 ;
          End loop ;
          -- Jump to current record --                
          Go_Record( LN$CurRec );
       End if ;
    End ;Francois

  • Need Solution for this Intersting scenario

    Hi All,
        Our Client is having Office in X - country & Y- Country In Y country there is two division. Import Div & Local Divison. Two book of account have to be maintained. for this.
    Good is being purchase from X for - $100 by Y Import Div
    Stock is transfered to Local Div at - $70
    Sold in the marked at - $90 by Local Div.
    After sale Y Import Div Get rebate for sale - $20
    If we consolidate the 2 books of account we get the profit - $10
    This is the scenario how it will be done....
    Please explain in detail.....
    Regards,
    Subha jo

    Hi
    First your Y-Import Division importing the material for $100 and after that is is getting $20 rebate....so the actual cost of the material is $80. Then this $80 material is transfered to Y- Local Division and sold for $ 90
    So finally you are getting $10 as a profit
    Regards
    S.Baskaran

  • Need skeleton for this

    Using Dynamic
    Creating a procedure emp_data with three parameters p_colname varchar2, p_value varchar2, p_ref ref_cursor
    Based on the value in p_colname and p_value query the emp table and return the result set in a Cursor.
    Validate the value of p_colname , it must be a valid column_name in table emp
    can u give the skeleton for this ... i am nt getting how to do this for REF Cursor as parameter

    need skeleton for thisalmost the whole body ;) :
    SQL> create or replace procedure emp_data (p_colname varchar2, p_value varchar2,
    p_ref out sys_refcursor)
    as
       p_cnt integer := 0;
    begin
       select count ( * )
         into p_cnt
         from cols
        where table_name = 'EMP' and column_name = upper (p_colname);
       if p_cnt = 1
       then
          open p_ref for
             'select ' || p_colname || ' from emp where ' || p_colname || ' = :1'
             using p_value;
       else
          raise_application_error (-20003,
          'Column ' || p_colname || ' does not exist');
       end if;
    end emp_data;
    Procedure created.
    SQL> var c refcursor
    SQL> exec emp_data('eame', 'SCOTT',:c)
    BEGIN emp_data('eame', 'SCOTT',:c); END;
    Error at line 27
    ORA-20003: Column eame does not exist
    ORA-06512: at "MICHAEL.EMP_DATA", line 17
    ORA-06512: at line 1
    SQL> exec emp_data('ename', 'SCOTT',:c)
    PL/SQL procedure successfully completed.
    SQL> print
    ENAME    
    SCOTT    
    1 row selected.

Maybe you are looking for