Problem in getting data on button submit

I have 3 combo boxes in a form & a button on the other html form
when the user will change the combo box, the form will be submitted with the values of all three combo boxes.
And when the button is pressed it will again submit the form along with all the values of comboboxes & same values in different variables. I am doing this so the new variables can be used to call the discoverer sheet & old can be used to mantain the state of the combo boxes.
The datasheet will not be populated on change of combo boxes, but will only show the data when the button is pressed.
The problem i am getting the user is not getting the required data on the first click of the button, but when the button is pressed for the second time, the user will get the required result.
Follwing is the chunk of code that I am using.
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<script type="text/javascript">
function myFunc(){
     document.forms["form1"].elements["GRP"].disabled=false;
     document.forms["form1"].elements["RGN"].disabled=false;
     var i = document.forms["form1"].elements["GRP"].value;
     var j = document.forms["form1"].elements["RGN"].value;
     var k = document.forms["form1"].elements["BR"].value;
     if(j == 0){
          submitform();
     else{
          submitform();
     if(k == 0){
          submitform();
     else{
          //makeGRPDisable();          
          //makeRGNDisable();          
          submitform();
function submitform()
document.form1.submit();
function submitform2()
document.form2.submit();
var queryString;
function getParameter( parameterName ) {
queryString = window.location.search.substring(1).toLowerCase();
//alert(queryString);
//if (queryString.length==0) {return "null";}
var parameters = new Array();
parameters = queryString.split('&');
for(var i = 0; i < parameters.length; i++) {
//alert(parameters);
//alert(parameters[i].indexOf(parameterName));
if (parameters[i].indexOf(parameterName.toLowerCase())>=0) {
//alert(parameters[i]);
var parameterValue = new Array();
parameterValue = parameters[i].split('=');
return parameterValue[1];
return null;
var Pgid = getParameter('_pageid');
var Gid = getParameter('GRP');
var Rid = getParameter('RGN');
var Bid = getParameter('BR');
var Gid2 = getParameter('GRP2');
var Rid2 = getParameter('RGN2');
var Bid2 = getParameter('BR2');
var ALid = getParameter('AL');
</script>
</head>
<body>
<table width="100%" border="1" cellpadding="0" bordercolor="#F26520" bgcolor="#FFFFFF">
<tr>
<td>
<form name="form1" action="http://cdbo:7778/portal/page? method="GET">
<oracle>
declare
theUser varchar2(30) := portal.WWCTX_API.get_user;
Uid2 varchar2(30);
begin
htp.p('<input type="hidden" name="_pageid" value="553,142908" />');
htp.p('<input type="hidden" name="_dad" value="portal" />');
htp.p('<input type="hidden" name="_schema" value="PORTAL" />');
htp.p('<input type=hidden name="AL" value=' || :v_al_id || '>');
IF :v_al_id=0 THEN
IF :v_group_id=0 AND :v_region_id=0 AND :v_branch_id=0 THEN
     htp.p('<select name="GRP" onChange="submitform()">');
     htp.p('<option value=0>All</option>');
     for i in (select groupcode, groupshortname from GROUPS@cdb)
     loop
          htp.p('<option value="' || i.groupcode || '">' || i.groupshortname || '</option>');
     end loop;
     htp.p('</select>');
     htp.p('<select name=RGN onChange="myFunc()">');
     htp.p('<option value=0>All</option>');
          htp.p('</select>');
     htp.p('<select name=BR onChange="submitform()">');
     htp.p('<option value=0>All</option>');
     htp.p('</select>');
END IF;
END IF;
END;
</oracle>
</form>
</td>
<form name="form2" action="http://cdbo:7778/portal/page? method="GET">
<td>
<oracle>BEGIN
IF :v_group_id=0 AND :v_region_id=0 AND :v_branch_id=0 THEN
     htp.p('<input type="hidden" name="_pageid" value="553,142812" />');
     htp.p('<input type="hidden" name="_dad" value="portal" />');
     htp.p('<input type="hidden" name="_schema" value="PORTAL" />');
     htp.p('<input type=hidden name="AL" value=' || :v_al_id || '>');
     htp.p('<input type=hidden name="GRP" value=' || :v_group_id || '>');
     htp.p('<input type=hidden name="RGN" value=' || :v_region_id || '>');
     htp.p('<input type=hidden name="BR" value=' || :v_branch_id || '>');
     htp.p('<input type=hidden name="GRP2" value=' || :v_group_id || '>');
     htp.p('<input type=hidden name="RGN2" value=' || :v_region_id || '>');
     htp.p('<input type=hidden name="BR2" value=' || :v_branch_id || '>');
     htp.p('<input type=button value=Submit onClick=submitform2()>');
END IF;
END;
</oracle>
</form>
</td>
</tr>
</table>
</body>
</html>
Regards
AkS!

AkS,
I think I get it. You want the user to be able to change the combo boxes as they like, but the report is only refreshed when they click on the submit button. I don't understand why you need to refresh the screen each time a combo is selected, but I'm guessing that the values in the second and third combo boxes will vary depending on the selection made in the first.
You could achieve this using AJAX calls, but that gets into a whole new game.
I'm puzzled about the if ... then test to see that the fields are all set to 0 (that equates to "all" I think. If I read your code right, that means the form is only displayed if the user selects all from each combo. There's also a closing " mark missing at the end of the form action (you should't need the question mark - it will be added automatically).
Using a GET method is good because you can see the parameters on the url, but It might be helpful to change the type of the inputs in form2 from hidden to text fields so you can see what Portal is seeing. It won't change the functionality, but it may help you see if the values are being set at the correct time.
Finally, have you checked the cache settings for the page?
I can't think of anything else to suggest.
Patrick.

Similar Messages

  • Problem in getting data into database with standard direct input program

    HI All,
    I am having problem which is not updating the records in MM01 or MM02 with standard direct input program. i have data in internal table. from that table i am trying to upload into database by using background job MRP_MATERIAL_MASTER_DATA_LOAD.
    when i execute my program it is showing message job is started. then i go into sm37 and seethe job status by executing. there also i am seeing job completed succesfully.
    but if i go to mm03 and find the materials are updated or created there i couldn't find the material numbers which are from internal table.
    So if ny one help me it wil be great.
    Thanks in Advance
    Venkat N

    Hi Anil,
    Thanks for your answer, but i am facing problem is i have material no and denominator and Actual UOM and nominator field values in the flat file.....
    by using RMDATIND direct input program with MRP_MATERIAL_UPLOAD as job name for background job while uploading data into database.
    here i am not getting data in to database, but when i execute the job in sm37 it is showing that message job processing successfully completed...this is my status..
    if u can help me in this it will be gr8ful..
    Thanks,
    Venkat N

  • Problem in getting data

    Hi,
    When I give the below query at SQL prompt. Iam getting an error "ORA-00932: inconsistent datatypes: expected NUMBER got LONG".
    SqlExport=`sqlplus -s username/password@databasename << EOF
    spool test1.txt;
    set linesize 32767;
    set PAGESIZE 0 space 0 feedback off echo off verify off heading off;
    set termout off trimspool on;
    SELECT column1,column2,column3,column4,....................column14 FROM table WHERE cond1,cond2;
    exit sql.sqlcode;
    commit;
    spool off;
    EXIT;
    EOF`
    My guess is in the above query column4 is of LONG datatype contains large data. so the Sqlexport variable is not able to hold that many records. Please let me know If Iam wrong and please let me know solution for this.

    Please forgive me, but I'm a little confused now.
    You started out with
    "ORA-00932: inconsistent datatypes: expected NUMBER got LONG".followed by a pseudo query
    SELECT column1,column2,column3,column4,....................column14 FROM table WHERE cond1,cond2;Upon asked you stated:
    Iam selecting as it is. Iam not applying any sql function. and
    No. In condition Iam not using that column or any column of LONG datatype.Now, you say
    I tried using CONVERT_LONG_TO_CHAR('table','col4',col1).
    But Iam not getting desired outputAre you pulling my leg, or is this a different problem, now?
    - Perhaps you should post your actual query giving the ORA-00932
    Regards
    Peter

  • Problem in getting data in SNP Planning Area Data Source

    Hi All,
    Problem Statement: To fetch data from SNP Planning Area for reporting in SAP BW.
    Approach: Followed the standard SAP Help Document. Link:http://help.sap.com/saphelp_scm40/helpdata/en/e0/9088392b385f6be10000000a11402f/content.htm
    First Step: To create a DataSource on the Planning Area (Z9ASNP02) and Aggregate(9AMALO).
    For that
    Go to SAP Easy Access>Click on /SAPAPO/MSDP_ADMIN/ you are on S&DP Administration>Select the planning Area Z9ASNP02 double click on it
    You are on Change Planning Area Screen>Go to Extras left click>DP/SNP Data Extraction Tool-->Click on Generate Data Source, Provide the
    Data Source Name & Select the Aggregate 9AMALO and click on continue. Data Source is generated.
    But now when i go for Test Data Source-->Extractor Checker Screen and then providing the version 000 and then when i click on extraction Button
    It gives a Message "0 data records selected".
    Thanks in Advance,
    rahul

    Hi Somnath,
    Please correct me if my understanding is wrong; you are saying that, we cannot extract data from order series keyfigures. In that case how many key figures you maintain for time series, performance miight come down for planning area if you maintain huge no of keyfigures.
    Is there any way to extract data from Order series Planning area?
    Thanks & Regards,
    Jagadeesh.

  • Facing problem in getting data in different field

    hi,
    i have made a report in ALV format. n the whole code is this..
    TABLES: VBAK,vbap.
    type-pools: slis.       "ALV Declarations
    SELECT-OPTIONS:
    s_sales   for    vbak-kunnr    obligatory,
    s_date    for    VBAK-audat    obligatory.
    *Data Declaration
    types: begin of s_sales,
      kunnr like vbak-kunnr,
      ernam like VBRP-ernam,
      audat like VBAK-audat,
      aufnr like VBAK-aufnr,
      KBMENG like vbap-KWMENG,
      matnr like vbap-matnr,
      matwa like vbap-matkl,
      end of s_sales.
    DATA: IT_VBAKUK TYPE STANDARD TABLE OF s_sales INITIAL SIZE 0,
          WA_sales TYPE s_sales.
    *ALV data declarations.
    data: fieldcatalog type slis_t_fieldcat_alv with header line,
          gd_tab_group type slis_t_sp_group_alv,
          gd_layout    type slis_layout_alv,
          gd_repid     like sy-repid.
    *start-of-selection.
    START-OF-SELECTION.
      perform data_retrieval.
      perform build_fieldcatalog.
      perform build_layout.
      perform display_alv_report.
    *&      Form  build_fieldcatalog
          text
    form build_fieldcatalog.
      fieldcatalog-fieldname   = 'KUNNR'.
      fieldcatalog-seltext_m   = 'Customer Code'.
      fieldcatalog-col_pos     = 1.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'ernam'.
      fieldcatalog-seltext_m   = 'Customer Name'.
      fieldcatalog-col_pos     = 2.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'stadat'.
      fieldcatalog-seltext_m   = 'Order Date'.
      fieldcatalog-col_pos     = 3.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'aufnr'.
      fieldcatalog-seltext_m   = 'Order No'.
      fieldcatalog-col_pos     = 4.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'KWMENG'.
      fieldcatalog-seltext_m   = 'Quantity'.
      fieldcatalog-col_pos     = 5.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'matnr'.
      fieldcatalog-seltext_m   = 'Material Code'.
      fieldcatalog-col_pos     = 6.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'matkl'.
      fieldcatalog-seltext_m   = 'Material Description'.
      fieldcatalog-col_pos     = 7.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    endform.                    "build_fieldcatalog
    *&      Form  build_layout
          text
    form build_layout.
      gd_layout-no_input          = 'X'.
      gd_layout-colwidth_optimize = 'X'.
    endform.                    "build_layout
    *&      Form  display_alv_report
          text
    form display_alv_report.
      gd_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = gd_repid
          is_layout          = gd_layout
          it_fieldcat        = fieldcatalog[]
          i_save             = 'X'
        TABLES
          t_outtab           = IT_VBAKUK
        EXCEPTIONS
          program_error      = 1
          others             = 2.
      if sy-subrc <> 0.
      endif.
    endform.                    " DISPLAY_ALV_REPORT
    *&      Form  data_retrieval
          text
    form data_retrieval.
      select vbakkunnr VBakernam VBAkaudat vbakaufnr vbapKWMENG vbapmatnr vbap~matkl
      up to 10 rows
        from vbak inner join vbap on vbakvbeln = vbapvbeln
        into table IT_VBAKUK.
    endform.                    "data_retrieval
    When a execute this query it get this result:
    Customer code Customer No. Order Date      *Order No. *        *Quantity *        Material code  Material Description
    0000001390     0000001390     0000001390     0000001390     0000001390     0000001390     0000001390
    0000001175     0000001175     0000001175     0000001175     0000001175     0000001175     0000001175
    0000001175     0000001175     0000001175     0000001175     0000001175     0000001175     0000001175
    0000001175     0000001175     0000001175     0000001175     0000001175     0000001175     0000001175
    0000001175     0000001175     0000001175     0000001175     0000001175     0000001175     0000001175
    0000001001     0000001001     0000001001     0000001001     0000001001     0000001001     0000001001
    0000002200     0000002200     0000002200     0000002200     0000002200     0000002200     0000002200
    0000002200     0000002200     0000002200     0000002200     0000002200     0000002200     0000002200
    0000002200     0000002200     0000002200     0000002200     0000002200     0000002200     0000002200
    0000002200     0000002200     0000002200     0000002200     0000002200     0000002200     0000002200
    You can see in all column data is repeating even tough i have given different field name...
    Kindly give me solution of this problem.
    Thanks n Regards.

    hi,
    i have these field:
    *select VBAK~KUNNR VBAK~ERNAM VBAK~AUDAT VBAK~AUFNR VBAP~KWMENG VBAP~MATNR VBAP~MATKL
      up to 10 rows
        from VBAK inner join VBAP on VBAK~VBELN = VBAP~VBELN
        into table IT_VBAKUK.
    endform.*
    I want to add these field in my parameter by using WHERE clause but don't know how to restrict these field using where clause.
    Kindly give me some example related to this.
    Regards

  • Problem in getting data form serch help .

    Hi experts ,
    i am using function module F4IF_FIELD_VALUE_REQUEST to ge the values in a button click .
    i want to fill the values to be filled in the screen fields automatically when i click of a perticular line.
    please help me out.
    thanks in advance .
    Naval bhatt

    Hi,
    DATA : v_return LIKE  ddshretval OCCURS 0 WITH HEADER LINE.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_idn1-low.
    **--Value help for service provider
      PERFORM value_help_serprovider USING  c_add c_low.
    FORM value_help_serprovider USING p1_field p1_text.
    SELECT werks INTO TABLE i_t001w
      FROM t001w.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
             EXPORTING
                  retfield        = 'WERKS'
                  dynpprog        = ws_repid
                  dynpnr          = sy-dynnr
                  value_org       = 'S'
             TABLES
                  value_tab       = i_t001w
                  return_tab      = v_return
             EXCEPTIONS
                  parameter_error = 1
                  no_values_found = 2
                  OTHERS          = 3.
        IF sy-subrc <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ENDIF.
    This the  main point to get the selected line into selection screen.
        s_plant1-low = v_return-fieldval.
    ENDFORM.                    " Value_Help_Serprovider

  • Problem in getting data into the child window.

    Hi.
    problem description:
    I have a jsp(lets say parent.jsp). On click of a button in parent.jsp, a showmodal dialogue opens(say child.jsp).
    child.jsp has several fields and a 'search' button.
    On click of the 'search' button in child.jsp, data should be fetched from Database and should be populated in child.jsp, without submitting parent.jsp.
    I am able to fetch the data from DB. But unable to populate it in the same child window.
    How to achieve this?
    thanks
    Akash

    areee yaar...ajax and jsp are two different things altogther...whats harm in using ajax if most of the webapplication now deploy ajax for asynchronous call..

  • Problem in getting data while creating public template shopping cart(urgen)

    Hi Gurus,
    I am technical guy...Could you please suggest me how to populate the purchase organisation details(be_pur_org) which is of type bbps_sc_app_item.
    The problem is while creating normal shopping cart template it is displaying the vendor and inforecord details..when I use the same data for creating the public shopping cart it is not displaying the values (vendor and inforecord details) this is due to the missing of purchase organisation field value which is populated in the field be_pur_org which is of type bbps_sc_app_item.
    Is there any badi's to populate the purchase organisation details...?
    awaiting for all your replies..points will be rewarded with lots of appreciation
    Thanks & Regards,
    Ravi Ganji

    Hi
    <u>You can use either of the BADIs depending on your requirement.</u>
    BAdI Definition Name Description                                                                               
    BBP_PGRP_ASSIGN_BADI EBP Purchasing Documents: Assign Purchasing Group(s)       
    BBP_PGRP_FIND        Shopping Cart: Determine Responsible Purchasing Group(s)                                                                               
    BBP_DOC_CHANGE_BADI
    BAdI for Changing EBP Purchasing Documents
    <b>Please read the Standard documetation available with them using SE18 transaction in SRM system.</b>
    Which SRM version you are using ?
    Hope this will help.
    Please reward suitable points.
    Regards
    - Atul

  • Using Item UIDRef, can we get data as set in "text on path option" dailog box for each "text on path" item

    Hi all,
    I have a Item UIDRef but facing a problem for getting data as set in "text on path option" dailog box for each "text on path" item.
    What I did:
    - Getting the  pointer "IMainItemTOPData" using item UIDRef as
      InterfacePtr<IMainItemTOPData> mainItemTOPData(shapesUIDRef, UseDefaultIID());
    - This interface has the method GetTOPOptionData () which return ITOPOptionsData pointer
    - But SDK don't have "ITOPOptionsData" class implementation.
    Second Approch:
    - Used "ITextOnPathSelectionSuite" and getting the correct result for Desktop plugin.But I want the correct result in server plugin also.
    Anyone who has an idea how to get this using UIDRef, please let me know.
    Regards,
    Jitendra Kumar Singh

    Hi Pulse,
    Unfortunately, Flex doesn't currently support text on a path. However, I binged it and found this:
    http://blog.tsclausing.com/post/49
    That might be useful.
    -Adam

  • How get data from WebPartStorage?

    Hi, Im creating custom ToolPart. I want save and get data in WebPartStorage. Now i have problem with get data...This is what I create:
    How get data form  WebPartStorage?
    public partial class ExchangeRateWebPart : Microsoft.SharePoint.WebPartPages.WebPart
    [Browsable(true), Category("Miscellaneous"),
    DefaultValue("Site Names"),
    WebPartStorage(Storage.Shared),
    FriendlyName("URLs"), Description("Text Property")]
    public List<string> ListCurrentNames
    get;
    set;
    protected override void Render(HtmlTextWriter writer)
    base.Render(writer);
    writer.Write(ListCurrentNames);
    class ExchangeRateCustomToolPart : ToolPart
    public override void ApplyChanges()
    ExchangeRateWebPart webpart = (ExchangeRateWebPart)this.ParentToolPane.SelectedWebPart;
    webpart.ListCurrentNames = _listCurrentNames;

    Hi,
    According to your post, my understanding is that you wanted to create custom toolpart.
    WebPartStorageAttribute class specifies how a property should be stored.
    If a WebPartStorageAttribute attribute is not specified for a property, Personal is used by default.
    If a WebPartStorageAttribute attribute is specified for a property but the ControlledExport property is not
    set, the value is presumed to be set to false.
    You might have noticed that the Web Part custom property has some attributes. Each of them are described below.
    Property
    Description
    Browsable
    If false, the property is not displayed on the web part   property pane
    DefaultValue
    Default Value for the property
    WebPartStorage
    Shared, Personal and None are the enumeration members
    FriendlyName
    The name for the property for display purposes
    Description
    The tooltip about the property
    http://www.c-sharpcorner.com/UploadFile/40e97e/sharepoint-2010-web-parts-programming/
    there are some articles about custom the toolpart, you can have a look at them.
    http://www.wictorwilen.se/Post/Web-Part-Properties-part-1-introduction.aspx
    https://www.nothingbutsharepoint.com/sites/devwiki/articles/Pages/SharePoint-Creating-a-Custom-ToolPart-for-a-Custom-Web-Part.aspx
    http://microsoftsharepointdevelopment2010.blogspot.com/2012/03/creating-webpart-with-custom-toolpart.html
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • How get datas???

    Hi..
    I have some problems with getting data s from any action .I define global variable and assign null value. In some action I get data s and in that action I assign this data s to global variable.But when I call that value out of this action it returns null value. I can't understand why in action the variable can't get values. Maybe I need getter????
    Thank in advise.

    I define this variable as a global.
    private Object tablename;
    tree.addTreeSelectionListener(new TreeSelectionListener() {
    public void valueChanged(TreeSelectionEvent e) {
    DefaultMutableTreeNode node = (DefaultMutableTreeNode) tree.tree.getLastSelectedPathComponent();
    tablename = tree.getLastSelectedPathComponent();
    if (node == null) {
    return;
    Object nodeinfo = node.getUserObject();
    String name = String.valueOf(nodeinfo);
    }

  • Problem overloading "set data" function on Button DataGrid Renderer

    Hi all, I'm hoping this is something simple.
    I have a class that extends mx.controls.Button and implements mx.core.IDataRenderer.  I need to set the button icon whenever the Data property is set from the DataGrid.  My problem is that my overloaded set/get Data function are never called (I've stepped through the code in debug).  Instead the set/get functions in Container.as (Flex 3.4 SDK) get called.
    Here's the basics code:
    exportButtonRenderer.as
    package controls
        import flash.events.Event;
        import flash.events.MouseEvent;
        import mx.controls.Button;   
        import mx.core.IDataRenderer;
        import mx.controls.dataGridClasses.DataGridListData;   
        import mx.controls.listClasses.BaseListData;
        import mx.events.FlexEvent;
        import mx.controls.Alert;
        import model.descriptors.compDescriptor;
        import events.exportClickedEvent;   
        public class exportButtonRenderer extends Button implements IDataRenderer   
            //    embed your icons
            [Embed(source='/assets/icons/export.png')]
            [Bindable]
            public static var imageExport:Class;
            [Embed(source='/assets/icons/blank.png')]
            [Bindable]
            public static var imageBlank:Class;
            public function exportButtonRenderer()
                super();
            private var _listData:DataGridListData;
            override public function get listData():BaseListData
                return _listData;
            override public function set listData(value:BaseListData):void
                _listData = DataGridListData(value);
            private var _data:Object;       
            override public function get data():Object
                return _data;
            override public function set data(value:Object):void
                _data = value;
            override protected function clickHandler(event:MouseEvent):void
                super.clickHandler(event);   
    Now I know I'm using the Flexlib TreeGrid and not a standard DataGrid but when I trace through all the code all code firing the set/get functions is coming from the DataGrid anyway.
    Here's the my Grid def in my main app mxml:
    Header 1
    <flexlib:TreeGrid
            id="MKTXGrid"
            dragEnabled="false" sortableColumns="false" showRoot="false"
            disclosureClosedIcon="@Embed(source='/assets/icons/arrow_right.png')"
            disclosureOpenIcon="@Embed(source='/assets/icons/arrow_down.png')"
            folderOpenIcon="@Embed(source='/assets/icons/psd.png')"
            folderClosedIcon="@Embed(source='/assets/icons/psd.png')"       
            click="MKTXGrid_clickHandler(event)"
             doubleClickEnabled="true" doubleClick="MKTXGrid_doubleClickHandler(event)" left="0" right="0" top="0" bottom="16">
        <flexlib:columns>
                <flexlib:TreeGridColumn dataField="Name" headerText = "Name" minWidth="200" width="200" editable="true"/>
                <mx:DataGridColumn dataField="ExportName" headerText = "Export Name"/>
                <mx:DataGridColumn dataField="Export" headerText = "Export" width="50" minWidth="20" resizable="false">
                 <mx:itemRenderer>
                    <mx:Component>
                        <mx:Box horizontalAlign="center" width="100%" verticalScrollPolicy="off" horizontalScrollPolicy="off">
                            <controls:exportButtonRenderer label="Export" icon="@Embed(source='assets/icons/export.png')" width="12" height="12" useHandCursor="true">                        
                                <controls:click>
                                    <![CDATA[
                                        import events.exportClickedEvent;
                                        var e:exportClickedEvent = new exportClickedEvent();
                                        e.itemData = data;
                                        dispatchEvent(e);
                                    ]]>
                                </controls:click>
                            </controls:exportButtonRenderer>
                        </mx:Box>
                    </mx:Component>
                </mx:itemRenderer>
                </mx:DataGridColumn>
            </flexlib:columns>
        </flexlib:TreeGrid>
    Nothing too special going on.
    I know this can be done, I've seen examples in the SDK:
    http://opensource.adobe.com/svn/opensource/durango/trunk/ExternalFlexTools/com/dougmccune/ containers/accordionClasses/AccordionHeader.as
    By the way I've stepped through the code of the TreeGridItemRenderer class in Flexlib which works correctly and the class def starts like this:
    TreeGridItemRenderer.as
    import flash.display.DisplayObject;
    import flash.display.InteractiveObject;
    import flash.display.Shape;
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.events.MouseEvent;
    import flash.geom.Point;
    import flash.geom.Rectangle;
    import flexlib.controls.TreeGrid;
    import mx.controls.Image;
    import mx.controls.dataGridClasses.DataGridListData;
    import mx.controls.listClasses.BaseListData;
    import mx.controls.listClasses.IDropInListItemRenderer;
    import mx.controls.listClasses.IListItemRenderer;
    import mx.core.IDataRenderer;
    import mx.core.IFlexDisplayObject;
    import mx.core.IToolTip;
    import mx.core.SpriteAsset;
    import mx.core.UIComponent;
    import mx.core.UITextField;
    import mx.events.FlexEvent;
    import mx.events.ToolTipEvent;
    import mx.events.TreeEvent;
    import mx.managers.ILayoutManagerClient;
    import mx.styles.IStyleClient;
    public class TreeGridItemRenderer extends UIComponent
                                      implements IDataRenderer,
                                                   IDropInListItemRenderer,
                                                 ILayoutManagerClient,
                                                   IListItemRenderer
    Any help would be great!

    That's because you put your component in a Box.  The DataGrid is setting the Box's .data property and no code is setting the one on your component.  You shouldn't really need Box.  You can override updateDisplayList to center your Button instead.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Problems with getting a custom toolbar button to work...

    Hi all,
    I'm using the 7.0.1 eval version of GroupWise, patched to 7.0.2 HP 6/6/2007.
    The server is the same version.
    I'm trying to put a new button on the toolbar in C# (with the
    GW.CLIENT.WINDOW.BROWSER context) - the button shows up as expected. It also
    gets validate events - quite frequently and my code always returns 0 from
    Validate() and the button is always enabled. However, no matter what I do, I
    never get an Exectute() call on the command object I create for this button
    when I click it. I also tried the GW.CLIENT context, in which case the
    button shows up in the same place (main GW client toolbar), and it behaves
    the same.
    If I try to create the button with the GW.MESSAGE.MAIL context and I
    double-click emails, the button shows up on the toolbar of the message
    window. When I click this button, I properly get Execute() calls. I also
    have no problem getting context menu items working.
    Is there anything special I need to do to get callbacks for buttons on the
    main toolbar?
    Thanks,
    Gyorgy Bozoki

    These instructions from Mediacom differ slightly from what you have:
    http://mediacomcable.com/CustomerSupport/troubleshooting/email%20getting%20started/HowdoIsetupmyAndroidSmartphonetouseMediacome-mail.html

  • How can I get data in radio button?

    I want to get data in same page.while the radio button check ,textbox 's which is in the same page , value can be changeable.what can I understand radio button check or not.
    out.println("<td style=\"width: 16%\"><input type='radio' name='rapor1' value='ithalat' ><B>Ithalat</B></td>");

    do some thing like this,
    var rcb=eval('document.mgmodemsdrivers.portChk');
    or di it by ( .getemenetbyid("xyz") )
    if(rcb.checked==true)
    //do process
    after getting it in var , (.checked) will return checked or not .

  • Problem with getting actual data from Detail in Master/Detail

    Hi.
    I'm using master-detail tables (based on Read-Only view objects connected with view link).
    In those tables some columns are inputText, so that user can change data for the use of stored procedure only (I don't want to change data showed in tables, just need a possibility to modify it before passing arguments to procedure)
    The problem is when I get data from rows from detail view (Read Only with attributes set to "updatable always") it's not the data user entered in the table (there is no problem in master table) but the data fetched from database.
    This is the way I do it in backing been:
    Row[] masterRows = view.getAllRowsInRange();
    for (int i = 0; i < masterRows .length; i++){
      MasterRowImpl row = (MasterRowImpl )masterRows;
    System.out.println("Group name:" + row.getGroup())
    RowIterator rowIterator = row.getDetailsView();
    while(rowIterator.hasNext()){
    DetailsViewRowImpl detailRow = (DetailsViewRowImpl )rowIterator.next();
    System.out.println("User name: " + detailRow.getName())
    So if (for example) in database I have Group1, with 3 detail rows: John1,John2,John3;
    and user in Tables displayedon page changes it like this:
    Group1_changed, John1, John2_blah, John333
    After executing the code above I get:
    Group name: Group1_changed
    User name: John1
    User name: John2
    User name: John3
    Is it a normal behaviour?
    ps. When I use entity based view objects there is no problem, but I want to use ReadOnly View Objects.

    this is my function that reads the data:
    while( ( ch = dis.read() ) != -1 ){
    mess.append((char)ch);
              licz++;
              if(licz>prog){
                   licz=0;
                   //gauge.setValue();
    when i use just mess.append(dis.readUTF()))
    i get en exception:
    java.io.EOFException
         at java.io.DataInputStream.readFully(+45)
         at java.io.DataInputStream.readUTF(+32)
         at java.io.DataInputStream.readUTF(+4)
         at KConnection.KConnector.connect(+137)
         at SerwisMain.download(+25)
         at SerwisMain.ok(+415)
         at KGUI.KInput.commandAction(+209)
         at javax.microedition.lcdui.Display$DisplayAccessor.commandAction(+152)
         at com.sun.kvem.midp.lcdui.EmulEventHandler$EventLoop.run(+459)

Maybe you are looking for

  • Error while changing due date deadline

    Hi, I am trying to change due date deadline of an action. I am getting this error. Please see if you can help me on this? I don't think this error is from my code. <p> <b>Root Cause</b> The initial exception that caused the request to fail, was:    c

  • Sub contracting Process issue for A/c entry

    Hi All, While doing the GRN for subcontracting process ,cost object error is appearing for stock change SFG account ( BSV). Business would like to do not assign the Default cost object for change in stock account. Kinldy confirm whether it is possibl

  • Asset number fetching wrongly from another asset class

    Dear all, We have created asset under asset class - furniture & fittings for which no. range starts from 61000... but asset no. created starts with no. 60000.. . Checked asset number range but all no. ranges are defined. Where we are missing ? Why it

  • Error when startin Teststand 4.1

    Hello, when i start TS 4.1 i get the attached error-popup "Attention: The TestStand service did not start up promptly." This happens since i killed a process in the Taskmanager (XP SP3) which was called something like TestStandServer.exe. What do i h

  • FiledownloadresourcePath

    if i have a webdynpro project that have file upload and download feature when i click upload the file will store in directory specify by me, later on...when i try to download the file.... how to the system know which directory i stored...... or the s