Passing Values Child to Child...Need Help

I am a bit of a noob, and I'm having a problem.  I had posted about this before but I think I was explaining what I need to do in way to much of a complicated manner so I'm going to try and simplify this a bit.
I have 5 swf's.
- main.swf (parent)
- child01.swf
- child02.swf
- child03.swf
- child04.swf
When main.swf runs, it loads child03.swf on the bottom (eventhough levels are not relevent in AS3) child01.swf and child02.swf load on top of child03.swf.
main.swf has an arrow button, to proceed to the next screen.  When the arrow button is pressed it unloads child01.swf, child02.swf and child03.swf, it then loads child04.swf.
Here is my problem... child03.swf has dynamic text boxes, named tf0 - tf14, which get passed values by functions in each of those files.  I need to pass these same values to dynamic text boxes on child04.swf.
The thing that concerns me is that child01.swf and child02.swf get unloaded when the arrow button is pressed.  I would assume that the values stored in these text boxes get unloaded as well.  If this is the case I need to store these values before the unload happens, which I am not sure how to do.
Then once I store these values they need to pass to the dynamic text boxes, named tf15 - tf 29, in child04.swf.  I have been researching, and researching and cant find a solution.  Some talk about using LocalConnection.  kglad tried pointing me in the right direction using MovieClip, but I can't seem to get it working.
I am including the script for the relevent files.
main.swf
stop();
var Allergy_Tag:URLRequest = new URLRequest("child01.swf");
var Info_Tag:URLRequest = new URLRequest("child02.swf");
var Sec_A_B:URLRequest = new URLRequest("child03.swf");
var Sec_C_D:URLRequest = new URLRequest("child04.swf");
var AT_Loader:Loader = new Loader();
var IT_Loader:Loader = new Loader();
var AB_Loader:Loader = new Loader();
var CD_Loader:Loader = new Loader();
AT_Loader.x = 0;
AT_Loader.y = 85;
IT_Loader.x = 483;
IT_Loader.y = 85;
AB_Loader.x = 0;
AB_Loader.y = 0;
CD_Loader.x = 0;
CD_Loader.y = 0;
AT_Loader.load(Allergy_Tag);
IT_Loader.load(Info_Tag);
AB_Loader.load(Sec_A_B);
CD_Loader.load(Sec_C_D);
addChild(AT_Loader);
addChild(IT_Loader);
addChild(AB_Loader);
//arrow btn actions
arrowBtnMain.buttonMode = true;
arrowBtnMain.addEventListener(MouseEvent.ROLL_OVER , arrowBtnMainRollOver);
arrowBtnMain.addEventListener(MouseEvent.CLICK, arrowBtnMainClick);
function arrowBtnMainRollOver(event:MouseEvent):void{
arrowBtnMain.gotoAndPlay(2);
function arrowBtnMainClick(event:MouseEvent):void{
gotoAndStop(2);
    AT_Loader.unload();
    IT_Loader.unload();
    AB_Loader.unload();
    addChild(CD_Loader);
child03.swf
stop();
//changes text size on checkboxes
import fl.managers.StyleManager;
var textf:TextFormat = new TextFormat();
textf.size = 9;
StyleManager.setComponentStyle(CheckBox, "textFormat", textf);
StyleManager.setComponentStyle(CheckBox, "textPadding", 2);
//handles tag labels
var currentTF:uint = 0;
function clickCB(evt:MouseEvent): void {
    this["tf"+currentTF].text = CheckBox(evt.target).label;
  currentTF += 1;
for(var i:uint=0; i<30; i++){
this["cBox"+i].addEventListener(MouseEvent.CLICK, clickCB);
//handles text boxes
f_name.addEventListener(Event.CHANGE,copyText);
l_name.addEventListener(Event.CHANGE,copyText);
emer_01.addEventListener(Event.CHANGE,copyText);
emer_02.addEventListener(Event.CHANGE,copyText);
emer_03.addEventListener(Event.CHANGE,copyText);
function copyText(e:Event):void
    tf10.text = f_name.text;
    tf11.text = l_name.text;
    tf12.text = emer_01.text;
    tf13.text = emer_02.text;
    tf14.text = emer_03.text;
child04.swf
stop();
import fl.managers.StyleManager;
var textf:TextFormat = new TextFormat();
textf.size = 12;
StyleManager.setComponentStyle(CheckBox, "textFormat", textf);
StyleManager.setComponentStyle(CheckBox, "textPadding", 2);
//handles allergy beads
var currentTF:uint = 30;
function clickCB(evt:MouseEvent): void {
     this["tf"+currentTF].text = CheckBox(evt.target).label;
  currentTF += 1;
for(var i:uint=30; i<60; i++){
this["cBox"+i].addEventListener(MouseEvent.CLICK, clickCB);
Here is an example of some of the script I have tried to impliment on child04.swf to call the values of the dynamic text boxes on child03.swf
tf15.addEventListener(Event.CHANGE,importText);
function importText(e:Event):void
    tf15.text = MovieClip(AT_Loader.content).tf0;

Thx kglad,
I'm still working with it.  However I am getting a strange output message.  I was working with the script to get those to pass, and started getting it.  I then removed the added script and I'm still getting it.
TypeError: Error #1034: Type Coercion failed: cannot convert "
" to flash.display.MovieClip.
at child03_fla::MainTimeline/frame1()
Here is the script I currently have on the main.swf and still recieving this message... Weird because at this point I'm not trying to convert anything to a MovieClip
stop();
var Allergy_Tag:URLRequest = new URLRequest("allergy_tags.swf");
var Info_Tag:URLRequest = new URLRequest("info_tag.swf");
var Sec_A_B:URLRequest = new URLRequest("checks_and_texts.swf");
var Sec_C_D:URLRequest = new URLRequest("sec_c_d.swf");
var AT_Loader:Loader = new Loader();
var IT_Loader:Loader = new Loader();
var AB_Loader:Loader = new Loader();
var CD_Loader:Loader = new Loader();
AT_Loader.x = 0;
AT_Loader.y = 85;
IT_Loader.x = 483;
IT_Loader.y = 85;
AB_Loader.x = 0;
AB_Loader.y = 0;
CD_Loader.x = 0;
CD_Loader.y = 0;
AT_Loader.load(Allergy_Tag);
IT_Loader.load(Info_Tag);
AB_Loader.load(Sec_A_B);
CD_Loader.load(Sec_C_D);
addChild(AT_Loader);
addChild(IT_Loader);
addChild(AB_Loader);
//arrow btn actions
arrowBtnMain.buttonMode = true;
arrowBtnMain.addEventListener(MouseEvent.ROLL_OVER , arrowBtnMainRollOver);
arrowBtnMain.addEventListener(MouseEvent.CLICK, arrowBtnMainClick);
function arrowBtnMainRollOver(event:MouseEvent):void{
arrowBtnMain.gotoAndPlay(2);
function arrowBtnMainClick(event:MouseEvent):void{
AT_Loader.unload();
IT_Loader.unload();
AB_Loader.unload(); 
addChild(CD_Loader);
removeChild(arrowBtnMain);

Similar Messages

  • My email address is ***********, Apple ID I forgot my password, why not send links that Reset Pass on my email, I need help than why? Contact Us By Email me back with ***********, Thanks

    My email address is ***********, Apple ID I forgot my password, why not send links that Reset Pass on my email, I need help than why? Contact Us By Email me back with ***********, Thanks
    <E-mails Edited by Host>

    You are not addressing Apple here. This is a user-supported technical support forum. If you have tried to restore your Apple ID using iForgot, then try contacting iTunes Customer Service.

  • Passing values to BAPI's - pls help

    Hi,
    I have some datas in z-table, I want to pass that datas to IW31 tr-code. I collected all BAPI's and I need help about How to call and Pass the values through BAPI. Pls help me.....
    Thanks in Advance,
    Sunil

    Hi!
    It is an easy working one for me... Depending on your customizing, please change the hardcoded parts, like order type, and so on...
    *& Report Z_BAPI_ALM_ORDER_MAINTAIN_TEST *
    REPORT z_bapi_alm_order_maintain_test.
    DATA: it_methods LIKE STANDARD TABLE OF bapi_alm_order_method,
    wa_methods LIKE LINE OF it_methods.
    DATA: it_header LIKE STANDARD TABLE OF bapi_alm_order_headers_i,
    wa_header LIKE LINE OF it_header.
    DATA: it_operation LIKE STANDARD TABLE OF bapi_alm_order_operation,
    wa_operation LIKE LINE OF it_operation.
    DATA: it_text LIKE STANDARD TABLE OF bapi_alm_text,
    wa_text LIKE LINE OF it_text.
    DATA: et_numbers LIKE STANDARD TABLE OF bapi_alm_numbers,
    wa_numbers LIKE LINE OF et_numbers.
    DATA: gt_return LIKE STANDARD TABLE OF bapiret2.
    START-OF-SELECTION.
    METHODS SECTION
    MOVE '1' TO wa_methods-REFNUMBER.
    MOVE 'HEADER' TO wa_methods-objecttype.
    MOVE 'CREATE' TO wa_methods-method.
    MOVE '%00000000001' TO wa_methods-objectkey.
    INSERT wa_methods INTO TABLE it_methods.
    MOVE '1' TO wa_methods-REFNUMBER.
    MOVE 'OPERATION' TO wa_methods-objecttype.
    MOVE 'CREATE' TO wa_methods-method.
    MOVE '%000000000010010' TO wa_methods-objectkey.
    INSERT wa_methods INTO TABLE it_methods.
    MOVE '1' TO wa_methods-REFNUMBER.
    MOVE '' TO wa_methods-objecttype.
    MOVE 'SAVE' TO wa_methods-method.
    MOVE '%00000000001' TO wa_methods-objectkey.
    INSERT wa_methods INTO TABLE it_methods.
    HEADER SECTION
    MOVE '%00000000001' TO wa_header-orderid.
    MOVE 'D210' TO wa_header-order_type.
    MOVE '2000' TO wa_header-planplant.
    MOVE '19' TO wa_header-mn_wk_ctr.
    MOVE '2000' TO wa_header-plant.
    MOVE 'CUV-SZV-CSUR-ATEM-I...' TO wa_header-funct_loc.
    MOVE '' TO wa_header-equipment.
    MOVE '' TO wa_header-material.
    MOVE 'SAMPLE TEXT HEADER' TO wa_header-short_text.
    INSERT wa_header INTO TABLE it_header.
    OPERATION SECTION
    MOVE '10' TO wa_operation-activity.
    MOVE '' TO wa_operation-sub_activity.
    MOVE '' TO wa_operation-standard_text_key.
    MOVE 'SAMPLE TEXT OPERATION' TO wa_operation-description.
    MOVE '' TO wa_operation-vendor_no.
    MOVE 3 TO wa_operation-quantity.
    MOVE 'KG' TO wa_operation-base_uom.
    INSERT wa_operation INTO TABLE it_operation.
    REFRESH et_numbers.
    CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
    TABLES
    it_methods = it_methods
    it_header = it_header
    IT_HEADER_UP =
    IT_HEADER_SRV =
    IT_HEADER_SRV_UP =
    IT_USERSTATUS =
    IT_PARTNER =
    IT_PARTNER_UP =
    it_operation = it_operation
    IT_OPERATION_UP =
    IT_RELATION =
    IT_RELATION_UP =
    IT_COMPONENT =
    IT_COMPONENT_UP =
    IT_TEXT = it_text
    IT_TEXT_LINES =
    EXTENSION_IN =
    RETURN = gt_return
    et_numbers = et_numbers
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    CHECK GT_RETURN FOR POSSIBLE FAILURES
    Regards
    Tamá

  • Passing value from mdi child to parent form

    Hallo
    I design project in which is main window with mdi container and mdi child windows. My problem is that so i want to save value from TextBox1 from child form using main menu which is in main window. I don't know how to call content of TextBox1. Here is part
    of code about saving file.
    Private Sub MenuItem5_Click(sender As Object, e As EventArgs) Handles MenuItem5.Click
    If Me.ActiveMdiChild IsNot Nothing Then
    SaveFileDialog1.FileName() = "Nowa metryka"
    SaveFileDialog1.Filter() = "Metryka zaworu bezpieczenstwa (*.mzb) | *.mzb"
    If SaveFileDialog1.ShowDialog() = DialogResult.OK Then
    Dim ZapisywanieTekstu As New IO.StreamWriter(SaveFileDialog1.FileName)
    Dim varZapisywanyTekst As String = ZapisywanieTekstu.AutoFlush
    ZapisywanieTekstu.WriteLine("HERE SHOUL BE A CALL TO TextBox1 VALUE")
    ZapisywanieTekstu.Close()
    End If
    End If
    End Sub
    If somebody have any idea ho to call value of TextBox1 in child form using main form save menu plase give me any help.
    Thank You
    And Best Regards

    Hello,
    I'd ask in
    Windows Forms General.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog:http://unlockpowershell.wordpress.com
    My Book:Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Not all values pass from webservice... need help.

    Hello SDN!
    I've got a webservice based on the ABAP function module. This WS imported in my Webdynpro application (NW 7.0).
    Webservice has some input parameters and one table. Structure of that table contain one include and some other fields. If I test this FM in SAP GUI, table contains all fields filled values. But in Web dynpro application after execute this WS only fields belonging to include contains values and other fields has no values although function module return values for all fields.
    Did anybody face with similar issue& How to resolve it?

    Hi!
    This webservice has been successfully tested with another instrument...
    Node structure is follwoing:
    Request_Z_CO_PLN0_ZD_SP_1:
    ....+--- Response_Z_CO_PLN0_ZD_SP_1
    ...........+--- Result_Z_CO_PLN0_ZD_SP_1
    .......................|---- resAttr1
    .......................|---- resAttr2
    .......................|----  resAttr3
    .......................|---- resAttrN
    ....|---- attr1
    ....|---- attr2
    ....|---- attr3
    ....|---- attrN
    where attr1 - attrN are input parameters.
    Here the code:
         wdContext.nodeRequest_Z_CO_PLN0_ZD_SP_1().bind(new Request_Z_CO_PLN0_ZD_SP_1PortType_z_CO_PLN0_ZD_SP_1());
              IPrivateZD.IRequest_Z_CO_PLN0_ZD_SP_1Element elem = wdContext.currentRequest_Z_CO_PLN0_ZD_SP_1Element();
    // fill input parameters
              if( params.getWerks() != null){
                   elem.setWERKS( params.getWerks() );
              ru.sng.phd.models.z_co_pln0_zd_sp_1.Request_Z_CO_PLN0_ZD_SP_1PortType_z_CO_PLN0_ZD_SP_1 modelObj =
                   wdContext.currentRequest_Z_CO_PLN0_ZD_SP_1Element().modelObject();
              modelObj._setUser("user");
              modelObj._setPassword("pwd");
              modelObj.execute();
              wdContext.nodeResponse_Z_CO_PLN0_ZD_SP_1().invalidate();
              wdContext.nodeResult_Z_CO_PLN0_ZD_SP_1().invalidate();

  • Grouping on fields that have more than one value entered.  Please need help fast!!!

    Post Author: DennisC
    CA Forum: General
    I am creating a report that is to be grouped on a particular field that can have more than one entry.  My user said they did not care how I did it but to only count the record one time.  The field that is selected is a dropdown on an form that is in Alpha order.  So the entries always appear in the the field in alpha order.  This is for use as an example:  Record 1 has a value of CAT in the field,  Record 2 has a value of CAT, DOG in the field and Record 3 has a value of CAT, DOG, HORSE in the field.  I get 3 separate groupings for the 3 records.
    Group = CAT                      
          Then the detail information appears here
    Group = CAT, DOG
          Then the detail information appears here
    Group = CAT,DOG,HORSE
          Then the detail information appears here
    What is would like to see using this example is one group for CAT with all 3 records appearing under it and ignore the other two.  This way there would all be getting counted but the report would look a little more streamlined.
    Group = CAT
          record 1 detail information
          record 2 detail information
          record 3 detail information
    thanks in advanced for any help!!!!

    Post Author: shawks
    CA Forum: General
    I am trying resolve the same/similar issue in Crystal Reports 10.  For example, on a table there is a column called X with values Xsub1, Xsub2, Xsub3, etc.  The user can select a parameter that includes Xsub2 and Xsub4.  If this is selected 2 reports are generated (one for Xsub2 and Xsub4).  What we really want is one report with the combined information for Xsub2 and Xsub4.  How is (or is it) possible to do this in Crystal Reports 10?  FYI - When the report was initially created the main body of the report was placed in the Group Footer so if the Group Footer is suppressed the content of the report is suppressed, too.
    Thanks

  • Passing parameter value back from Child region [BTF] to Parent

    Hello,
    I am using Jdev 11.1.1.6. I have a use-case where I need to pass value back from child taskflow to parent.
    Let me elaborate the use-case:
    I have a main page which is implemented as BTF with fragment. This main page contains a child region [again a BTF with fragment].
    I am passing a parameter value from parent page to it's region using taskflow input parameter. Now value for one of the parameter changes inside child/region taskflow and I need to make this value available to main page taskflow.
    This parameter is just pageFlowScope variable, so basically not coming from any VO.
    I know that taskflow can return value via return parameter but I don't know if that is true for taskflow implemented as region in a page.
    Is it possible to communicate the pageFlowScope variable value from child region to it's parent page?
    Thanks,
    Jai

    Hi Frank,
    I tried to follow steps mentioned in your post but encountered error that "The scope of the referenced object #{viewScope.parentBeanName} is shorter than referring object childBeanName"
    Let me explain what I did:
    1. Created a bean parentBeanName in viewScope
    2. Created another bean childBeanName in pageFlowScope
    3. In ChildBean.java, created a private property parentBeanProperty for Class [ParentBean] and generated the accessors
    4. Created a input parameter in region TF as:
    <input-parameter-definition id="__28">
          <name id="__27">parentBeanParam</name>
          <value>#{pageFlowScope.childBeanName.parentBeanProperty}</value>
          <class>ParentBean</class>
          <required/>
    </input-parameter-definition> 5. Since my mainPage contains child page as region. I added parameter to mainPageDef to pass it to child TF, like this
    <parameter id="parentBeanParam" xmlns="http://xmlns.oracle.com/adfm/uimodel"
                       value="#{viewScope.parentBeanName}"/>6. Introduced a client method in childBeanName that is called from UI. There I am retrieving parentBeanParam instance from pageFlowScope and call setter method of my variable inside ParentBean.java
    7. Ran the page but encountered the error.
    Did I miss something somewhere?
    Initially I got error where #{viewScope.parentBeanName} returned NULL due to parentBeanName not instantiated. I created a variable in mainPageDef with it's default value pointing to #{viewScope.parentBeanName.variableName}, which I guess will instantiate the bean in viewScope.
    After this I got error of shorter scope. It never reached to code in Step 6 during execution cycle.
    FYI - My application is based on UIShell and essentially a one page application. Main page referred above is also a jsff based on BTF. I hope, this should not affect this implementation but I thought of at least mention it.
    Thanks,
    Jai
    Edited by: Jai Om on Dec 18, 2012 2:38 PM

  • Passing values for field catalog

    Hi experts,
        To pass values to fieldcatalog i need one practical example
         Can anyone help me
    Reg
    R.Vijai

    *& Report  ZSUJ
    REPORT  zsuj.
    TYPE-POOLS: slis.
    Data Declaration Section
    DATA:wa_fieldcat_alv TYPE slis_fieldcat_alv.
    DATA:it_fieldcat_alv TYPE slis_t_fieldcat_alv.
    DATA:BEGIN OF itab OCCURS 0,
           ch    TYPE c,
           vbeln TYPE vbak-vbeln,
           posnr TYPE vbap-posnr,
           netwr TYPE vbap-netwr,
           vkorg TYPE vbak-vkorg,
           matnr TYPE vbap-matnr,
           meins TYPE vbap-meins,
         END OF itab.
    DATA:BEGIN OF it_head OCCURS 0,
           vbeln TYPE vbak-vbeln,
          vkorg TYPE vbak-vkorg,
         END OF it_head.
    DATA:BEGIN OF it_item OCCURS 0,
           vbeln TYPE vbak-vbeln,
           posnr TYPE vbap-posnr,
           netwr TYPE vbap-netwr,
          vkorg TYPE vbak-vkorg,
           matnr TYPE vbap-matnr,
           meins TYPE vbap-meins,
         END OF it_item.
    DATA:wa_keyinfo TYPE slis_keyinfo_alv.
    DATA:it_events TYPE slis_t_event,
         wa_event TYPE slis_alv_event.
    DATA:it_listheader TYPE slis_t_listheader,
         wa_listheader TYPE slis_listheader.
    DATA:wa_sortinfo TYPE slis_sortinfo_alv,
         it_sortinfo TYPE slis_t_sortinfo_alv.
    DATA:wa_layout TYPE slis_layout_alv.
    DATA: v_report TYPE sy-repid.
    Selection Screen
    SELECTION-SCREEN SKIP 3.
    SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS : so_erdat FOR sy-datum.
    PARAMETERS : r_list RADIOBUTTON GROUP rad1,
                 r_grid RADIOBUTTON GROUP rad1,
                 r_hier RADIOBUTTON GROUP rad1,
                 r_blck RADIOBUTTON GROUP rad1.
    SELECTION-SCREEN : END OF BLOCK b1.
    Start-of-selection.
    START-OF-SELECTION.
      IF r_list EQ 'X' OR r_grid EQ 'X'.
        SELECT vbakvbeln vbapposnr vbapnetwr vbakvkorg vbapmatnr vbapmeins
                        INTO CORRESPONDING FIELDS OF TABLE itab
                        FROM vbak INNER JOIN vbap ON vbakvbeln = vbapvbeln
                        WHERE vbak~erdat IN so_erdat.
      ELSEIF r_hier EQ 'X'.
        SELECT vbeln FROM vbak INTO TABLE it_head
                          WHERE erdat IN so_erdat.
        IF it_head[] IS NOT INITIAL.
          SELECT vbeln posnr netwr matnr meins FROM vbap INTO TABLE it_item
                          FOR ALL ENTRIES IN it_head
                          WHERE vbeln = it_head-vbeln.
        ENDIF.
      ELSEIF r_blck EQ 'X'.
      ENDIF.
    Build Field Catalogue
      IF r_list EQ 'X' OR r_grid EQ 'X'.
        PERFORM build_catalog.
      ELSEIF r_hier EQ 'X'.
        PERFORM build_catalog1.
      ELSEIF r_blck EQ 'X'.
        PERFORM build_catalog2.
      ENDIF.
    Events
      PERFORM get_events.
    Build Comment
      PERFORM buil_comment.
    Sort Info on Table
      PERFORM build_sortinfo.
    Layout
      PERFORM build_layout.
    Key info for Heirarchical list.
      PERFORM set_keyinfo.
      v_report = sy-repid.
    End-of-selection.
    END-OF-SELECTION.
      IF r_list EQ 'X'.
        PERFORM list_display.
      ELSEIF r_grid EQ 'X'.
        PERFORM grid_display.
      ELSEIF r_hier EQ 'X'.
        PERFORM hier_display.
      ELSEIF r_blck EQ 'X'.
        PERFORM blockd_list.
      ENDIF.
    *&      Form  build_catalog
      Build Field Catalogue.
    FORM build_catalog .
      DATA : c_pos TYPE i.
    row_pos        like sy-curow, " output in row
            col_pos        like sy-cucol, " position of the column
            fieldname      type slis_fieldname,
            tabname        type slis_tabname,
            currency(5)    type c,
            cfieldname     type slis_fieldname, " field with currency unit
            ctabname       type slis_tabname,   " and table
            ifieldname     type slis_fieldname, " initial column
            quantity(3)    type c,
            qfieldname     type slis_fieldname, " field with quantity unit
            qtabname       type slis_tabname,   " and table
            round          type i,        " round in write statement
            exponent(3)       type c,     " exponent for floats
            key(1)         type c,        " column with key-color
            icon(1)        type c,        " as icon
            symbol(1)      type c,        " as symbol
            checkbox(1)    type c,        " as checkbox
            just(1)        type c,        " (R)ight (L)eft (C)ent.
            lzero(1)       type c,        " leading zero
            no_sign(1)     type c,        " write no-sign
            no_zero(1)     type c,        " write no-zero
            no_convext(1)  type c,
            edit_mask      type slis_edit_mask,                "
            emphasize(4)   type c,        " emphasize
            fix_column(1)   type c,       " Spalte fixieren
            do_sum(1)      type c,        " sum up
            no_out(1)      type c,        " (O)blig.(X)no out
            tech(1)        type c,        " technical field
            outputlen      like dd03p-outputlen,
            offset         type dd03p-outputlen,     " offset
            seltext_l      like dd03p-scrtext_l, " long key word
            seltext_m      like dd03p-scrtext_m, " middle key word
            seltext_s      like dd03p-scrtext_s, " short key word
            ddictxt(1)     type c,        " (S)hort (M)iddle (L)ong
            rollname       like dd03p-rollname,
            datatype       like dd03p-datatype,
            inttype        like dd03p-inttype,
            intlen         like dd03p-intlen,
            lowercase      like dd03p-lowercase,
    *ref_fieldname  like dd03p-fieldname,
            ref_tabname    like dd03p-tabname,
            roundfieldname type slis_fieldname,
            roundtabname   type slis_tabname,
            decimalsfieldname type slis_fieldname,
            decimalstabname   type slis_tabname,
            decimals_out(6)   type c,     " decimals in write statement
            text_fieldname type slis_fieldname,
            reptext_ddic   like dd03p-reptext,   " heading (ddic)
            ddic_outputlen like dd03p-outputlen,
    *key_sel(1)     type c,        " field not obligatory
            no_sum(1)      type c,        " do not sum up
            sp_group(4)    type c,        " group specification
            reprep(1)      type c,        " selection for rep/rep
            input(1)       type c,        " input
            edit(1)        type c,        " internal use only
            hotspot(1)     type c,        " hotspot
      c_pos = 1.
      wa_fieldcat_alv-col_pos = c_pos.
      wa_fieldcat_alv-fieldname = 'CH'.
      wa_fieldcat_alv-tabname   = 'ITAB'.
      wa_fieldcat_alv-outputlen  = 2.
      wa_fieldcat_alv-seltext_l  = ' '.
      wa_fieldcat_alv-no_out     = ' '.
      wa_fieldcat_alv-checkbox = 'X'.
      wa_fieldcat_alv-edit = 'X'.
      wa_fieldcat_alv-input = 'X'.
      APPEND wa_fieldcat_alv TO it_fieldcat_alv.
      CLEAR wa_fieldcat_alv.
      c_pos = c_pos + 1.
      wa_fieldcat_alv-col_pos = c_pos.
      wa_fieldcat_alv-fieldname = 'VBELN'.
      wa_fieldcat_alv-tabname   = 'ITAB'.
      wa_fieldcat_alv-outputlen  = 20.
      wa_fieldcat_alv-seltext_l  = 'Sales Doc'.
      wa_fieldcat_alv-no_out     = ' '.
      wa_fieldcat_alv-hotspot    = 'X'.
      APPEND wa_fieldcat_alv TO it_fieldcat_alv.
      CLEAR wa_fieldcat_alv.
      c_pos = c_pos + 1.
      wa_fieldcat_alv-col_pos = c_pos.
      wa_fieldcat_alv-fieldname = 'POSNR'.
      wa_fieldcat_alv-tabname   = 'ITAB'.
      wa_fieldcat_alv-outputlen  = 6.
      wa_fieldcat_alv-seltext_l  = 'Item'.
      wa_fieldcat_alv-no_out     = ' '.
      APPEND wa_fieldcat_alv TO it_fieldcat_alv.
      CLEAR wa_fieldcat_alv.
      c_pos = c_pos + 1.
      wa_fieldcat_alv-col_pos = c_pos.
      wa_fieldcat_alv-fieldname = 'NETWR'.
      wa_fieldcat_alv-tabname   = 'ITAB'.
      wa_fieldcat_alv-outputlen  = 20.
      wa_fieldcat_alv-seltext_l  = 'Net Price in Doc Curr'.
      wa_fieldcat_alv-no_out     = ' '.
      wa_fieldcat_alv-do_sum = 'X'.
      APPEND wa_fieldcat_alv TO it_fieldcat_alv.
      CLEAR wa_fieldcat_alv.
      c_pos = c_pos + 1.
      wa_fieldcat_alv-col_pos = c_pos.
      wa_fieldcat_alv-fieldname = 'VKORG'.
      wa_fieldcat_alv-tabname   = 'ITAB'.
      wa_fieldcat_alv-outputlen  = 6.
      wa_fieldcat_alv-seltext_l  = 'Sales Org'.
      wa_fieldcat_alv-no_out     = ' '.
      APPEND wa_fieldcat_alv TO it_fieldcat_alv.
      CLEAR wa_fieldcat_alv.
      c_pos = c_pos + 1.
      wa_fieldcat_alv-col_pos = c_pos.
      wa_fieldcat_alv-fieldname = 'MATNR'.
      wa_fieldcat_alv-tabname   = 'ITAB'.
      wa_fieldcat_alv-outputlen  = 20.
      wa_fieldcat_alv-seltext_l  = 'Mat Invoiced'.
      wa_fieldcat_alv-no_out     = ' '.
      APPEND wa_fieldcat_alv TO it_fieldcat_alv.
      CLEAR wa_fieldcat_alv.
      c_pos = c_pos + 1.
      wa_fieldcat_alv-col_pos = c_pos.
      wa_fieldcat_alv-fieldname = 'MEINS'.
      wa_fieldcat_alv-tabname   = 'ITAB'.
      wa_fieldcat_alv-outputlen  = 4.
      wa_fieldcat_alv-seltext_l  = 'UoM'.
      wa_fieldcat_alv-no_out     = ' '.
      APPEND wa_fieldcat_alv TO it_fieldcat_alv.
      CLEAR wa_fieldcat_alv.
    ENDFORM.                    " build_catalog
    *&      Form  build_fieldcat
          Build Field Catalog.
        -->   p_col_pos   : Column Position
        -->   p_fieldname : Field name
        -->   p_tabname   : Table Name
        -->   p_outputlen : Output Length
        -->   p_seltext_l : Field Name
        -->   p_no_out    : No Output flag
    FORM build_fieldcat  USING p_col_pos TYPE sy-curow
                               p_fieldname TYPE slis_fieldname
                               p_tabname   TYPE slis_tabname
                               p_outputlen TYPE dd03p-outputlen
                               p_seltext_l TYPE dd03p-scrtext_l
                               p_no_out    TYPE c
                               p_hotspot     TYPE c.
      wa_fieldcat_alv-col_pos = p_col_pos.
      wa_fieldcat_alv-fieldname = p_fieldname.
      wa_fieldcat_alv-tabname   = p_tabname.
      wa_fieldcat_alv-outputlen  = p_outputlen.
      wa_fieldcat_alv-seltext_l  = p_seltext_l.
      wa_fieldcat_alv-no_out     = p_no_out.
      wa_fieldcat_alv-hotspot    = p_hotspot.
      APPEND wa_fieldcat_alv TO it_fieldcat_alv.
      CLEAR wa_fieldcat_alv.
    ENDFORM.                    " build_fieldcat
    *&      Form  top_of_page
       Top_of_page
    FORM top_of_page.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          i_logo                   = 'XANSA_LOGO'
          it_list_commentary       = it_listheader
      I_END_OF_LIST_GRID       =
      I_ALV_FORM               = 'X'
    ENDFORM.                    " build_heading
    *&      Form  get_events
       Events.
    FORM get_events .
      wa_event-name = slis_ev_top_of_page.
      wa_event-form = 'TOP_OF_PAGE'.
      APPEND wa_event TO it_events.
      CLEAR wa_event.
    ENDFORM.                    " get_events
    *&      Form  buil_comment
          text
    FORM buil_comment .
      REFRESH it_listheader.
      CLEAR wa_listheader.
      wa_listheader-typ = 'H'.
      wa_listheader-info = 'DEMO EXAMPLE'.
      APPEND wa_listheader TO it_listheader.
    ENDFORM.                    " buil_comment
    *&      Form  build_layout
          Layout Settings
    FORM build_layout.
      wa_layout-zebra    = 'X'.
    ENDFORM.                    " build_layout
    *&      Form  build_sortinfo
        Sort Information
    FORM build_sortinfo .
    spos like alvdynp-sortpos,
            fieldname type slis_fieldname,
            tabname type slis_fieldname,
           up(1) type c,
           down(1) type c,
           group(2) type c,
           subtot(1) type c,
            up like alvdynp-sortup,
            down like alvdynp-sortdown,
            group like alvdynp-grouplevel,
            subtot like alvdynp-subtotals,
            comp(1) type c,
            expa(1) type c,
            obligatory(1) type c,
      wa_sortinfo-fieldname = 'MEINS'.
      wa_sortinfo-tabname   = 'IT_DATA'.
      wa_sortinfo-subtot   = 'X'.
      APPEND wa_sortinfo TO it_sortinfo.
      CLEAR wa_sortinfo.
    ENDFORM.                    " build_sortinfo
    *&      Form  user_command
        Handle User command
    FORM user_command USING r_ucomm LIKE sy-ucomm rs_selfield TYPE slis_selfield.
      SET PARAMETER ID 'AUN' FIELD rs_selfield-value.
      CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
    ENDFORM.                    "user_command
    *&      Form  LIST_DISPLAY
         Data in List display
    FORM list_display .
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
         i_callback_program             = v_report
      I_CALLBACK_PF_STATUS_SET       = ' '
         i_callback_user_command        = 'USER_COMMAND'
      I_STRUCTURE_NAME               =
         is_layout                      = wa_layout
         it_fieldcat                    = it_fieldcat_alv
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     =
         it_events                      = it_events
      IT_EVENT_EXIT                  =
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
      IR_SALV_LIST_ADAPTER           =
      IT_EXCEPT_QINFO                =
      I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
        TABLES
          t_outtab                       = itab
    EXCEPTIONS
      PROGRAM_ERROR                  = 1
      OTHERS                         = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " LIST_DISPLAY
    *&      Form  GRID_DISPLAY
          Data in Grid Display
    FORM grid_display .
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
          i_callback_program                = v_report
      I_CALLBACK_PF_STATUS_SET          = ' '
        i_callback_user_command           = 'USER_COMMAND'
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
          is_layout                         = wa_layout
          it_fieldcat                       = it_fieldcat_alv
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        =
          it_events                         = it_events
      IT_EVENT_EXIT                     =
      IS_PRINT                          =
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      I_HTML_HEIGHT_TOP                 = 0
      I_HTML_HEIGHT_END                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      IR_SALV_FULLSCREEN_ADAPTER        =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
         TABLES
           t_outtab                          = itab
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " GRID_DISPLAY
    *&      Form  hier_display
        Heirarchical display of Data.
    FORM hier_display .
      CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
        EXPORTING
      I_INTERFACE_CHECK              = ' '
         i_callback_program             = v_report
      I_CALLBACK_PF_STATUS_SET       = ' '
         i_callback_user_command        = 'USER_COMMAND'
         is_layout                      = wa_layout
         it_fieldcat                    = it_fieldcat_alv
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
      I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     =
         it_events                      = it_events
      IT_EVENT_EXIT                  =
          i_tabname_header               = 'IT_HEAD'
          i_tabname_item                 = 'IT_ITEM'
      I_STRUCTURE_NAME_HEADER        = 'IT_HEAD'
      I_STRUCTURE_NAME_ITEM          = 'IT_ITEM'
          is_keyinfo                     = wa_keyinfo
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                =
      IR_SALV_HIERSEQ_ADAPTER        =
      IT_EXCEPT_QINFO                =
      I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
        TABLES
          t_outtab_header                = it_head
          t_outtab_item                  = it_item
    EXCEPTIONS
      PROGRAM_ERROR                  = 1
      OTHERS                         = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " hier_display
    *&      Form  set_keyinfo
       Set key information
    FORM set_keyinfo .
      wa_keyinfo-header01 = 'VBELN'.
      wa_keyinfo-item01 = 'VBELN'.
    ENDFORM.                    " set_keyinfo
    *&      Form  BUILD_CATALOG1
          text
    -->  p1        text
    <--  p2        text
    FORM build_catalog1 .
      wa_fieldcat_alv-fieldname = 'VBELN'.
      wa_fieldcat_alv-tabname   = 'IT_HEAD'.
      wa_fieldcat_alv-outputlen  = 20.
      wa_fieldcat_alv-seltext_l  = 'Sales Doc'.
      wa_fieldcat_alv-no_out     = ' '.
      wa_fieldcat_alv-hotspot    = 'X'.
      APPEND wa_fieldcat_alv TO it_fieldcat_alv.
      CLEAR wa_fieldcat_alv.
      wa_fieldcat_alv-fieldname = 'VBELN'.
      wa_fieldcat_alv-tabname   = 'IT_ITEM'.
      wa_fieldcat_alv-outputlen  = 20.
      wa_fieldcat_alv-seltext_l  = 'Sales Doc'.
      wa_fieldcat_alv-no_out     = ' '.
      wa_fieldcat_alv-hotspot    = 'X'.
      APPEND wa_fieldcat_alv TO it_fieldcat_alv.
      CLEAR wa_fieldcat_alv.
      wa_fieldcat_alv-fieldname = 'POSNR'.
      wa_fieldcat_alv-tabname   = 'IT_ITEM'.
      wa_fieldcat_alv-outputlen  = 6.
      wa_fieldcat_alv-seltext_l  = 'Item'.
      wa_fieldcat_alv-no_out     = ' '.
      APPEND wa_fieldcat_alv TO it_fieldcat_alv.
      CLEAR wa_fieldcat_alv.
      wa_fieldcat_alv-fieldname = 'NETWR'.
      wa_fieldcat_alv-tabname   = 'IT_ITEM'.
      wa_fieldcat_alv-outputlen  = 20.
      wa_fieldcat_alv-seltext_l  = 'Net Price in Doc Curr'.
      wa_fieldcat_alv-no_out     = ' '.
      wa_fieldcat_alv-do_sum = 'X'.
      APPEND wa_fieldcat_alv TO it_fieldcat_alv.
      CLEAR wa_fieldcat_alv.
      wa_fieldcat_alv-fieldname = 'MATNR'.
      wa_fieldcat_alv-tabname   = 'IT_ITEM'.
      wa_fieldcat_alv-outputlen  = 20.
      wa_fieldcat_alv-seltext_l  = 'Mat Invoiced'.
      wa_fieldcat_alv-no_out     = ' '.
      APPEND wa_fieldcat_alv TO it_fieldcat_alv.
      CLEAR wa_fieldcat_alv.
      wa_fieldcat_alv-fieldname = 'MEINS'.
      wa_fieldcat_alv-tabname   = 'IT_ITEM'.
      wa_fieldcat_alv-outputlen  = 4.
      wa_fieldcat_alv-seltext_l  = 'UoM'.
      wa_fieldcat_alv-no_out     = ' '.
      APPEND wa_fieldcat_alv TO it_fieldcat_alv.
      CLEAR wa_fieldcat_alv.
    ENDFORM.                    " BUILD_CATALOG1
    *&      Form  BUILD_CATALOG2
          text
    FORM build_catalog2 .
    ENDFORM.                    " BUILD_CATALOG2
    *&      Form  blockd_list
          text
    FORM blockd_list .
    ENDFORM.                    " blockd_list
    I hope this will help u.

  • Need help in Custom component creation with cq

    Hi,
    I have created my own component in adobe cQ and able to drag an drop in any page. for each instance I am seeing the copy of
    component under node /content/mypage/commoncomp. If I edit the properties using design dialog  I can able to store values as
    expected.
    Need help in
    1) When I drag and drop the component it shows null for the property by deafult if I click save on edit dialog then the
    value is showing. The default value is not shown by default while drag and drop my component it requires atleast one time to
    click save from dialog using design mode
    2) I need to use the default properties of the orginal components which is root and use the duplicated properties if incase user edit the properties of duplicated component. This may be too messy.... to be more clear
    I want to use a common component in many pages but the properties of the components should be updated only when user edit it in design dialog utill then I need the page to use properties of root component.
    Thanks

    You just need to create your own version of PlumtreeTopBarView (original in com.plumtree.common.uiparts), and use CustomActivitySpace.xml to override that view with your own view. Your version would use some kidn fo logic to determine whether or not to display certain elements. TheUI Customization Guide should help quite a bit, and we have several quickstarts for overriding views you can start from.
    Is there some Help file in PT that I can reference that will enable me to find what namespace does GetRequestURL() belongs to?I would simply do a string compare. Tokenize the URL into the base address / control arguments, perhaps splitting on the "?" symbol; then tokenize the base address on the ".". You'll end up with three strings. For portal.plumtree.com, the three strings would portal, plumtree, and com. You can then use those string in the logig you add to PlumtreeTopBarView.
    David Phipps
    Plumtree Software

  • Job scheduling(passing the values to the child program)

    when i'm trying to schedule a background job(using job_open job_submit and job_close) i'm passing the values of the selection screen(parent program) to my child program using set parameter id. And trying to get the values using get parameter id in the cild program.
    But the values of the parent program are not being passed to the child program what may be the cause for it?

    rathan,
    Why con't you use
    SUBMIT... [VIA SELECTION-SCREEN]
    [USING SELECTION-SET <var>]
    [WITH <sel> <criterion>]
    [WITH FREE SELECTIONS <freesel>]
    [WITH SELECTION-TABLE <rspar>].
    When you start an executable program, the standard selection screen normally appears, containing the selection criteria and parameters of both the logical database connected to the program and of the program itself (see Direct Execution - Reports). When you start an executable program using SUBMIT, there are various additions that you can use to fill the input fields on the selection screen:
    SUBMIT... [VIA SELECTION-SCREEN]
    [USING SELECTION-SET <var>]
    [WITH <sel> <criterion>]
    [WITH FREE SELECTIONS <freesel>]
    [WITH SELECTION-TABLE <rspar>].
    These options have the following effects:
    VIA SELECTION-SCREEN
    The selection screen of the called executable program (report) appears. If you transfer values to the program using one or more of the other options, the corresponding input fields in the selections screen are filled. The user can change these values. By default, the system does not display a selection screen after SUBMIT.
    USING SELECTION-SET <var>
    This option tells the system to start the called program with the variant <var>.
    WITH <sel> <criterion>
    Use this option to fill individual elements <sel> of the selection screen (selection tables and parameters). Use one of the elements <criterion>:
    <op> <f> [SIGN <s>], for single value selection
    If <sel> is a selection criterion, use <op> to fill the OPTION field, <f> to fill the LOW field, and <s> to fill the SIGN field of the selection table <sel> in the called program.
    If <sel> is a parameter, you can use any operator for <op>. The parameter <sel> is always filled with <f>.
    [NOT] BETWEEN <f1> AND <f2> [SIGN <s>], for interval selection
    <f1> is transferred into the LOW field, <f2> into the HIGH field, and <s> into the SIGN field of the selection table <sel> in the called program. If you omit the NOT option, the system places the value BT into the OPTION field; if you use NOT, the system fills OPTION with NB.
    IN <seltab>, transferring a selection table
    This addition fills the selection table <sel> in the called program with the values of the table <seltab> in the calling program. Table <seltab> must have the structure of a selection table. Use the RANGES statement to create selection tables.
    WITH FREE SELECTION <freesel>, user dialog for dynamic selections
    To use this option, the called program must be connected to a logical database that supports dynamic selections. In the calling program, use the function modules FREE_SELECTIONS_INIT and FREE_SELECTIONS_DIALOG. They allow the user to enter dynamic selections on a selection screen. One export parameter of these function modules has structure RSDS_TEXPR from the RSDS type group. Transfer the values of this export parameter by means of the internal table <freesel> of the same structure to the called report.
    WITH SELECTION-TABLE <rspar>, dynamic transfer of values
    You need an internal table <rspar> with the Dictionary structure RSPARAMS. The table then consists of the following six fields:
    SELNAME (type C, length 8) for the name of the selection criterion or parameter
    KIND (type C, length 1) for the selection type (S for selection criterion, P for parameter)
    SIGN, OPTION, LOW, HIGH as in a normal selection table, except that LOW and HIGH both have type C and length 45.
    This table can be filled dynamically in the calling program with all of the required values for the selection screen of the called program. If the name of a selection criterion appears more than once, the system creates a multiple-line selection table for that criterion in the called program. If the name of a parameter appears more than once, the system uses the last value. Note that LOW and HIGH have type C, so that the system executes type conversions to the criteria of the called program. This is important for date fields, for example. Before your program is used in a live context, you should check it using the VIA SELECTION-SCREEN addition.
    Except for WITH SELECTION-TABLE, you can use any of the above options several times and in any combination within a SUBMIT statement. In particular, you can use the WITH <sel> option several times for one single criterion <sel>. In the called program, the system appends the corresponding lines to the selection tables used. For parameters, it uses the last value specified. The only combination possible for the WITH SELECTION-TABLE option is USING SELECTION-SET.
    If the input fields on the selection screen are linked to SPA/GPA parameters, you can also use this technique to pass values to the selection screen (see Passing Data Between Programs).
    The following executable program (report) creates a selection screen containing the parameter PARAMET and the selection criterion SELECTO:
    REPORT  demo_program_submit_rep1.
    DATA number TYPE i.
    PARAMETERS      paramet(14) TYPE c.
    SELECT-OPTIONS  selecto FOR number.
    The program DEMO_PROGRAM_SUBMIT_REP1 is called by the following program using various parameters:
    REPORT demo_program_submit_sel_screen NO STANDARD PAGE HEADING.
    DATA: int TYPE i,
          rspar TYPE TABLE OF rsparams,
          wa_rspar LIKE LINE OF rspar.
    RANGES seltab FOR int.
    WRITE: 'Select a Selection!',
    SKIP.
    FORMAT HOTSPOT COLOR 5 INVERSE ON.
    WRITE: 'Selection 1',
         / 'Selection 2'.
    AT LINE-SELECTION.
      CASE sy-lilli.
        WHEN 4.
          seltab-sign = 'I'. seltab-option = 'BT'.
          seltab-low  = 1.   seltab-high   = 5.
          APPEND seltab.
          SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
                          WITH paramet eq 'Selection 1'
                          WITH selecto IN seltab
                          WITH selecto ne 3
                          AND RETURN.
        WHEN 5.
          wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
          wa_rspar-sign = 'E'. wa_rspar-option = 'BT'.
          wa_rspar-low  = 14.  wa_rspar-high = 17.
          APPEND wa_rspar TO rspar.
          wa_rspar-selname = 'PARAMET'. wa_rspar-kind = 'P'.
          wa_rspar-low  = 'Selection 2'.
          APPEND wa_rspar TO rspar.
          wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
          wa_rspar-sign = 'I'. wa_rspar-option = 'GT'.
          wa_rspar-low  = 10.
          APPEND wa_rspar TO rspar.
          SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
                          WITH SELECTION-TABLE rspar
                          AND RETURN.
      ENDCASE.
    Pls. reward if useful...

  • I NEED HELP! How do you Create a Drop Down Accordion Navi with the child pages remaining expanded

    I would like to know how I can create a vertical accordion navigation with some custom modifications.
    I need it to function like this sites vertical navigation. (link is below)  Click on the parent page "bedrooms" and it expands revealing all of the "child pages" then click on one of the child pages, it turns the font to Underlined and all the child pages remain exposed!  (it does not collapse after you click on a child page!!!!!!!) I need my site to do this as it tells the visiter where they are exactly on the site!     Please HELP ME!  Thank You! 
    I would actually like mine to be a little more pronounced.  Perhaps having the link turn to BOLD Font indicating you are on that page.  And the main Parent page would have a diffrent background color. 
    Site that has the Navi that I want to Mimic:
    http://www.fowfurniture.com/
    EXAMPLE: Adhesives IS IN BOLD indicating you are on that page. and it remains open it should remain open until you click on another parent page like Hardwood. (Then the Hardwood child pages (Sub Menu) would expand looking like the carpet sub menus/child pages.  All of the accordians i have found seam to collapse after you select a child page (sub menu) and the visitor wouldn't know where he is on the site...  Please Help Me accomplish this!
    Carpet
                          Repairs
                          Fibers
                          Adhesives    
                          Tools
                          Pad
    Hardwood
    When nothing is selected it should look like this: The cell of "Carpet" is a slightly a diffrent color because it is in the "Hover"  state. 
    Carpet
    Hardwood
    Tile
    Vinyl
    Linoleum

    Still need help, I could do it for a value lower. contact me at [email protected]

  • Passing Values to Child Forms

    I have a parent summary form. When the user presses a button, it pops up a detail form for the user to edit/fill in. How do I pass the initial values from the parent form to the child form and back? Where can I find an example of this?

    DeltaGeek wrote:
    BarryC wrote:
    Thank you.
    Do you happen to know of any tutorials/examples showing various methods of passing values between forms?The same way you pass values anywhere else. When you create your child form, give it a reference to the parent form or references to the data that will be changed. If you feel like making your code more modular, create a class specifically to hold the entered data and be passed anywhere you need.An application context, in effect

  • Java Thread - difficulty while passing value from parent to child thread

    Hi All,
    I am calling a java program from a unix script .
    My oblectives are
    1)to pass value from scripts to main java class
    2)main class should create a child thread and pass data to child and should return control back to script
    3)child thread should run independtly of parent
    The calling unix script is part of process and hence should return control back to its calling script immediately.
    Findings
    1)Without passing data thru setter getter /constructor method to child thread my objectives are met
    2)When I pass the data from parent thread to child thread calling unix scripts wait till child thread finishesh its working
    call.scr
    java Main <list of Arguments>
    Main.java
    public class Main
                 public static void main(String args[]) throws Exception
                 String data2="Z";
                 String data1=null;
                 for(int i=0;i<args.length;i++)
                      data2=data2+","+args;
    data1=data2;
    Child cu=new Child();
    cu.setData(data1);
    data2=null;
    data1=null;
    cu.start();
    Child.javaclass Child extends Thread
    public String data;
    void setData(String data)
    this.data=data;
    public void run()
    ----------> processing on data
    I think due to passing of data from parent thread to child thread (Inter thread data communication/Inter process communication)
      the threads are not working as desired.
    Plz anybody can suggest something.....
    Thanx.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    aschin,
    You seem to be confusing Java Threads with Operating System Processes.
    If you want you're java program to run in the unix background then you'll need to run it in the unix background. Java (being o/s agnostistic) doesn't provide process manipulation functionality (which would include the ability to throw itself into the background, as a C program can) in the standard API, and it's hard to imagine any third party producing anything as low level as a process controler... so yeah, just start the java program in the background... and you'll need to workout some interprocess communication protocol... named pipes have worked well for me in the past, as they doesn't suffer from the quit same performance issues as real disk files.
    Good luck. Keith.

  • Passing all values to the child report in OpenDoc - XIR3.1

    Hi all
    in XIR3.1
    iam able to write the open document syntax and also able pass some prompts i wanted like month, year, ID,... etc
    am able to pass and open a child report based on parameters when i select one value of those fields from dropdown in drill mode
    my requirement is if i select All Months or All Years from the dropdown it should generate a child report based on All Years Parameter can we do this
    Any ideas please
    Thanks in advance

    You may refer to the article:
    http://wiki.sdn.sap.com/wiki/display/BOBJ/WebItrick-drillamongmultiplereports
    And you will find out the way to transfer the all value.

  • Re: Help needed in passing values from workflow to Approve Forms

    Dear Experts,
    how do I pass values from a workflow to a step (Form) - approve form?
    I am using a customized table structure as my data source (FORMCONTAINERELEMENT) but am stuck on how to access the data when i get to to the screen painter's flow logic... What am i missing? Can you give me a step by step example. the ones i see on the net are input fields that update the screen... nothing that shows value being passed from the outside.
    I need to pass an exisitng value in the workflow into the form for approval of the the assigned agent.
    Please help!!
    Thank you.

    Hello !
             Create a method just before the form step.This method should populate the values for the fields maintained in the form.
             Pass the values populated from this method to your customized table structure (data source).In other words, you have to pass all the values to the workflow container.
            To the step, pass this workflow container by binding.In the control tab of form step, you have to do the binding.
    Regards,
    S.Suresh

Maybe you are looking for

  • Parseing an XML Document as a String

    Hi all, i am trying to parse an XML document to a parser. I get the file as a request parameter, which is filled in to at String variable. But for some reason i get an SAXException, does anyone se the problem? Thank you for your help... Below is the

  • Final cut pro fcp 6.0.6 unexpected quit using OS 10.6.8

    Just upgraded to OS 10.6.8 and installed MacKeeper (big mistake) and FCP 6.0.8 quits during start up?  Trashed MacKeeper and re-installed everything but Final Cut Pro still quits during start up?  Everything else seems fine - any sugegstions about wh

  • Running report in background getting runtime error.

    Hi, I am getting run time error , when I execute the report in background . When I debug it I am getting error - when it is executing CALL METHOD cl_ppegihdr_cntl=>exppe_read . In ST22 I get error on " SET HANDLER event_rec_tool_at1->on_function_sele

  • Barcode Label Printing

    Dear Experts, is it possible to print barcodes on labels using the SAPSprint service ? The labels are defined as Sapscripts and Smartforms. Thanks a lot for any help. Regards, Marc Edited by: Marc Reinhardt on Jan 6, 2009 2:53 PM One more remark: Is

  • JPEG  Format

    My cameras color space is RGB and I use Photoshop Elements 3 for some minor post editing. Question is---after post editing in Photoshop Elements 3 I save my images for printing in a JPEG format. I am given 2 choices----baseline standard or baseline o