Swc / accordion problem, trying to create a 3-level dynamic nav

Hi!
First time poster, long-time troller. I've been working on a
CMS system and having a little trouble creating a three level
navigation, that's uses the functionality of the accordion
component, but styled with dynamically loaded fonts.
I'm using the "flexlibs" swc (and was playing with degrafa,
but think it's a little much for what I'm trying to do). What I'm
doing is:
- pulling the three level navigation (1st level - brand, 2nd
- campaign, 3rd - job),
- a VBOX holds the entire nav, the first level is an
accordion with:
-- a header (that somehow draws the data (this is my first
question) to put in a swc I created, in a Header.mxml component.);
and a
-- repeater that does the same thing for "campaign" (2nd
level): vbox, vaccordion (header + repeater), that holds:
-- a swc component, called "JobComp" (I've been playing
swapping it with a flash-made swc but can't seem to figure out how
to pass initialization variables in the constructor)
I used "swc"'s for the nav components, because the fonts are
"AGBuchBQ-Bold" and I thought it'd be easier this way.
I guess my question(s) are:
1. How do I pass a variable in the constructor of a swc
Component?
2. Am I doing this right? Or should I construct the
navigation ALL in flash, export as a swc, and just pass in the xml
to the flash component (which means I need to understand #1...)
3. Is there a way to load / set font in the accordion / list
components that are not the basic fonts? If I can style it all in
the .css, that'd be really really helpful, I think, since it's 90%
there.
Thanks again, for any input,
Dom

My bad i didn't see that you want to create a swc.
Well, as i said earlier, for me, the only way to pass
parameter to a constructor (i suppose you mean like new Label("my
title")) is using actionscript.
What you can do if you want to create an MXML file is
creating public parameters (or getters) in the script tag and use
the [bindable]. As far as i understood Flex, properties in an MXML
will have no action on your component if you don't use this tag.
You can as well create a method that will apply these
parameter after its creation, example :
You create a MyComponent class which has different properties
like displaySubComponent and maximumValue. In your class, you
create a method called "applyParameters" which will do something to
initialize it.
Then you call use it like this:
<c:MyComponent id="a_component" displaySubComponent=[ A,
B, D] maximumValue=5
onCreationComplete={a_component.applyParameters()} />
And yes, i thought
"dataProvider="{repeatCampaign.currentItem..job }" was strange but
it's good to know that we can do that ;)
Hope, i was understandable ^^"

Similar Messages

  • Problem trying to create FIELD SYMBOLS in BADI.

    Hi guys!
    I'm trying to create a Field Symbol in method CHECK of BADI me_process_req_cust (well, I'm working on a Z implementation).
    The problem is that I'm trying to create a FIELD SYMBOL and when I check the syntaxsis, I receive the next error:
    Clase ZCL_IM_MM_PURREQ_UPDATE,Método IF_EX_ME_PROCESS_REQ_CUST~CHECK
    Names may only consist of the characters "A-Z", "0-9" and "_". In
    addition, they may not begin with a number.
    This is the code:
            FIELD-SYMBOLS: <sy-mereq> TYPE mereq3328-afnam.
    Any idea????
    Thanks in advance!
    Bet

    Hi Silveria,
    The problem lies in
    FIELD-SYMBOLS: <sy-mereq> TYPE mereq3328-afnam.
    instead of that it should be something like this
    FIELD-SYMBOLS: <sy_mereq> TYPE mereq3328-afnam.
    With your code you will be getting a syntax error saying sy-mereq is not defined,as it will be looking for the mereq in the system fields.
    Regards
    Abhinab Mishra

  • Problems trying to create scrollable text in InDesign CC

    I'm making an interactive presentation in InDesign. Im trying to create some scrollable text. i didn't know how to do that in CC, so I looked up some videos over the web and learned I needed to use the "Folio Builder" or the "Overlay panel". i never was able to find the latter and the Folio Builder gives me this message: "A software update is required to use Digital Publishing Suite. Please go to the Help menu and select Updates to get the required software." My software is already up-to-date (at least that's what the Adobe Application Manager tells me). Is this happening because I'm using a trial version? I'm planning to buy the Creative Cloud package but first I need to know it's worthy. Thanks for your help!

    You are most likely looking at some very old videos. As it happens my DPS
    course was just released on lynda.com:
    http://boblevine.us/my-first-lynda-com-title-adobe-digital-publishing-suite-
    essential-training-is-live/
    There's a link to a one week trial there if you don't have a subscription.

  • Re: Problems trying to create jrepository file

    Leonardo,
    Why do you need to create a new repository file ?
    Can't you just make a copy of the example one that comes with Jolt (/tuxedo/udataobj/jolt/jrepository)
    Joe
    "Leonardo Pedrosa" <[email protected]> wrote:
    >
    Hi, I´m trying to create Jolt repository and I am receiving the following
    exception:
    Exception in thread "main" bea.jolt.ServiceException: Data conversion
    failed;
    check log file
    at bea.jolt.JoltRemoteService.decodeCALL(JoltRemoteService.java:400)
    at bea.jolt.JoltRemoteService.call(JoltRemoteService.java:307)
    at bea.joltadm.JSvcPkgTbl.initTable(jbld.java:776)
    at bea.joltadm.JSvcPkgTbl.<init>(jbld.java:748)
    at bea.joltadm.JBldDefRec.<init>(jbld.java:111)
    at bea.joltadm.jbld.main(jbld.java:703)
    O got this exception by the two ways, creating jrepository through juliet
    and
    even so through bea.joltadm.jbld class.
    Does anyone could help me?
    thankful.
    Leonardo

    The reason for creating a new repository file is to incorporate all the new services which are included in multiple servers which comprise the application.

  • Problems trying to create jrepository file

    Hi, I´m trying to create Jolt repository and I am receiving the following exception:
    Exception in thread "main" bea.jolt.ServiceException: Data conversion failed;
    check log file
    at bea.jolt.JoltRemoteService.decodeCALL(JoltRemoteService.java:400)
    at bea.jolt.JoltRemoteService.call(JoltRemoteService.java:307)
    at bea.joltadm.JSvcPkgTbl.initTable(jbld.java:776)
    at bea.joltadm.JSvcPkgTbl.<init>(jbld.java:748)
    at bea.joltadm.JBldDefRec.<init>(jbld.java:111)
    at bea.joltadm.jbld.main(jbld.java:703)
    O got this exception by the two ways, creating jrepository through juliet and
    even so through bea.joltadm.jbld class.
    Does anyone could help me?
    thankful.
    Leonardo

    The reason for creating a new repository file is to incorporate all the new services which are included in multiple servers which comprise the application.

  • Problem trying to create graphic style...

    I'm trying to create a nave menu and in doing so, create a single graphic style that can achieve my end goal. I can get what I want by using a seperate shape, but that defeats the purpose of the single graphic style. I thought I could achieve the look using an effect under
    Effect>Pathfinder
    But that doesn't get the result I expected. Below you can see both what the graphic style currently looks like, and what I want to add to it (the gloss) hopefully within the same graphic style. Is this possible?

    Try this:
    https://dl.dropboxusercontent.com/u/3910250/button.ai

  • Problem trying to create a list of JTrees

    Hi,
    my problem is that I am attempting to create a Jlist of JTrees. I am not sure if Swing supports this or not - I am at the stage where the JList of JTrees is rendering fine. The problem is that I cannot select the other trees in the list.
    I tried to add a mouse listener to my JList to work around this but this does not seem to work:
    addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    int index = locationToIndex(e.getPoint());
    if (index != -1) {
    JTree tree = (JTree) getModel().getElementAt(index);
    TreePath selPath = tree.getPathForLocation(e.getX(), e.getY());
    tree.setSelectionPath(selPath);
    repaint();
    The tree is detected by the mouse listener no problem, but I can't seem to set the selected node (variable selPath in code above returns null)
    Any ideas on this greatly appreciated - even to say if this is possible or not!
    Regards, Joe.

    You have to copy the weblogic.jar to jdev_home\jdev\lib\ext and restart jdev. You also have to point the connection to the weblogic.jar in the \bea\wlserver6.1\lib directory. That worked for me. Good luck.

  • Problem trying to create an itunes account

    Hello. i recently downloaded itunes for my pc and i wanted to create an itunes account so i got on itunes and when i clicked on create account i got a message saying "We could not complete your itunes store request. The requested resource was not found" i've noticed other users are having the same problem. i didn't see any soultions though and the ones i heard i tried. i have norton internet security on my pc but i turned it off thinking maybe that could stop itunes from working but after i did that it is still not working. i tried configuring windows firewall to see if it was blocking itunes but it is on the allow list so i'm not sure what else to do. does anyone know what i could to fix this?

    idk what happened but now it's fine lol sorry

  • Problem trying to create and manage external tables

    Hello guys,
    I am having problems having created my external tables trying to select from them. I created the table thus:
    create table job_ext
    (job_id number(3),
    FUNCTION varchar2(30) )
    organization external (type oracle_datapump default directory test_dir
    access parameters (records delimited by newline fields delimited by "~" (job_id number(3) ,
    FUNCTION varchar2(30) ) )
    location ('testdump.lst')
    but on running select * from job_ext, I get the error
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-00554: error encountered while parsing access parameters
    KUP-01005: syntax error: found "identifier": expecting one of: "logfile, nologfile, version" etc..
    KUP-01008: the bad identifier was: records
    KUP-01007: at line 1 column 1
    ORA-06512: at "SYS.ORACLE_DATAPUMP", line 19
    ORA-06512: at line 1
    what am I not doing right.
    Secondly, I wish to ask if an directory object is created, will it be visible on the OS file system?? I am using Oracle 10g complete reference for study but it does not throw light on this.
    thanks

    Hi,
    It looks like you may need to grant permissions to the target directory.
    The ORA-29913 error can also happen in external tables when you don't grant read and write permissions to the directory:
    CREATE OR REPLACE DIRECTORY extdir AS '/u01/app/oracle./extdir';
    GRANT READ ON DIRECTORY extdir TO myowner;
    GRANT WRITE ON DIRECTORY extdir TO myowner;
    Also, see BUG 5172459 (MetaLink Note:373168.1)
    The problem is that the message file for external tables oin not the English version. These steps will address the issue:
    1. cd $ORACLE_HOME/rdbms/mesg
    2. cp KUP<lang>.msb KUP<lang>.msb.BAK
    3. cp kupus.msb KUP<lang>.msb
    http://www.dba-oracle.com/t_ora_29913_external_table_error.htm

  • Problem trying to create user in iManager

    Hello all, When I try to create a user in iManager, I do not have the
    context of user in my tree. Going from the examples in the training doc, do
    I need to create this context from scratch ?
    Peter

    Pwmerritt,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Problem trying to create a connection to Weblogic

    Hello,
    I desperately try to create a connection to a weblogic 6.1sp2 server in JDeveloper.
    The Weblogic server is located on my computer. I just try to connect to the defaultserver running on my PC.
    Each time I get a message when I try to test the connection :
    "Cannot instanciate Webloci.jndi.WLinitialcontextfactory"
    Any help or suggestionn is welcome...
    Thank!
    Roland

    You have to copy the weblogic.jar to jdev_home\jdev\lib\ext and restart jdev. You also have to point the connection to the weblogic.jar in the \bea\wlserver6.1\lib directory. That worked for me. Good luck.

  • Trying to create a selection screen dynamically

    Hi All,
    My requirement is to fetch values from database table.A particular field in the table
    has certain values,which i am supposed to create as radiobuttons.i.e
    i need to pick the values and create a dynamic selection screen.
    Can any one help me in this.
    Thanks in Advance!!

    Hi MVPhani,
    If u wish to create radio-buttons ( or check-boxes only )  dynamically, then u can achieve the same functionality using the below simpler alternative...
    Put a button and while clicking it show the list of possible values ( taken from ur DB table ).. based on the selection display ur report... something like F4 help...
    Check the below example..
    TYPE-POOLS : slis.
    TYPES : BEGIN OF ty_radiobuttons,
            matnr  TYPE matnr,
            maktx  TYPE maktx,
            END  OF ty_radiobuttons.
    DATA : lt_radiobuttons TYPE STANDARD TABLE OF ty_radiobuttons,
           ls_radiobutton  TYPE ty_radiobuttons,
           lt_fcat         TYPE slis_t_fieldcat_alv,
           ls_fcat         TYPE LINE OF slis_t_fieldcat_alv.
    PARAMETER selvalue TYPE matnr.
    SELECTION-SCREEN PUSHBUTTON 60(20) text USER-COMMAND push.
    INITIALIZATION.
      MOVE 'Dynamic selection' TO text.
      SELECT matnr
             maktx
        FROM makt UP TO 10 ROWS
        INTO CORRESPONDING FIELDS OF TABLE lt_radiobuttons
       WHERE spras EQ sy-langu.
    AT SELECTION-SCREEN .
      CASE sy-ucomm.
        WHEN 'PUSH'.
          PERFORM popup.
        WHEN OTHERS.
      ENDCASE.
    START-OF-SELECTION.
    END-OF-SELECTION.
    FORM popup.
      DATA : selected_row TYPE slis_selfield,
             action.
      PERFORM build_fcat.
      CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
        EXPORTING
          i_selection   = 'X'
          i_zebra       = 'X'
          i_tabname     = 'LT_RADIOBUTTONS'
          it_fieldcat   = lt_fcat
        IMPORTING
          es_selfield   = selected_row
          e_exit        = action
        TABLES
          t_outtab      = lt_radiobuttons
        EXCEPTIONS
          program_error = 1
          OTHERS        = 2.
      CHECK sy-subrc EQ 0.
      CHECK action   NE 'X'.
      READ TABLE lt_radiobuttons INTO ls_radiobutton INDEX selected_row-tabindex.
      MOVE ls_radiobutton-matnr TO selvalue.
    ENDFORM.                    "popup
    FORM build_fcat.
      FREE lt_fcat.
      ls_fcat-fieldname = 'MATNR'.
      ls_fcat-seltext_l = 'Material'.
      ls_fcat-outputlen = '10'.
      APPEND ls_fcat TO lt_fcat. CLEAR ls_fcat.
      ls_fcat-fieldname = 'MAKTX'.
      ls_fcat-seltext_l = 'Description'.
      ls_fcat-outputlen = '20'.
      APPEND ls_fcat TO lt_fcat.
      CLEAR ls_fcat.
    ENDFORM.                    "build_fcat
    Cheers,
    Jose.

  • Problem trying to change render kit id dynamically

    Hello All
    This is how I specified the render kit it to be set at runtime
    <application>
    <default-render-kit-id>#{appBean.renderKitId}</default-render-kit-id>
    </application>
    <managed-bean>
    <description>Application Bean</description>
    <managed-bean-name>appBean</managed-bean-name>
    <managed-bean-class>com.myApp.jsf.ApplicationBean</managed-bean-class>
    <managed-bean-scope>application</managed-bean-scope>
    </managed-bean>
    But when I start the application and make the first request, I get this error on the console
    WARN [RenderKitFactoryImpl]: Unknown RenderKit '#{appBean.renderKitId}'
    Why is the appBean not being identified as a managed bean and why is the EL not evaluated?
    Thanks in advance,
    Rohit

    Expressions aren't supported in that context.

  • Problem creating an internal table dynamically

    Hi,
    I'm trying to create an internal table dynamically as i would be able to determine the structure of the table based on the user input.
    I've used the sample code from this forum ...
    REPORT  ZRICH_0003       .
    type-pools: slis.
    field-symbols: <dyn_table> type standard table,
                   <dyn_wa>,
                   <dyn_field>.
    data: alv_fldcat type slis_t_fieldcat_alv,
                   it_fldcat type lvc_t_fcat.
                   type-pools : abap.
    data : it_details type abap_compdescr_tab,
           wa_details type abap_compdescr.
    data : ref_descr type ref to cl_abap_structdescr.
    data: new_table type ref to data,
          new_line  type ref to data,
          wa_it_fldcat type lvc_s_fcat.
          selection-screen begin of block b1 with frame title text.
    parameters: p_table(30) type c.
    selection-screen end of block b1.
    Get the structure of the table.
    ref_descr ?= cl_abap_typedescr=>describe_by_name( p_table ).
    it_details[] = ref_descr->components[].
    loop at it_details into wa_details.
      clear wa_it_fldcat.
      wa_it_fldcat-fieldname = wa_details-name .
      wa_it_fldcat-datatype = wa_details-type_kind.
      wa_it_fldcat-inttype = wa_details-type_kind.
      wa_it_fldcat-intlen = wa_details-length.
      wa_it_fldcat-decimals = wa_details-decimals.
      append wa_it_fldcat to it_fldcat .
      endloop.
    Create dynamic internal table and assign to FS
    call method cl_alv_table_create=>create_dynamic_table
                exporting
                it_fieldcatalog = it_fldcat
                importing
                ep_table        = new_table.
    assign new_table->* to <dyn_table>.
    Create dynamic work area and assign to FS
    create data new_line like line of <dyn_table>.
    assign new_line->* to <dyn_wa>.
    <b>* Select Data from table.
    select * into table <dyn_table>           from
    (p_table).</b>
    Write out data from table.
    loop at <dyn_table> into <dyn_wa>.
    do.
    assign component  sy-index  of structure <dyn_wa> to <dyn_field>.
    if sy-subrc <> 0.
    exit.
    endif.
    if sy-index = 1.
    write:/ <dyn_field>.
    else.
    write: <dyn_field>.
    endif.
    enddo.
    endloop.
    I'm able to get the structure of the table that i want, but when i'm trying to select data from the table into this internal table..as highlighted in the sample code above..i'm getting a short dump...saying that ' the database table is 600 bytes wide but the internal table is only 576 bytes wide.
    The internal table is declared as
    field-symbols: <dyn_table> type standard table..
    Could anyone please tell me how to rectify this.
    Thanks in advance,
    Harsha.

    Hi Smitha,
    I'm building the internal table by getting the structure using the method
    cl_abap_typedescr=>describe_by_name( p_table ).
    where p_table is the table name determined dynamically..
    Now using this structure, i'm building an internal table by calling the method
    call method cl_alv_table_create=>create_dynamic_table
    I've checked all the fields after the internal table has been created .. and it contains all the fields of the table that i'm supplying initially..
    But when i read data into that internal table, it gives me that dump..I've described it in this post earlier.
    Any more suggestions would be very helpful.
    Thanks,
    Harsha

  • Create Input Text Item Dynamically

    Hi
    I'm trying to create an input Text Dynamically and add that to the Table
    but i'm having problem with createWebBean method it's can't invoke it.
    please help thanks
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageLovInputBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean;
    import oracle.apps.fnd.framework.webui.beans.table.OATableBean;
    import oracle.apps.pa.ci.webui.PaSupplierImplementCO;
    import oracle.apps.pa.util.webui.Debug;
    public class xxpaPaSupplierImplementCO extends PaSupplierImplementCO {
        public void processRequest(OAPageContext paramOAPageContext,OAWebBean paramOAWebBean) {
            super.processRequest(paramOAPageContext, paramOAWebBean);
            xxpaProcessRequest(paramOAPageContext, paramOAWebBean);
        public void xxpaProcessRequest(OAPageContext paramOAPageContext,OAWebBean paramOAWebBean) {
            super.processRequest(paramOAPageContext, paramOAWebBean);
            print_log("Start processRequest",paramOAPageContext);
            OATableBean localOATableBean = (OATableBean)paramOAWebBean.findIndexedChildRecursive("SupplierTable");
            if (localOATableBean != null){
               OAMessageTextInputBean xxPaPOQuantityBy = (OAMessageTextInputBean)createWebBean(paramOAWebBean,OAWebBeanConstants.MESSAGE_TEXT_INPUT_BEAN,null,"xxPaPOQuantityBy");
               OAMessageTextInputBean xxPaPOQuantityBy1 = (OAMessageTextInputBean)createWebBean(paramOAWebBean,MESSAGE_TEXT_INPUT_BEAN,null,"xxPaPOQuantityBy");
               xxPaPOQuantityBy.setPrompt("Change Quantity By");
               xxPaPOQuantityBy.setMaximumLength(10);
               localOATableBean.addIndexedChild(xxPaPOQuantityBy);
               print_log("PO QTY ADDED ot Supplier Table",paramOAPageContext);
            print_log("End processRequest",paramOAPageContext);
    }

    Hi,
    Try with:
    OAMessageStyledTextBean oamessagestyledtextbean = (OAMessageStyledTextBean)createWebBean(oapagecontext, "MESSAGE_TEXT", null);
    Regards
    Meher Irk

Maybe you are looking for

  • Problem with JFrame code

    Can anyone say the problem with the attached code. When I run the program, only, maximize, minimize and close options are viewable and nothing else. import java.awt.Color; import java.awt.Container; import java.awt.Dimension; import java.awt.FlowLayo

  • App Store does not allow me to choose different Apple ID to sign in

    I have an iMac that is connected to a network, and has different accounts.  My account has admin rights and I am able to manage the computer settings, but for some reason when I open the App store window, and when I am trying to download some updates

  • Lost icons in Adobe Photoshop Elements 8.0

    Hi all i have a big problem i hope some one can help me with I have Adobe Photoshop Elements 8.0 on my laptop ..it was pre instaled  when i got it (come with no cd) Right now down to my problem's when i first  used it i hade eveything i needed But no

  • How to check file format in application server?

    Hi guys, i have an inbound zip file(which contains PDF files) in the application server .I need to check if the file is in base 64 format or in hexadecimal format.Can any one help me out with the suggestions or with probable solution. Regards Snehasi

  • Drag and Drop in a quiz

    Hi, I have a quiz in Captivate 7 that is using Submit All. Every question now has a "Clear", "Back", "Next", Submit All" button. I have created a drag and drop question using the new drag and drop functionality and selcted to include the question in