Dynamic labelling the buttons

Hi,
I have 10 departments and every department has different number of sub-departments.
Users will select a particular department to run a report showing summary of the department
and tabs or buttons for all the subdepartments available under that department.
By clicking the button or tab for a subdepartment, the user would see updatable tabular
form for that subdepartment.
One solution is to create pre-labelled buttons for all sub-departments on the summary report and hide/show
them basing on the department selection. Means, if the user selects department 1 it shows button 1 to 5 and if selects department 2 then button 6 to 12 etc.
Can anybody suggest a better solution for this?
Thanks,
Zahid

report showing summary of the department and tabs or buttons for all the subdepartments available under that departmentAre these buttons shown within the report's colums ? In this case it should be quite simple since you can use the column link feature and choose the link txt as some data column and style the button using some class definition(so that it look like a button, for example apex's link button template classes).
If you are using tabs, how are you generating them - PLSQL Dynamic region ?
If so , submit the page and get the PLSQL region's source to generate the content.
By clicking the button or tab for a subdepartment, the user would see updatable tabular form for that subdepartment.From this I guess a submit would b simpler coz you need to reload this Tabulat form too
<li>Another option would be to use Dynamic action to upon report refresh that
1. fetches the button or tab label sing an Ajax callback function and assign the label appropriately
2. Refreshes the Tabular form for the department

Similar Messages

  • Dynamically labeling a button ... some more

    Hello
    I'm trying to make my button labeling code more efficient by re-using the same button over and over and having a "String" variable update with the appropriate button name.  The function uses "if" and "else if" to update the value of the "var txtVar:String" with the appropriate label depending on the instance name of the button just clicked.  Inside my button movieClip is actions that refer back to the txtVar variable to label the button. In this manner, when the movie is run, each button, though based on the same movieClip, should have a different label derived from the updating variable txtVar.
    I'm pretty sure what I'm doing wrong is in the "if" statements.  I'm trying to use "this.currentTarget.name" to update the labels based on the instance name, yet when I trace "this.currentTarget.name" and then click a button, nothing displays.  I hope this makes sense.
    Thanks for your help!
    var txtVar:String = checkVar();
    this.lgndOneBedroom_mc.addEventListener(MouseEvent.MOUSE_OVER, overFunc);
    this.lgndOneBedroom_mc.addEventListener(MouseEvent.MOUSE_OUT, outFunc);
    this.lgndOneBedroom_mc.mouseChildren = false;
    this.lgndOneBedroom_mc.buttonMode = true;
    this.lgndOneBedroomStudy_mc.addEventListener(MouseEvent.MOUSE_OVER, overFunc);
    this.lgndOneBedroomStudy_mc.addEventListener(MouseEvent.MOUSE_OUT, outFunc);
    this.lgndOneBedroomStudy_mc.mouseChildren = false;
    this.lgndOneBedroomStudy_mc.buttonMode = true;
    function checkVar ()
         if (this.currentTarget.name == "lgndOneBedroom_mc")
             txtVar = "One Bedroom";
         else if (this.currentTarget.name == "lgndOneBedroomStudy_mc")
             txtVar = "One Bedroom + Study";
    function overFunc(e:MouseEvent):void
        e.currentTarget.gotoAndStop("over");
    function outFunc(e:MouseEvent):void
        e.currentTarget.gotoAndStop("off");

    Yeah ... I blew it there. Sorry to have led you astray.  There is no clicking involved.  All I'm trying to come up with at this point is a dynamic way to label several buttons that are all instances of the same movieClip.  This will keep me from ultimately having to make about thirty different buttons.  I can reuse the same movieClip and just let the code provide the labeling across the face of the button.
    Inside the button movieClip is this action:  "buttonTextField.text = MovieClip(root).txtVar;"  which refers back to the root timeline and looks for it's label in the form of a dynamic variable called "textVar".  Since all the buttons will ultimately call this same variable, I need a way to toggle the value of that variable depending on what button is calling it.  I thought maybe one way to do this was to set the textVar equal to a function that can switch out it's value and I tried to use the buttons instance name to indicate which value of txtVar was appropriate.  Hopefully that makes more sense.  For some reason these esoteric concepts are hard for me to put into words.
    Like you said, I need to define what this.currentTarget is somehow.  Both "lgndOneBedroom_mc" and  "lgndOneBedroomStudy_mc" are the instance names of the only two buttons I have on the stage right now.  Here's the oringal idea I had that obviously didn't work:
    var txtVar:String = checkVar();
    this.lgndOneBedroom_mc.addEventListener(MouseEvent.MOUSE_OVER, overFunc);
    this.lgndOneBedroom_mc.addEventListener(MouseEvent.MOUSE_OUT, outFunc);
    this.lgndOneBedroom_mc.mouseChildren = false;
    this.lgndOneBedroom_mc.buttonMode = true;
    this.lgndOneBedroomStudy_mc.addEventListener(MouseEvent.MOUSE_OVER, overFunc);
    this.lgndOneBedroomStudy_mc.addEventListener(MouseEvent.MOUSE_OUT, outFunc);
    this.lgndOneBedroomStudy_mc.mouseChildren = false;
    this.lgndOneBedroomStudy_mc.buttonMode = true;
    function checkVar ()
        if (this.currentTarget.name == "lgndOneBedroom_mc")
            txtVar = "One Bedroom";
        else if (this.currentTarget.name == "lgndOneBedroomStudy_mc")
            txtVar = "One Bedroom + Study";

  • Dynamically labeling a button

    Hello again.
    In AS 2.0, I used to be able to make a single movie clip that I could re-use over and over again as a button.  Each instance of this button would then be dynamically labeled at runtime based on some code using onClipEvent(load) and textFormat.  I tried to so something similar using actionscript 3.0 and came up against some problems.  Could anybody tell what I am doing wrong?
    The button is instance named "lgndOneBedroom_mc" and this is the code on the root timeline:
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFieldAutoSize;
    import flash.text.TextFormat;
    lgndOneBedroom_mc.buttonMode = true;
    lgndOneBedroom_mc.buttonTextField.text = "One Bedroom";
    Then, in the button movie clip I have a dynamic text field instance named "buttonTextField" and the following code on the actions layer:
    myTextFormat = new TextFormat()
    buttonTextField.setTextFormat(myTextFormat);
    Thanks everyone.

    Hey, I'm pretty sure its a minor error with either the name or the text field, but here's a completely dynamic piece where even the text field is created by action script so u don't need anything on the stage, just use the label.x and label.y to place it where you want, hope this helps;
    var label:TextField;
    function TextFormat() {
                configureLabel();
                setLabel("Hello ");
    function setLabel(str:String):void {
                label.text = str;
    function configureLabel():void {
                label = new TextField();
                label.autoSize = TextFieldAutoSize.LEFT;
                label.background = true;
                label.border = true;
                var format:TextFormat = new TextFormat();
                format.font = "Verdana";
                format.color = 0xFF0000;
                format.size = 10;
                format.underline = true;
                label.defaultTextFormat = format;
                addChild(label);
                //label.x = where?
                //label.y = where?
    TextFormat() ;

  • How to retrive value of a Button that is assigned in the Button Dynamically

    Hi All,
    I am searching the user from LDAP on the basis of the first name ( eg. abc ) Entered of the user to be searched and on the click of the Search Button I have displayed the First_Name, Last_Name, & other Info also, & One Button Having the value as the "uid" for all the users having the First Name as ( abc ) in the Form inside a Table using a loop for loop. Now if there are 10 user having the First_name as abc then there are 10 Buttons which has been displayed Now I want that If I click on the Button corresponding to the 3rd User then his all the details which was displayed on the previous page will be passed in the different editable text fields.
    The major problen which I am facing in this is that as I am generating all these buttons dynamically & all the buttons have same name but all the buttons have the diffrent values, I am able the generate Different names to all the buttons dynamicall & pass their reference dynamically to the Workflow in a transiction condition dynamically.

    if you want some default value in LOV. you go to edit list of value wizard-> UI hint->include no selection Item checkbox -checked.use labeled item first of list- and beside that put the label. but when you try to get value, it will show null.but you can manipulate in ur java , if it default value

  • Retain call info using dynamic label

    Hi
    Im using dynamic labels together with vxml app so depending on what e164 number the fromExtvxml variables is populated with the dynamic label diales to these extensions. Only problem with this as you all may know is that after label node in a dynamic label the script cannot continue. As i also need to have queuing if the dialed out phones do not answer. How could this be accomplished? Is there any way to use last label to be a dialednumber plan pattern or something else? I could for some smaller customers use a separate dnis / script for queuing but it will not fit all needs in the long run.
    Sent from Cisco Technical Support Android App

    I solved it. It works perfectly fine to do queuing after a dynamic label. Dont know why others says it does not work
    Sent from Cisco Technical Support Android App

  • In Adobe Acrobat XPro, my text label on the button disappears

    Hello,
    I have created a button in my form in Adobe Acrobat XPro. This button is set to Save and Send so that the form gets emailed.
    The text on the button, "Save and Send" disappears when I preview the form.
    Any ideas as to how to fix?
    Thanks.

    Did you set the label of the button?

  • Dynamic label button

    Hi to all,
    can someone of you have a button with dinamic label?
    For example i've to copy some data back to previous calling form.
    So i would like to have a button with a label like this:
    copy to 'NAME || SURNAME'
    That link back to previous page.
    If not clear please write me.
    thanx

    on the button label
    try
    copy to &NAME. &SURNAME.
    (if NAME and SURNAME are page items )
    or create hidden items to hold that information
    Hope it helps Aris
    .

  • The button labels in my folders are reading as numbers

    The button labels in my folders are reading as numbers

    First, please stop posting your email address. That will only get you on spam lists.
    I suggest you erase your boot volume and restore from the backup. Check that the issue is resolved, then (and only then) change every password you have and check all your online financial accounts for unauthorized activity. Consider canceling all credit cards and requesting new ones.
    When that's done, you need to learn the basics of safe computing.
    Mac OS X versions 10.6.7 and later have built-in detection of known Mac malware in downloaded files. The recognition database is automatically updated once a day; however, you shouldn't rely on it, because the attackers are always at least a day ahead of the defenders. In most cases, there’s no benefit from any other automated protection against malware.
    The most effective defense against malware is your own intelligence. All known Mac malware takes the form of trojans that can only operate if the victim is duped into running them. If you're smarter than the malware attacker thinks you are, you won't be duped. That means, primarily, that you never install software from an untrustworthy source. How do you know a source is untrustworthy?
    Any website that prompts you to install software, such as a “codec” or “plug-in,” that comes from that same site, or an unknown site, is untrustworthy.
    A web operator who tells you that you have a “virus,” or that anything else is wrong with your computer, or that you have won a prize in a contest you never entered, is trying to commit a crime with you as the victim.
    “Cracked” versions of commercial software downloaded from a bittorrent are likely to be infected.
    Software with a corporate brand, such as Adobe Flash, must be downloaded directly from the developer’s website. No intermediary is acceptable.
    Follow these guidelines, and you’ll be as safe from malware as you can reasonably be.
    Never install any commercial "anti-virus" products for the Mac, as they all do more harm than good. If you need to be able to detect Windows malware in your files, use ClamXav -- nothing else.

  • Generating buttons and listboxes dynamically on the screen

    Hi people!!
    There's a way to generate buttons and listboxes dynamically on the screen????
    Tks in advance
    Gabriel

    hi check this..
    Dynamic drop down list box

  • Grey-out button dynamically in the application toolbar

    Hi,
    How can I grey-out button dynamically in the application toolbar?
    It's not an ALV grid, where it's easy.
    SET PF-STATUS '100' EXCLUDING 'SOMETHING'. hides completely the button.
    Thanks,
    Peter

    Hi,
    Sorry forgot to add something to my previous reply...
    The complete steps will be as follows :
    1. Create Two PF status , One with active Button and Function code and Second with Inactive Function code and Greyed button (This can be acheive by using Push Button assignment as specified in the thread)
    2. Dynamically change the PF status to Second one when you want to deactivate the specified Function from the application tool bar.
    regards,
    Sumeet Mishra
    Reward point if this helps : )

  • Dynamically the buttons should display as per input no's.

    Hi friends,
    I have BSP with 1 page .
    Input is Enter No
    If i enter 3 as input my layout should display 3 buttons with name BUTTON1 BUTTON2  BUTTON3
    If i enter 1 as input my layout should display 1 buttons with name BUTTON1
    Means dynamically the buttons should display as per input no's.
    Suggestion pls.
    I am displaying my button like below
    <input type=submit name="onInputProcessing(B1)" value=" BUTTON1">
    Suggestion pls.
    Moosa

    Hi,
    I have given the entire code here as mentioned the procedure by abinav
    Layout
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content>
      <htmlb:page>
        <htmlb:form>
          <htmlb:inputField id            = "t1"
                            value         = "<%= value1  %>"
                            submitOnEnter = "X" />
          <%
            if value1 is not initial.
            data: text type string,
                  no type n value '1'.
             do value1 times.
             concatenate 'BUTTON' no into text.
          %>
          <htmlb:button id     = "<%= sy-tabix   %>"
                        text   = "<%= text  %>"
                        design = "small" />
          <%
            no = no + 1.
            enddo.
            endif.
          %>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    OninputProcessing
    DATA: event TYPE REF TO cl_htmlb_event,
          input TYPE REF TO cl_htmlb_inputfield.
    event = cl_htmlb_manager=>get_event( runtime->server->request ).
    input ?= cl_htmlb_manager=>get_data( request = runtime->server->request
                                             id = 't1'
                                             name = 'inputfield' ).
    IF input IS NOT INITIAL.
      value1 = input->value.
    ENDIF.
    and define page attribute value1 type n.
    I hope it helps you...

  • Want to change the labels on the buttons on search criteria

    Want to change the labels on the buttons on search criteria as i work on Arabic ADF Project
    i want to change the label of "SEARCH" button , "ADVANCES SEARCH" , "BASIC" , "SAVED SEARCH"
    i don't know how to change this labels as when i drug search criteria over the form i don't know how to change this fields
    thanks i advance

    Hi,
    Arabic language is supported by ADF Faces RC on the fly. When you incorporate localization in your application and set the locale attribute of your page's <f:view> tag to "ar", the labels of the query component will already be shown in Arabic. Please see sample code snippet below:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view locale="ar">
    ....Please see the following blog-post for details: http://soadev.blogspot.com/2010/03/adf-faces-rc-supplement-on-how-to.html
    regards,
    Pino

  • How to change the button dynamically?

    Hi,
        My Application is that,when i will press the button(on state-Enliglish text will come on the button,off state-Hindi Text will come on the button).
    So,my problem is that i can't write hindi text on the button,so only way is that i can port the image from the file,so how cal i do this without customizing the button.
    With Regards
    Dibya

    Broken Arrow wrote:
    Baji wrote:
    Place a boolean button in the LabVIEW front pannel and right click>>Advance>>Customize. ......
    Message Edited by Baji on 05-29-2009 04:23 PM
    The question, for whatever reason, was how to do this without customizing the button, although your solution is obviously the best way to do it, and how it is meant to be done.
    So, my question to the original poster, why can't you customize the button like Baji has suggested?
    Agreed.
    I would also encourage posting both in English and your native tongue to try and clarify the issue.
    Looking forward...
    Dynamic language changes are best handled using property nodes to change the captions and text of all FP objects. It is a lot of work to set-up the first time but once completed, maintaining the code is straight froward.
    If there are issues with just changing properties not fullfilling all reqs then a Picture Control takes care of most of the "all other cases" rather well (but is seldom trivial).
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How do I give the radio buttons a buttongroup and id dynamically as the datagrid is populated?

    I am using the following component as an item renderer for a
    <mx:DataGridColumn>
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    >
    <mx:HBox horizontalAlign="left" left="10">
    <mx:RadioButton />
    <mx:RadioButton />
    <mx:RadioButton />
    <mx:RadioButton />
    <mx:RadioButton />
    </mx:HBox>
    </mx:Canvas>
    How do I give the radio buttons a buttongroup and id
    dynamically as the datagrid is populated?

    "nikos101" <[email protected]> wrote in
    message
    news:g83gfl$m8o$[email protected]..
    >I am using the following component as an item renderer
    for a
    ><mx:DataGridColumn>
    >
    >
    > <?xml version="1.0" encoding="utf-8"?>
    > <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    >
    > <mx:HBox horizontalAlign="left" left="10">
    > <mx:RadioButton />
    > <mx:RadioButton />
    > <mx:RadioButton />
    > <mx:RadioButton />
    > <mx:RadioButton />
    > </mx:HBox>
    > </mx:Canvas>
    >
    > How do I give the radio buttons a buttongroup and id
    dynamically as the
    > datagrid is populated?
    What is your actual goal?

  • Dynamically populate the text propert of the Button in JSP

    Hello,
    I have the following code in the doInitialization() method:
          IPortalComponentRequest request =((IPortalComponentRequest)this.getRequest());
          myBean = new MyBean();
          myBean.setText("Submit");
          request.getComponentSession().putValue("myBean", myBean);
    doProcessBeforeOutput forwards the request to JSP
    this.setJspName("MyView.jsp");
    and the JSP is:
    <%@ taglib uri="tagLib" prefix="hbj"%>
    <jsp:useBean
    id="myBean"
    scope="session"
    class="Test.portal.MyBean"
    />
    <hbj:button
    id="MyButton"
    text="<%= myBean.getText() %>"
    onClick="click"
    tooltip="submit">
    </hbj:button>
    By doing this I was hoping to see the text of the button to be 'Submit' but it is empty. Any ideas on what I am doing wrong?
    Thanks,
    Asheesh

    I found a similar post on the forum. I had to remove the following from portalapp.xml
    <property name="ComponentType" value="jspnative"/>
    <property name="JSP" value="pagelet/MyView.jsp"/>
    Once I did that the Submit text on the button appeared.
    Do you know why having these properties were causing the problem?

Maybe you are looking for

  • Unable to load my sql driver

    So frustrated to see my servlet cant connect to mysql database, anyone pls help me? i put mysql-connector-java-2.0.14-bin.jar in C:\Apache\Tomcat 4.0\common\lib C:\Apache\Tomcat 4.0\webapps\ROOT\WEB-INF\lib D:\j2sdk1.4.0_03\jre\lib\ext here the excep

  • InDesign command problems

    I work with Adobe CS 5. Using Configurator 3, I have created a panel in InDesign for the commands I use most often. However, I have run into the following problems: Some commands (e.g., Margins and Columns or Span Columns and some others) give me onl

  • How do I get the downloaded app in ITunes to install

    I downloaded the ebook reader but the app doesn't install, what the heck do I need to do to get the **** app to run?

  • Local currency on forms

    Hi, My manager has two projects below him (level0 members). Problem is that one is in USD and one is in EUR currency. So in his form he inputs 100 USD to USD project and 100 EUR in EUR project for example. But then the sum is 200 for local which is n

  • Target value on value contract avail. for pricing

    Hello, I have a question and perhaps somebody had a similar situation or has an idea that could help me. On a value contract I would like to get the value of the target value (ZWERT) into the pricing procedure. The goal is to be able to accrue this a