Extjs grid with pagination

hi,
i just start learning how to integrate extjs with oracle apex.
i manage to create a normal extjs grid but got problem when trying to create
a grid with pagination.
lets say ihave 100 rows of data, and i want to show only 10 rows of data per page, so how should i do that?
i know i need to send a request to so that i will get data 1-10 for the first page, and then when i click next,
i will get data 11-20 and so on.
but i dont know how to make it happen. i cannot find any example on the net.
how to know what is the current data set, (is it 1-10 or 11-20) , so that i can pass the correct values for start, to the application
process?
hope someone here can help me.
thanks,
-aku
Edited by: akulala on Sep 5, 2010 6:25 AM

Hi Aku
As far as I recall, alot of this came from Mark Lancaster so I would advise googling for his blog and having a look there - it may well make a lot more sense than this does.
I normally build my ExtJS script up at page loaed time using a package and print it out using htp.prn. So for the pagination, I would print out something like this...
    htp.p('<script>var u = (window.location.href.indexOf("?") > 0) ? window.location.href.substring(0,window.location.href.indexOf("?")) : window.location.href;
           var baseURL = u.substring(0,u.lastIndexOf("/"));
           var gridURL = baseURL + ''/wwv_flow.show?p_flow_id='' + Ext.getDom(''pFlowId'').value + ''&p_flow_step_id=0&p_instance='' + '||
          'Ext.getDom(''pInstance'').value + ''&p_request=APPLICATION_PROCESS%3DejPaginate'';</script>');And then my store would be defined as something like this...
myStore = new Ext.data.Store({
              storeId: 'myStore',
              proxy: new Ext.data.ScriptTagProxy({
              url: gridURL,
              nocache: false,
              callbackParam: 'p_widget_num_return'
              baseParams: {'x01':'&APP_ID.', 'x02':'&APP_PAGE_ID.', 'x03':'xyz'},  //the xyz would be your region
                                                                                   //ID passed into the procedure I gave you in my previous post
              remoteSort: true,
              paramNames: {
              start: 'x04', // The parameter name which specifies the start row
              limit: 'x05', // The parameter name which specifies number of rows to return
              sort: 'x06',  // The parameter name which specifies the column to sort on
              dir: 'x07'    // The parameter name which specifies the sort direction
              reader: myReader
              });And my application process (ejPaginate in the above example) would look something like this...
BEGIN
  htp.p(wwv_flow.g_widget_num_return||'(');
  get_grid_json(p_app_id => wwv_flow.g_x01,
                    p_app_page_id => wwv_flow.g_x02,
                    p_region_id => TO_NUMBER(wwv_flow.g_x03),
                    p_start => NVL(wwv_flow.g_x04,0),
                    p_limit => NVL(wwv_flow.g_x05,10),
                    p_sort => wwv_flow.g_x06,
                    p_dir => wwv_flow.g_x07);
  htp.p(')');
END;Hope this helps you along.
Cheers
Ben

Similar Messages

  • Oracle apex and extjs grid table

    hi
    im new to extjs and i was wondering if someone can help me with this;
    i want to create a report in oracle apex and put the output in extjs grid table
    for example i want to view the output of select * from all_objects in grid table
    thnx in advance

    Okay
    To get you started...
    Create a new report template with named rows.
    In row 1 template put this
    ["#1#","#2#","#3#","#4#","#5#","#6#","#7#","#8#"]Assuming you have 8 rows say... and make it conditional based on a PL/SQL Expression like this
    #ROWNUM# = 1Then row 2 template like this
    ,["#1#","#2#","#3#","#4#","#5#","#6#","#7#","#8#"]Conditional on
    #ROWNUM# > 1Then in before row put this
    <script type="text/javascript">
    Ext.onReady(function(){
    var munkyData = [And after rows something like this (based on the emp table)
    var store = new Ext.data.SimpleStore({
          fields: [
                   {name: 'empno', mapping: '0'},
                   {name: 'ename', mapping: '1'},
                   {name: 'job', mapping: '2'},
                   {name: 'mgr', mapping: '3'},
                   {name: 'hiredate', mapping: '4'},
                   {name: 'sal', mapping: '5'},
                   {name: 'comm', mapping: '6'},
                   {name: 'deptno', mapping: '7'}
    store.loadData(munkyData);
    var grid = new Ext.grid.GridPanel({
           store: store,
           columns: [
                     {id:'empno',header: "Employee",sortable:true, width:100,dataIndex:'empno'},
                     {header: "Name", sortable:true,width:75, dataIndex:'ename'},
                     {header: "Job", sortable:true, dataIndex:'job'},
                     {header: "Manager", sortable:true,width:75, dataIndex:'mgr'},
                     {header: "Hire Date", sortable:true,dataIndex:'hiredate'},
                     {header: "Salary", sortable:true,width:50,dataIndex:'sal'},
                     {header: "Commission", sortable:true,dataIndex:'comm'},
                     {header: "Department", dataIndex:'deptno'}
           stripeRows: true,
           width:700,
           autoHeight:true,
           title:'Array Grid',
           renderTo: 'munkyDiv'
    </script>Then create a region to hold it with a source of
    <div id="munkyDiv>
    </div>
    {code}
    This is pretty basic but it should get you going...
    Cheers
    Ben
    http://www.munkyben.wordpress.com
    +Don't forget to mark replies helpful or correct+ ;)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • ExtJS Grid and Apex

    I have been experimenting quite a bit with ExtJS and unfortunately hit a roadblock and thought of getting help from this forum. I followed the directions given in this post Re: oracle apex and extjs grid table and was able to make it work. However the Grid is displaying outside the region where it has been defined as if it is independently rendering in its region of choice.
    I could post the screen shot and don't know how to work around the restriction of this message board, not allowing any attachments.
    Any help is greatly appreciated.
    Environment info: Apex 4.0
    Local host,
    ExtJS: 4.0.2
    Thanks
    Raja

    The book was written to use Ext JS 3.x, the latest production version at the time.
    Some of the examples will work, some will require rework. Sencha have published a migration guide, including a <b>compatibility layer</b> that bootstraps existing Ext JS 3 code to run under Ext JS 4.
    The book promotes the idea of not updating your application templates, instead having a template application which allows you to test your components before publishing a new version of the theme to the business application.
    If you are just starting out, you could drop in the books theme as version 1 using Ext JS 3.x, get your team working on the application immediately, and have a dedicated resource working on theme version 2 using Ext JS 4.x.
    Regards
    Mark
    demo: http://apex.oracle.com/pls/otn/f?p=200801 |
    blog: http://oracleinsights.blogspot.com |
    book: Oracle Application Express 4.0 with Ext JS

  • Extjs grid or jquery jqGrid

    Hi,
    Has anyone successfully integrate Oracle Apex with extjs grid or jquery jqGrid? How can I call an onDemand process to return XML or JSON data and use that for those grids?
    Thanks.
    Andy

    Hi Andy
    It's easy enough to integrate the extJS grid, you just need to break the problem down into a series of small steps.
    To tackle the problem, I'd do the following steps.
    1. Copy a extJS grid example, with the grid data embedded in the page.
    2. Once step 1 works, move the grid data into a PL/SQL package, and call this via a application process.
    3. Once step 2 works, work out how to create the grid data dynamically in your PL/SQL package. Make sure you consider escaping your data if returning JSON.
    4. You get the idea...
    It's just a case of chipping away at the problem, and learning as you go.
    I don't have a grid on my [demo site|http://apex.oracle.com/pls/otn/f?p=200801:1:], but the examples should help with creating an application process, and you can see the JSON data being returned in Firebug.
    In case your wondering why I don't have an extJS grid...
    If I built a one off solution my users would immediately demand that functionality everywhere, and I'd have to do a whole lot of work to build a complete generic solution.
    It's much easier to use the Apex interactive reports for read-only, and AJAX enabled updatable reports with a bit of CSS to get a good looking solution.
    Mark

  • Apex and ExtJS Grid...

    Hi,
    I have been trying to implement ExtJS into Apex also but i am getting an error which i couldnt find a way to sort it out....
    Can somebody help me?
    Here is the error message i got;
    The container of an boundary-point of a range is being set to either a node of an invalid type or a node with an ancestor of an invalid type." code: "2
    http://localhost:7777/i/javascript/apex_ns_3_1.js
    Line 1
    I have apex ver 3.2.1. and here is the code i have;
    My Report Template is;
    Started from scracth;
    Row Template1; ["#1#","#2#","#3#","#4#","#5#"] Condition; #ROWNUM# = 1
    Row Template2; ,["#1#","#2#","#3#","#4#","#5#"] Condition; #ROWNUM# > 1
    Before Rows
    <script type="text/javascript">
    var myData = [
    After Rows;
    var store = new Ext.data.SimpleStore({
    fields: [
    {name: 'seq', mapping: '0', type:'int'},
    {name: 'statusseq', mapping: '1', type:'int'},
    {name: 'containertypeseq', mapping: '2', type:'int'},
    {name: 'containerno', mapping: '3', type:'string'},
    {name: 'dataorigin', mapping: '4', type:'string'}
    store.loadData(myData);
    var v_grid = new Ext.grid.GridPanel({
    store: store,
    columns: [
    {id:'seq',header: "SEQ",sortable:true,dataIndex:'seq',width:10},
    {header: "statusseq",sortable:true,dataIndex:'statusseq',width:10},
    {header: "containertypeseq",sortable:true, dataIndex:'containertypeseq',width:20},
    {header: "containerno",sortable:true,dataIndex:'containerno',width:20},
    {header: "dataorigin", sortable:true,dataIndex:'dataorigin',width:30}
    viewConfig:{
    forceFit:true
    width:700,
    height: 560,
    title:'Array Grid'
    </script>
    Region Source;
    Select Seq AS "seq",
    StatusSEQ as "statusseq",
    ContainerTypeSEQ as "containertypeseq",
    ContainerNo as "containerno",
    DataOrigin as "dataorigin"
    From TMS.Container
    Region Header;
    <p id="title_WINDOW_EXAMPLE" style="display:none:">EXTJS Grid</p>
    <div id="contentE1_WINDOW_EXAMPLE">
    Region Footer;
    </div>
    <BR>
    <script type="text/javascript">
    Ext.onReady(function(){
    var v_window = new Ext.Window({
    id:'id_WINDOW_EXAMPLE',
    contentE1:'contentE1_WINDOW_EXAMPLE',
    title:document.getElementById('title_WINDOW_EXAMPLE').textContent,
    closable:true,
    closeAction:'hide',
    resizable:false,
    plain:true,
    allowDomMove: false,
    autoScroll: false,
    items: [v_grid]
    v_window.show(this);
    v_window.setSize({width:900, height:600});
    </script>
    HTML Header;
    <link rel="stylesheet" type="text/css" href="/i/themes/ext1/resources/css/ext-all.css" />
    <script type="text/javascript" src="/i/themes/ext1/adapter/ext/ext-base.js"></script>
    <script type="text/javascript" src="/i/themes/ext1/ext-all.js"></script>
    Thanks,
    Osman...

    Hi Ben,
    I have changed it but still not working...
    Here is the rendered data;
    <div id="contentE1_WINDOW_EXAMPLE"><div id="report_4735417900555762_catch"><script type="text/javascript">
    var myData = [
    ["7864","23","4","INKU6648374","YSSESB"],["7872","23","6","56.912AI5","YSSESB"],["7880","23","6","56.912AJ5","YSSESB"],["7888","23","6","56.912AJ13","YSSESB"],["7896","23","7","ZIMU1107306","YSSESB"],["7904","23","6","56.912AK6","YSSESB"],["7912","23","6","56.912AK14","YSSESB"],["7920","23","7","MSKU4623278","YSSESB"],["7928","23","6","YMLU4900642","YSSESB"],["7936","23","4","UETU5046731","YSSESB"],["7944","23","6","CBHU6303259","YSSESB"],["7952","23","4","CBHU8803320","YSSESB"],["7960","23","7","CRXU3065214","YSSESB"],["7968","23","7","GATU0186070","YSSESB"],["7976","23","7","IPXU3020398","YSSESB"],["7984","23","7","TGHU3381736","YSSESB"],["7992","23","7","CBHU3455279","YSSESB"],["8000","23","7","TTNU3303879","YSSESB"],["8008","23","7","CBHU3702548","YSSESB"],["8016","23","4","CBHU8605561","YSSESB"],["8024","23","7","CAXU6966510","YSSESB"],["8032","23","4","CBHU8202967","YSSESB"],["8040","23","7","CBHU5707810","YSSESB"],["8048","23","6","CBHU1784275","YSSESB"],["8056","23","4","CBHU8021320","YSSESB"],["8064","23","4","FCIU8571691","YSSESB"],["8072","23","7","TGHU0333354","YSSESB"],["8080","23","4","FSCU9061705","YSSESB"],["8088","23","7","CCLU2479189","YSSESB"],["8096","23","7","FCIU3294830","YSSESB"],["8104","23","4","CBHU8862404","YSSESB"],["7312","23","6","KKFU1658740","YSSESB"],["7320","23","6","MOFU0676000","YSSESB"],["8112","23","7","CBHU3619367","YSSESB"],["8120","23","7","CBHU3530475","YSSESB"],["8128","23","7","TRLU3910906","YSSESB"],["8136","23","6","KKFU1806344","YSSESB"],["8144","23","7","DAYU2137027","YSSESB"],["8152","23","6","HDMU4736964","YSSESB"],["8160","23","7","IPXU3274155","YSSESB"],["8168","23","6","CBHU1683433","YSSESB"],["8176","23","4","CBHU8109670","YSSESB"],["8184","23","6","CBHU1645881","YSSESB"],["8192","23","7","CMAU1087714","YSSESB"],["8200","23","4","ECMU9342104","YSSESB"],["8211","23","5","34DC8624","YSSESB"],["8219","23","5","34DC8622","YSSESB"],["8227","23","5","34EC1431","YSSESB"],["8235","23","6","HDMU5942928","YSSESB"],["8243","23","5","34DC8622","YSSESB"],["8251","23","7","GATU4008550","YSSESB"],["8259","23","6","TTNU4577431","YSSESB"],["8267","23","6","FSCU4390415","YSSESB"],["8275","23","7","MSCU6532007","YSSESB"],["8283","23","6","TTNU4577431","YSSESB"],["8291","23","6","OKCU4901760","YSSESB"],["8299","23","7","CBHU3298647","YSSESB"],["8307","23","6","CBHU1689730","YSSESB"],["8315","23","6","TTNU5580661","YSSESB"],["8323","23","6","TTNU5580661","YSSESB"],["8331","23","6","TGHU4682138","YSSESB"],["8339","23","4","CBHU8734872","YSSESB"],["8347","23","7","CBHU5625918","YSSESB"],["8355","23","4","GESU5202673","YSSESB"],["8363","23","7","HJCU8471376","YSSESB"],["8371","23","6","CBHU6328771","YSSESB"],["8379","23","6","YMLU4878723","YSSESB"],["8387","23","6","CLHU4741955","YSSESB"],["8395","23","6","KKFU1807320","YSSESB"],["8403","23","7","KKTU7366273","YSSESB"],["8411","23","6","CBHU6227797","YSSESB"],["8419","23","6","CBHU6227797","YSSESB"],["8427","23","4","CBHU8235024","YSSESB"],["8435","23","6","KKFU1416984","YSSESB"],["8443","23","6","HJCU4946220","YSSESB"],["8854","23","4","TCKU9784476","YSSESB"],["8862","23","7","INBU3688025","YSSESB"],["8870","23","7","TTNU3243804","YSSESB"],["8879","23","5","34TL3182","YSSESB"],["8887","23","5","34BT3378","YSSESB"],["8895","23","6","HJCU4017513","YSSESB"],["8903","23","6","GCNU4032251","YSSESB"],["8911","23","7","CAXU6967347","YSSESB"],["8919","23","7","IPXU3911063","YSSESB"],["8927","23","7","MSKU7313580","YSSESB"],["8935","23","7","ECMU1273157","YSSESB"],["8943","23","7","TTNU3435807","YSSESB"],["8951","23","7","ECMU1401788","YSSESB"],["8959","23","7","TRLU3035950","YSSESB"],["8967","23","13","TCKU2559452","YSSESB"],["8975","23","7","CBHU5654686","YSSESB"],["8983","23","4","CBHU8718233","YSSESB"],["8991","23","7","CAXU6362546","YSSESB"],["8999","23","6","061001ON","YSSESB"],["9007","23","7","MSKU3648179","YSSESB"],["9015","23","7","CBHU5501476","YSSESB"],["9023","23","4","CBHU8807496","YSSESB"],["9031","23","6","KKFU1246717","YSSESB"],["9039","23","6","UXXU4332486","YSSESB"],["9047","23","7","GESU3231348","YSSESB"],["9055","23","4","PCIU9954416","YSSESB"],["9063","22","4","CAXU9185547","YSSESB"],["9071","23","6","GVCU4035213","YSSESB"],["9079","23","6","GVCU4035213","YSSESB"],["9087","23","4","MSKU9137176","YSSESB"],["9095","23","6","MSKU6594501","YSSESB"],["9103","23","4","MSKU9137176","YSSESB"],["9111","23","4","INKU6361018","YSSESB"],["9119","23","34","TCKU2562693","YSSESB"],["9127","23","7","671001AA","YSSESB"],["9135","23","4","HDMU5494166","YSSESB"],["9143","23","4","CCLU6095387","YSSESB"],["9151","23","6","GVDU4010013","YSSESB"],["9159","23","6","CCLU4814028","YSSESB"],["9167","23","6","UESU4220974","YSSESB"],["9175","23","7","CBHU5591211","YSSESB"],["9183","23","7","GESU3165483","YSSESB"],["9191","23","7","GESU3165483","YSSESB"],["9199","23","4","ECMU9088807","YSSESB"],["9207","23","4","MEDU8361609","YSSESB"],["9215","23","4","CCLU7258350","YSSESB"],["9223","23","7","UXXU2413969","YSSESB"],["9231","23","4","MAEU8088802","YSSESB"],["9239","23","7","TRLU9736258","YSSESB"],["9247","23","6","ECMU4617277","YSSESB"],["9255","22","6","GVCU4161633","YSSESB"],["9263","23","7","CBHU3732558","YSSESB"],["9271","23","6","CCLU4195068","YSSESB"],["9279","23","7","XINU1325017","YSSESB"],["9287","23","7","TCKU2000470","YSSESB"],["9295","23","7","GVCU2049516","YSSESB"],["9303","23","7","CAXU3127918","YSSESB"],["9311","23","7","DVRU1638292","YSSESB"],["9319","23","7","TGHU3923884","YSSESB"],["9327","23","6","MRKU0081156","YSSESB"],["9335","23","7","EISU3718476","YSSESB"],["9343","23","7","KKTU7244676","YSSESB"],["9351","23","6","KKFU1172419","YSSESB"],["9359","23","6","UESU4220974","YSSESB"],["9367","23","7","TEXU2469974","YSSESB"],["9375","23","7","KKTU7244676","YSSESB"],["9383","23","4","FSCU9118945","YSSESB"],["9391","23","7","TRLU9736258","YSSESB"],["9399","23","7","FCIU2948957","YSSESB"],["9407","23","4","FCIU8434317","YSSESB"],["9415","23","4","UACU5192198","YSSESB"],["9423","23","7","MSCU6610162","YSSESB"],["9431","23","7","TCLU2196267","YSSESB"],["9439","23","7","IPXU3798147","YSSESB"],["9448","23","7","TTNU1752504","YSSESB"],["9456","22","6","CCLU4326907","YSSESB"],["9464","23","7","CBHU3430590","YSSESB"],["9472","23","4","CLHU8953910","YSSESB"],["9480","23","7","CBHU5619978","YSSESB"],["9488","23","6","TGHU4993572","YSSESB"],["9496","23","7","CBHU3511330","YSSESB"],["9504","23","5","34DC8622","YSSESB"],["9512","23","7","CBHU5864949","YSSESB"],["9520","23","6","CCLU4869329","YSSESB"],["9528","22","6","OOLU7257744","YSSESB"],["9536","23","6","CAIU4051190","YSSESB"],["9544","23","7","KKFU1567743","YSSESB"],["9570","22","6","KKFU1503040","YSSESB"],["9574","23","4","AMFU8736202","YSSESB"],["9578","23","4","ECMU4719392","YSSESB"],["9582","22","7","IPXU3629168","YSSESB"],["9586","23","7","KKTU7231088","YSSESB"],["9590","23","21","661001AK1","YSSESB"],["9594","23","7","SEAU2258148","YSSESB"],["9598","23","7","HDMU2447807","YSSESB"],["9602","23","7","TGHU3981849","YSSESB"],["9606","22","7","HJCU2116440","YSSESB"],["9610","23","7","BMOU2306331","YSSESB"],["9614","23","6","HJCU4415672","YSSESB"],["9618","23","6","861001AC","YSSESB"],["9622","23","7","APLU8872540","YSSESB"],["9626","23","7","GLDU3379497","YSSESB"],["9630","23","4","761001AD","YSSESB"],["9573","22","4","TTNU9636434","YSSESB"],["9581","23","7","IPXU3629168","YSSESB"],["9589","23","21","661001AK","YSSESB"],["9597","23","7","TGHU3820802","YSSESB"],["9605","23","7","HJCU2116440","YSSESB"],["9613","23","6","HJCU4415672","YSSESB"],["9621","23","7","TCNU9943464","YSSESB"],["9629","23","6","CCLU4170049","YSSESB"],["9444","23","7","TTNU1752504","YSSESB"],["9452","23","7","MBIU8248766","YSSESB"],["9460","23","4","CBHU9972216","YSSESB"],["9468","22","6","CBHU6082414","YSSESB"],["9476","23","4","INKU6169540","YSSESB"],["9484","23","7","CBHU5619978","YSSESB"],["9492","22","6","CCLU4245019","YSSESB"],["9500","23","5","34DC8622","YSSESB"],["9508","23","7","CAXU6910573","YSSESB"],["9516","22","6","CBHU6051141","YSSESB"],["9524","23","7","FSCU3415910","YSSESB"],["9532","23","4","CBHU8058649","YSSESB"],["9540","23","6","KKFU1516556","YSSESB"],["9567","23","7","OOLU8597796","YSSESB"],["9577","23","6","MSKU6233026","YSSESB"],["9585","22","7","KKTU7231088","YSSESB"],["9593","23","7","SEAU2258148","YSSESB"],["9601","23","4","TGHU9316450","YSSESB"],["9609","22","6","HJCU4415672","YSSESB"],["9617","23","4","TRLU7103543","YSSESB"],["9625","23","7","CBHU3231113","YSSESB"],["9576","22","7","MSKU3802685","YSSESB"],["9584","23","7","IPXU3629168","YSSESB"],["9592","23","7","PONU2015725","YSSESB"],["9600","23","4","TGHU9316450","YSSESB"],["9608","23","6","HJCU4415672","YSSESB"],["9616","23","4","TRLU7103543","YSSESB"],["9624","23","4","CRXU9822249","YSSESB"],["9632","23","7","MGLU2946017","YSSESB"],["8459","23","4","YMLU8497643","YSSESB"],["8467","23","6","CBHU1982476","YSSESB"],["8475","23","4","GLDU7090970","YSSESB"],["8483","23","4","GATU8693678","YSSESB"],["8491","23","7","PONU0276252","YSSESB"],["8499","23","7","PONU0276252","YSSESB"],["8507","23","7","TCKU9233386","YSSESB"],["8515","23","7","CBHU3337147","YSSESB"],["8523","23","4","CBHU8404567","YSSESB"],["8531","23","4","CAXU9516901","YSSESB"],["8539","23","6","SLSU7010070","YSSESB"],["8547","23","5","34EC1435","YSSESB"],["8555","23","6","HJCU4117050","YSSESB"],["8563","23","7","KKTU7917756","YSSESB"],["8571","23","7","KKTU7319250","YSSESB"],["8579","23","7","GLDU3573727","YSSESB"],["8587","23","7","KKTU7163764","YSSESB"],["8595","23","4","MSKU9946798","YSSESB"],["8603","23","4","HJCU1901541","YSSESB"],["8611","23","7","GLDU2297389","YSSESB"],["8619","23","4","YMLU8208571","YSSESB"],["8627","23","7","CBHU5912081","YSSESB"],["8635","23","7","CBHU3916004","YSSESB"],["8643","23","6","HJCU4161618","YSSESB"],["8651","23","6","TEXU7242089","YSSESB"],["8659","23","6","CBHU1784763","YSSESB"],["8667","23","7","TCKU3012393","YSSESB"],["8675","23","34","CBHU3477719","YSSESB"],["8683","23","7","SCSU8008654","YSSESB"],["8691","23","4","CBHU9848859","YSSESB"],["8699","23","6","CBHU1994482","YSSESB"],["8707","23","6","CCLU4357174","YSSESB"],["8715","23","7","IPXU3344587","YSSESB"],["8723","23","4","CBHU9839517","YSSESB"],["8731","23","4","CCLU6682635","YSSESB"],["8739","23","4","GESU5622110","YSSESB"],["8747","23","4","CCLU6682635","YSSESB"],["8755","23","4","CBHU8718233","YSSESB"],["8763","23","7","TCKU3037072","YSSESB"],["8771","23","7","DFSU2067774","YSSESB"],["8779","23","7","SGCU2173235","YSSESB"],["8787","23","7","CBHU3575973","YSSESB"],["8795","23","6","CCLU4732254","YSSESB"],["8803","23","19","801001AA","YSSESB"],["8811","23","6","CAXU4775828","YSSESB"],["8819","23","7","ECMU2015769","YSSESB"],["8827","23","6","SUDU4629921","YSSESB"],["8835","23","4","TGHU8264028","YSSESB"],["8843","23","34","CBHU3887837","YSSESB"],["9366","23","7","KKTU7342939","YSSESB"],["9374","23","6","DFSU4055556","YSSESB"],["9382","23","7","TTNU3723275","YSSESB"],["9390","23","4","FSCU9118945","YSSESB"],["9398","23","7","FCIU2948957","YSSESB"],["9406","23","4","YMLU8418412","YSSESB"],["9414","23","6","PONU1290804","YSSESB"],["9422","23","7","TCKU3495711","YSSESB"],["9430","23","4","TTNU9247978","YSSESB"],["9438","23","7","IPXU3798147","YSSESB"],["9443","23","7","TTNU1752504","YSSESB"],["9451","23","7","SBAU2978707","YSSESB"],["9459","22","7","MBIU8248719","YSSESB"],["9467","23","6","TGHU4677234","YSSESB"],["9475","23","4","CBHU8286504","YSSESB"],["9483","23","6","CBHU6131817","YSSESB"],["9491","23","4","DFSU6180768","YSSESB"],["9499","23","5","34DC8622","YSSESB"],["9507","22","7","TCKU2431409","YSSESB"],["9515","23","7","TGHU0380968","YSSESB"],["9523","23","7","GLDU3549309","YSSESB"],["9531","23","6","YMLU4747636","YSSESB"],["9539","23","7","CBHU3369102","YSSESB"],["9547","23","24","861001AB","YSSESB"],["9572","23","7","HJCU8200522","YSSESB"],["9580","23","4","CBHU8004051","YSSESB"],["9588","23","7","YMLU2786844","YSSESB"],["9596","23","4","HJCU1077648","YSSESB"],["9604","23","7","CCLU2490254","YSSESB"],["9612","22","4","YMLU8338261","YSSESB"],["9620","23","7","IRSU2494054","YSSESB"],["9628","23","4","TGHU8837095","YSSESB"],["8857","23","4","HDMU5446867","YSSESB"],["8865","23","7","TTNU3243804","YSSESB"],["8874","23","5","EISU3835889","YSSESB"],["8882","23","5","34DC8623","YSSESB"],["8890","23","6","SLSU7049765","YSSESB"],["8898","23","7","UESU2342612","YSSESB"],["8906","23","7","FCIU3798189","YSSESB"],["8914","23","7","IPXU3911063","YSSESB"],["8922","23","7","CAXU3105992","YSSESB"],["8930","23","7","MSKU5462748","YSSESB"],["8938","23","7","GSTU2976492","YSSESB"],["8946","23","7","DVRU1362516","YSSESB"],["8954","23","7","GESU2454049","YSSESB"],["8962","23","7","KKTU7581450","YSSESB"],["8970","23","6","CBHU6128520","YSSESB"],["8978","23","6","CBHU6128520","YSSESB"],["8986","23","7","311001NA","YSSESB"],["8994","23","7","HJCU8238214","YSSESB"],["9002","23","7","FCIU2749301","YSSESB"],["9010","23","7","MSKU5097218","YSSESB"],["9018","23","7","TCKU2410540","YSSESB"],["9026","23","7","ALNU9190117","YSSESB"],["9034","23","7","ALNU2100030","YSSESB"],["9042","23","6","CCLU4491326","YSSESB"],["9050","23","7","GESU3231348","YSSESB"],["9058","23","7","EOLU3287951","YSSESB"],["9066","23","6","GVCU4035213","YSSESB"],["9074","23","6","GVCU4035213","YSSESB"],["9082","23","7","POCU0554684","YSSESB"],["9090","23","4","MSKU9137176","YSSESB"],["9098","23","6","TTNU4011090","YSSESB"],["9106","23","4","MSKU9137176","YSSESB"],["9114","23","6","CAXU7443180","YSSESB"],["9122","23","4","WFHU5068640","YSSESB"],["9130","23","7","KKFU1668315","YSSESB"],["9138","23","6","FBLU4001271","YSSESB"],["9146","23","7","GESU3231348","YSSESB"],["9154","23","45","CBHU5661303","YSSESB"],["9162","23","4","EISU9121343","YSSESB"],["9170","23","6","UESU4220974","YSSESB"],["9178","23","7","CNCU1606026","YSSESB"],["9186","23","6","CBHU1929825","YSSESB"],["9194","23","7","MSKU7300155","YSSESB"],["9202","23","4","TRLU7196356","YSSESB"],["9210","23","7","CBHU3987775","YSSESB"],["9218","23","7","TCKU2552951","YSSESB"],["9226","23","7","UXXU2413969","YSSESB"],["9234","23","6","TTNU4980874","YSSESB"],["9242","23","6","TGHU4480501","YSSESB"],["9250","23","6","TGHU4480501","YSSESB"],["9258","22","6","GVCU4161633","YSSESB"],["9266","23","6","CCLU5056555","YSSESB"],["9274","23","6","CCLU4716145","YSSESB"],["9282","23","4","GESU5426185","YSSESB"],["9290","23","45","CBHU5786569","YSSESB"],["9298","23","7","CAXU3127918","YSSESB"],["9306","23","7","UXXU2379648","YSSESB"],["9314","23","7","ECMU2072898","YSSESB"],["9322","23","46","MRKU0310186","YSSESB"],["9330","23","7","EISU3718476","YSSESB"],["9338","23","7","EISU3718476","YSSESB"],["9346","23","7","061001PA","YSSESB"],["9354","23","7","KKTU7058500","YSSESB"],["9362","23","7","UXXU2413969","YSSESB"],["9370","23","4","IRNU4603156","YSSESB"],["9378","23","7","EMCU3054266","YSSESB"],["9386","23","4","FSCU9118945","YSSESB"],["9394","23","6","FSCU4395696","YSSESB"],["9402","23","4","FSCU9684048","YSSESB"],["9410","23","4","YMLU8418412","YSSESB"],["9418","23","7","TRIU3620374","YSSESB"],["9426","23","7","MSCU6837011","YSSESB"],["9434","23","6","SESU6032510","YSSESB"],["9442","23","7","IPXU3798147","YSSESB"],["9450","23","7","TTNU1752504","YSSESB"],["9458","23","4","GESU4872557","YSSESB"],["9466","23","6","GVCU4160730","YSSESB"],["9474","23","4","CBHU8428110","YSSESB"],["9482","23","6","CBHU6131817","YSSESB"],["9490","23","7","CBHU5619978","YSSESB"],["9498","23","5","34DC8622","YSSESB"],["9506","23","7","CBHU3166701","YSSESB"],["9514","23","7","CBHU5864949","YSSESB"],["9522","23","7","TCKU9884916","YSSESB"],["9530","23","7","TCLU2186680","YSSESB"],["9538","23","6","TTNU4166657","YSSESB"],["9546","22","5","561001AE","YSSESB"],["9571","23","4","CBHU8614856","YSSESB"],["9579","23","4","TRLU6361625","YSSESB"],["9587","23","7","GESU3472345","YSSESB"],["9595","23","7","OOLU3656366","YSSESB"],["9603","23","4","TGHU9316450","YSSESB"],["9611","23","6","HJCU4415672","YSSESB"],["9619","23","6","861001AC2","YSSESB"],["9627","23","7","CBHU3987775","YSSESB"],["7327","23","7","GLDU2291652","YSSESB"],["7335","23","4","TRLU7208971","YSSESB"],["7343","23","7","OOLU3694730","YSSESB"],["7351","23","5","34BT3378","YSSESB"],["7359","23","6","CBHU6144239","YSSESB"],["7367","23","7","CBHU5561623","YSSESB"],["7375","23","7","CBHU3433840","YSSESB"],["7383","23","7","CAIU2289173","YSSESB"],["7391","23","6","CBHU6090636","YSSESB"],["7399","23","7","CBHU5877313","YSSESB"],["7407","23","4","CBHU8198240","YSSESB"],["7415","23","7","FCIU3582878","YSSESB"],["7423","23","4","CBHU8040260","YSSESB"],["7431","23","7","TCKU1908009","YSSESB"],["7439","23","7","CAIU2440839","YSSESB"],["7447","23","4","HJCU1459548","YSSESB"],["7455","23","7","GATU1329849","YSSESB"],["7463","23","7","CBHU3651630","YSSESB"],["7471","23","5","TCNU9953797","YSSESB"],["7479","23","6","HDMU673651","YSSESB"],["7487","23","4","MSKU9716990","YSSESB"],["7495","23","7","UACU3489504","YSSESB"],["7503","23","6","HDMU648868","YSSESB"],["7511","23","6","TRLU662814","YSSESB"],["7519","23","7","TCLU2019240","YSSESB"],["7527","23","7","CBHU5753312","YSSESB"],["7535","23","4","FSCU9116325","YSSESB"],["7543","23","4","FSCU9116325","YSSESB"],["7551","23","7","IMTU3060376","YSSESB"],["7559","23","5","34TL3183","YSSESB"],["7567","23","4","CBHU8649955","YSSESB"],["7575","23","4","CBHU8649955","YSSESB"],["7583","23","5","34TL3183","YSSESB"],["7591","23","4","TCKU9845355","YSSESB"],["7599","23","4","TRLU7417713","YSSESB"],["7607","23","7","TTNU3274507","YSSESB"],["7615","23","4","CBHU8579082","YSSESB"],["7623","23","4","TCNU9616440","YSSESB"],["7631","23","7","TGHU3277207","YSSESB"],["7639","23","6","CBHU1843911","YSSESB"],["7647","23","6","PONU1423363","YSSESB"],["7655","23","7","INKU2672367","YSSESB"],["7663","23","5","NYKU4110366","YSSESB"],["7671","23","28","KTNU4190994","YSSESB"],["7679","23","6",".","YSSESB"],["7687","23","4","ZCSU8597269","YSSESB"],["7695","23","41","MSKU4607997","YSSESB"],["7703","23","7","YMLU3164640","YSSESB"],["7711","23","7","TTNU1929729","YSSESB"],["7719","23","7","CBHU3782501","YSSESB"],["7727","23","6","EMCU1211113","YSSESB"],["7735","23","4","FSCU6495776","YSSESB"],["7743","23","7","GESU3654062","YSSESB"],["7751","23","11","MSKU4068766","YSSESB"],["7759","23","6","INBU5383961","YSSESB"],["7767","23","6","INBU5383961","YSSESB"],["7775","23","7","CBHU5638746","YSSESB"],["7783","23","7","CBHU3936799","YSSESB"],["7791","23","4","CAXU9185547","YSSESB"],["7799","23","7","CBHU5942390","YSSESB"],["7807","23","6",".","YSSESB"],["7815","23","7","CRXU3216814","YSSESB"],["7823","23","5","34DC8624","YSSESB"],["7831","23","6","KKFU1765712","YSSESB"],["7839","23","6","KKFU1765712","YSSESB"],["7847","23","7","WFHU1211331","YSSESB"],["7855","23","6","TCKU2674414","YSSESB"],["7863","23","7","FSCU3331207","YSSESB"],["7871","23","6","56.912AI4","YSSESB"],["7879","23","6","56.912AJ4","YSSESB"],["7887","23","6","56.912AJ12","YSSESB"],["7895","23","4","TCKU9136426","YSSESB"],["7903","23","6","56.912AK5","YSSESB"],["7911","23","6","56.912AK13","YSSESB"],["7919","23","6","BMOU3030612","YSSESB"],["7927","23","7","MSKU2813263","YSSESB"],["7935","23","6","CBHU1707284","YSSESB"],["7943","23","7","CBHU3448032","YSSESB"],["7951","23","4","CBHU8771238","YSSESB"],["7959","23","7","CLHU2894024","YSSESB"],["7967","23","7","FSCU3103932","YSSESB"],["7975","23","7","IPXU3011441","YSSESB"],["7983","23","7","TGHU2540160","YSSESB"],["7991","23","7","WFHU1149472","YSSESB"],["7999","23","7","CARU2681339","YSSESB"],["8007","23","45","CBHU3315847","YSSESB"],["8015","23","7","TCKU3037391","YSSESB"],["8023","23","4","AMFU8770758","YSSESB"],["8031","23","7","CBHU5679637","YSSESB"],["8039","23","6","UXXU4338397","YSSESB"],["8047","23","6","TRLU8629152","YSSESB"],["8055","23","7","CBHU3493957","YSSESB"],["8063","23","4","KKFU7541350","YSSESB"],["8071","23","7","TGHU0333354","YSSESB"],["8079","23","4","FSCU9061705","YSSESB"],["8087","23","4","CBHU8404567","YSSESB"],["8095","23","7","CBHU3448032","YSSESB"],["8103","23","7","FCIU3106784","YSSESB"],["7311","23","6","KKFU1658740","YSSESB"],["7319","23","5","34TL3184","YSSESB"],["8111","23","7","CBHU3619367","YSSESB"],["8119","23","4","CBHU8862404","YSSESB"],["8127","23","7","CBHU5626200","YSSESB"],["8135","23","6","KKFU1142008","YSSESB"],["8143","23","7","DAYU2137027","YSSESB"],["8151","23","7","HDMU5539044","YSSESB"],["8159","23","7","IPXU3274155","YSSESB"],["8167","23","7","CBHU3507520","YSSESB"],["8175","23","4","CBHU8437236","YSSESB"]];
    var store = new Ext.data.SimpleStore({
    fields: [
    {name: 'seq', mapping: '0', type:'int'},
    {name: 'statusseq', mapping: '1', type:'int'},
    {name: 'containertypeseq', mapping: '2', type:'int'},
    {name: 'containerno', mapping: '3', type:'string'},
    {name: 'dataorigin', mapping: '4', type:'string'}
    store.loadData(myData);
    var v_grid = new Ext.grid.GridPanel({
    store: store,
    columns: [
    {id:'seq',header: "SEQ",sortable:true,dataIndex:'seq',width:10},
    {header: "statusseq",sortable:true,dataIndex:'statusseq',width:10},
    {header: "containertypeseq",sortable:true, dataIndex:'containertypeseq',width:20},
    {header: "containerno",sortable:true,dataIndex:'containerno',width:20},
    {header: "dataorigin", sortable:true,dataIndex:'dataorigin',width:30}
    viewConfig:{
    forceFit:true
    width:700,
    height: 560,
    title:'Array Grid'
    </script></div></div>
    <BR>
    <script type="text/javascript">
    Ext.onReady(function(){
    var v_window = new Ext.Window({
    id:'id_WINDOW_EXAMPLE',
    contentE1:'contentE1_WINDOW_EXAMPLE',
    title:'Title',
    closable:true,
    closeAction:'hide',
    resizable:false,
    plain:true,
    allowDomMove: false,
    autoScroll: false,
    items: [v_grid]
    v_window.show(this);
    v_window.setSize({width:900, height:600});
    </script></div>
    Thanks you very much,
    Osman...

  • Back from ALV Grid with multiple refresh

    I have a report that from a selection screen shows an editable ALV Grid, and after I save it, it will refresh the grid.
    My problem is when I hit the BACK button it returns to the "previous grid" instead of the selection screen
    I am using the following:
    WHEN 'BACK_C'.
      LEAVE to SCREEN '0'.
    How can I force it to go back to the selection screen?
    sidenote: I have tried using call
    selection-screen '1000'
    but it adds a new problem as in the selection screen hitting back will return to the grid and I can never exit the report.

    Neither solution works.
    If it helps, I'm refreshing the grid with:
    DATA : ref_grid TYPE REF TO cl_gui_alv_grid.
      IF ref_grid IS INITIAL.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            e_grid = ref_grid.
      ENDIF.
    CALL METHOD ref_grid->refresh_table_display( ).
    It seems when I refresh the grid it generates a completely independent grid screen and there's no way to skip them all and return to the selection screen.

  • Problem of POP LOV  in a  SQL Report  with pagination

    I am using a pop up lov (along with some other fields), HTMLDB_ITEM.POPUP_FROM_LOV(5, null, 'EMPLOYEE_LIST', '20', '50')), in a sql report. This is a report with pagination. Whenever I select any value from pop up lov on first page of the report it gets populated properly in the corresponding text field. But from second page onwards it doesn’t populate any value.
    For example, my report fetches a total of 50 rows, of which I am displaying 15 at a time. The popup lov comes with a text field for each row. Whenever I do select from popup lov for 1-15 rows which come on page 1, the values come up in the text field properly, but for rows 16-30 on second page, 31-45 on third 46-50 on fourth the values do not get populated. When I changed the pagination settings to display 40 rows..the values were still coming properly on page 1(1-40 rows) and not on the next page. Any clues… how to resolve this problem?

    good find. this is a bug that has already been identified and will be corrected in the upcoming patch release for htmldb. a good work-around for now is to use the equivalent declarative options in the tool. so rather than coding your query like...
    select ename , HTMLDB_ITEM.POPUP_FROM_LOV(2, null, 'DEPARTMENT', '20', '50') as "department" from emp
    ...just code it like this...
    select ename , null as "department" from emp
    ...and then use the column attributes screen for your "department" column to indicate that you'd like that col to be rendered as a "Popup LOV (named LOV)" using your DEPARTMENT list of values.
    hope this helps,
    raj

  • Display amount in ALV Grid with different Decimal Places based on Currency

    HI Experts,
    Working with ALV Report i have one Amount field NETWR which is having Length 15 and Decimal Places 2.
    we have two different types of currency's AED and KWD and AED having 2 decimal Places and KWD having 3 decimal places.
    im using FM: REUSE_ALV_GRID_DISPLAY for Display. value storing in Table was like this
    AED---22.56
    KWD---225.65
    i need to display values like AED : 22.56

    HI Experts,
    Working with ALV Report i have one Amount field NETWR which is having Length 15 and Decimal Places 2. we have two different types of currency's AED and KWD and AED having 2 decimal Places and KWD having 3 decimal places.
    im using FM: REUSE_ALV_GRID_DISPLAY for Display. value storing in Table was like this
    AED---22.56
    KWD---225.65 (converting this value to 22.565 using BAPI_CURRENCY_GETDECIMALS according to currency in my Report)
    i need to display values like AED : 22.56
                                             KWD---22.565 but here field is NETWR with 2 decimal.
    Need to Display amount in ALV Grid with different Decimal Places based on Currency
    Regards,
    Dileep Kumar Reddy

  • Empty report with pagination,  rows not displayed

    Dear HTML DB Team,
    We have in our reports the next error: An empty report with pagination appears , no rows not displayed
    The test case to reproduce the error:
    1. Create "SQL report" with next report attributes in "Layout and Pagination"
         a. Row ranges 1-15 16-30 in select list (with pagination)
    b. Number of Rows : 15
    c. Number of Rows (Item): empty
    d. Max Row Count: empty
    2. Fill the table on which the report is based with 17 rows
    3. Go to the 2nd page of the report , pagination rows 16-17 of 17
    4. Remove 2 rows from the table, refresh report
    5, The pagination shows now 1 - 15 of 15 rows
    - no rows displayed
    - no "previous button" ( only )
    - no way to get the rows displayed, except logging out and in again
    Any suggestions?
    Erik

    Hello,
    i encountered the same problem while developing in HTMLDB.
    In application builder, i select application Application 106, then click on items, then click next ( the application has 22 global items). Now i want to take a look at the global items in application 105 (there are only 5). In the menu i click Builder - Application 106, select application 105 from Available Applications, click Go and Items. It shows no rows, but says that is displaying rows 1-5, and offers a Next button. No way to see/modify the items unless make a new session or go back to Application 106, Click Previous to see the first page of global items and then again switch to Appication 105 or click to the next button and then manually set pg_min_row=1 in URL.
    One more question - is this forum the right place to report bug suspicions, or is there some other special place for that?
    Best regards,
    Andres

  • What organizer app has a really good WEEK VIEW like my Palm Pilot - it's a grid with days across the top.  Below each day- the day is divided into hourly grids.  When events are schdeuled across  week - you get a mosaic of time blocks.  Analogue - great

    What organizer app has a really good WEEK VIEW like my Palm Pilot - it's a grid with days across the top.  Below each day- the day
    is divided into hourly grids.  When events are schdeuled across  week - you get a mosaic of time blocks.  Analogue view is  great way
    to comprehend the time obligations as a molar pattern.
    thx,
    Fritz

    I use Week Cal on the iPod.  I think it was only $1.99.  It is a lot better and does a lot more than the one that came with the Palm Pilot.
    As you know, unlike the Palm Pilot, the iPod does not come with a desktop application that you can sync your iPod calendar to.  Since I don't use Outlook, I have to use a Cloud based calendar to sync with my PC.  I use Hotmail's calendar for that.  (If your computer is a MAC, you can use iCal)

  • How can i create a grid with summary row

    Hello Professionals,
    I'm wondering how could i create a grid like the grid below, i want to create a grid with summary row,
    i have tried to create it using collapsing but it didn't work as required.
    Any suggestions?, i want to know just the starting point so i can make deep investigations.
    Thanks in Advance,

    Hi Karem,
    this can be achieved by just assigning a datatable containing the data plus some formatting of grid. Meaning there is no feature for that.
    The datatable can be filled manually or by sql query. Then you have to attach some events for updating the values ( validate after for gid item ).
    A small example for a sql query showing last month quotations and orders with summary :
    select 1 as Sort,cast(DocNum as varchar) as DocNum,DocTotal,convert(varchar, DocDate,104) from OQUT where DocDate between  DATEADD(month, -1, GETDATE()) AND GETDATE()
    UNION ALL
    Select 2 as Sort,'Summary ( Quotation ) : ',sum(DocTotal), convert(varchar,  DATEADD(month, -1, GETDATE()),104)+' - '+convert(varchar,   GETDATE(),104) from OQUT where DocDate between  DATEADD(month, -1, GETDATE()) AND GETDATE()
    UNION ALL
    select 3 as Sort,cast(DocNum as varchar) as DocNum,DocTotal,convert(varchar, DocDate,104) from ORDR where DocDate between  DATEADD(month, -1, GETDATE()) AND GETDATE()
    UNION ALL
    Select 4 as Sort,'Summary ( Order ) : ',sum(DocTotal), convert(varchar,  DATEADD(month, -1, GETDATE()),104)+' - '+convert(varchar,   GETDATE(),104) from ORDR where DocDate between  DATEADD(month, -1, GETDATE()) AND GETDATE()
    ORDER by Sort
    regards,
    Maik

  • Grid with check box.

    Hi,
    I want to make a grid with check box. I want to have two column in the grid. One column of the grid will show some column name of a table and the other column will contain check box. If I tick the check box of a the selected row of the grid then the value (e.g. Y or N) will store in the particulr table.
    I have written some code regardig this. But I am not getting my problem solved. I am sending the code sample below.
    oNewItem = oOrderForm.Items.Add("MyGrid", SAPbouiCOM.BoFormItemTypes.it_GRID)
            oNewItem.Left = 20
            oNewItem.Top = 30
            oNewItem.Width = 198
            oNewItem.Height = 130
    oGrid = oNewItem.Specific
    Dim str As String
            str = "SELECT COLUMN_NAME AS FACILITIES, '' AS TICK FROM PIONEER.INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = N'OITM' AND ORDINAL_POSITION BETWEEN 102 AND 165"
            oOrderForm.DataSources.DataTables.Add("MyDataTable")
            oOrderForm.DataSources.DataTables.Item(0).ExecuteQuery(str)
            oGrid.DataTable = oOrderForm.DataSources.DataTables.Item("MyDataTable")
            ' Set columns size
            oGrid.Columns.Item(0).Width = 270
            oGrid.Columns.Item(0).Editable = False
            oGrid.Columns.Item(1).Width = 70
            oGrid.Columns.Item(1).Type.gct_CheckBox.GetValues()
    From The last line I am getting problem. Please any one can help me for this problem.
    Thank you
    Amit Kumar Shai

    Hi
    The last line should read like this
    oGrid.Columns.Item(1).Type = SAPbouiCOM.BoGridColumnType.gct_CheckBox

  • ALV Grid with Popup Window

    Hey @all,
    I want to make a ALV Grid with a Popup Window. The idea is that there is a field for notes and when you click on this field a popup window should be opened where you can insert more text or if text already exists only the first column of the text is shown in field until you click on the field.
    Is there any possibility to do it this way? Do I have to make a second Grid for this Popup Window? Do anybody have an example how to solve this problem?
    Thank you in advance for your answers!
    Greetings,
    Alexander

    *& Report  Z_VISHVAS_ALV1
    report  z_vishvas_alv1.
    type-pools: slis.
    data: begin of i_outtab occurs 0.
            include structure sflight.
    data:   w_chk type c.                  "For multiple selection
    data: end of i_outtab.
          I_OUTTAB TYPE SFLIGHT OCCURS 0,
    data: i_private type slis_data_caller_exit,
          i_selfield type slis_selfield,
          w_exit(1) type c.
    parameters: p_title type sy-title.
    start-of-selection.
      select * from sflight into table i_outtab.
      call function 'REUSE_ALV_POPUP_TO_SELECT'
           exporting
                i_title                 = p_title
                i_selection             = 'X'
                i_zebra                 = 'X'
              I_SCREEN_START_COLUMN   = 0
              I_SCREEN_START_LINE     = 0
              I_SCREEN_END_COLUMN     = 0
              I_SCREEN_END_LINE       = 0
                i_checkbox_fieldname    = 'W_CHK'
              I_LINEMARK_FIELDNAME    =
              I_SCROLL_TO_SEL_LINE    = 'X'
                i_tabname               = 'I_OUTTAB'
                i_structure_name        = 'SFLIGHT'
              IT_FIELDCAT             =
              IT_EXCLUDING            =
              I_CALLBACK_PROGRAM      =
              I_CALLBACK_USER_COMMAND =
               IS_PRIVATE             = I_PRIVATE
         importing
                es_selfield             = i_selfield
                e_exit                  = w_exit
           tables
                t_outtab                = i_outtab
           exceptions
                program_error           = 1
                others                  = 2.
      if sy-subrc <> 0.
       MESSAGE i000(0k) WITH sy-subrc.
      endif.
    *****the internal table is modified with a cross sign for marking the
    ***rows selected
      loop at i_outtab where w_chk = 'X'.
        write: /  i_outtab-carrid, i_outtab-price.
      endloop.

  • ALV grid with editable fields

    Dear Colleagues,
    I develop an ALV grid with OO standard methods. Before the first display of the table I define the editable fields. It works fine.
    I have a problem : if the table is empty and I press the standard icons "Append a line" or "Insert a line", the new line don't have the defined editable characteristics.for fields. Is there a standard method which I have forgotten ?
    Thanks a lot and kind regards
    Peter

    vs_toolbar_excluding = cl_gui_alv_grid=>mc_fc_loc_delete_row.
        APPEND vs_toolbar_excluding TO i_toolbar_excluding.
        vs_toolbar_excluding = cl_gui_alv_grid=>mc_fc_loc_append_row.
        APPEND vs_toolbar_excluding TO i_toolbar_excluding.
        vs_toolbar_excluding = cl_gui_alv_grid=>mc_fc_loc_copy_row.
        APPEND vs_toolbar_excluding TO i_toolbar_excluding.
        vs_toolbar_excluding = cl_gui_alv_grid=>mc_fc_loc_insert_row.
        APPEND vs_toolbar_excluding TO i_toolbar_excluding.
        vs_toolbar_excluding = cl_gui_alv_grid=>mc_fc_loc_copy.
        APPEND vs_toolbar_excluding TO i_toolbar_excluding.
        vs_toolbar_excluding = cl_gui_alv_grid=>mc_fc_loc_cut.
        APPEND vs_toolbar_excluding TO i_toolbar_excluding.
        vs_toolbar_excluding = cl_gui_alv_grid=>mc_fc_loc_paste.
        APPEND vs_toolbar_excluding TO i_toolbar_excluding.
        vs_toolbar_excluding = cl_gui_alv_grid=>mc_fc_loc_undo.
        APPEND vs_toolbar_excluding TO i_toolbar_excluding.
        vs_toolbar_excluding = cl_gui_alv_grid=>mc_fc_loc_paste_new_row.
        APPEND vs_toolbar_excluding TO i_toolbar_excluding.
    * Displaying the output in ALV Grid
        vs_layout_grid-no_rowmark = 'X'.
        vs_layout_grid-zebra      = 'X'.
        vs_layout_grid-cwidth_opt = 'X'.
        vs_layout_grid-edit       = 'X'.
        vs_layout_grid-ctab_fname = 'CT'.
        vs_layout_grid-stylefname = 'CELLTAB'.
        CALL METHOD v_grid->set_table_for_first_display
          EXPORTING
            i_save                        = 'X'
            is_layout                     = vs_layout_grid
            it_toolbar_excluding          = i_toolbar_excluding[]
          CHANGING
            it_outtab                     = itab[]
            it_fieldcatalog               = it_fieldcat[]
          EXCEPTIONS
            invalid_parameter_combination = 1
            program_error                 = 2
            too_many_lines                = 3
            OTHERS                        = 4.
        IF sy-subrc NE 0.
          MESSAGE 'ALV Grid display unsuccessful' TYPE 'I'.
          STOP.
        ENDIF.                             " IF sy-subrc NE 0
      ELSE.                                " IF w_custom_container...
    * Refresh the container if it already exists
        CALL METHOD v_grid->refresh_table_display
          EXCEPTIONS
            finished = 1
            OTHERS   = 2.
        IF sy-subrc NE 0.
          MESSAGE 'Refreshing the container is not successful' TYPE 'I'.
          STOP.
        ENDIF.                            

  • ALV grid with 2 labels on the output

    Hi,
    I am trying ALV  Grid with two labels using Function modules.
    in the output, it should appear like...
    Header1 | Header2 | Header3 | Header4 |
    T21
    T22
    T31
    T32
    First line is for Header lable and second line is for item lable under corresponding Header labels.
    Pls. can any suggest me a solution for this..
    Thanks
    PRa

    Using the Gird Functions it is not possible, you can get the with the help of ALV list function.
    If you use this aproach you will loose some Functionalities, Your Report Output will Distorted.
    cehck this image..
    http://img100.imageshack.us/img100/3846/output6ef.th.gif
    REPORT ZTEST_ALV message-id zz .
    TYPE-POOLS: SLIS.
    DATA: X_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
    IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
    L_LAYOUT type slis_layout_alv,
    x_events type slis_alv_event,
    it_events type SLIS_T_EVENT.
    DATA: BEGIN OF ITAB OCCURS 0,
    VBELN LIKE VBAK-VBELN,
    POSNR LIKE VBAP-POSNR,
    MALE type i,
    female type i,
    END OF ITAB.
    SELECT VBELN
    POSNR
    FROM VBAP
    UP TO 20 ROWS
    INTO TABLE ITAB.
    X_FIELDCAT-FIELDNAME = 'VBELN'.
    X_FIELDCAT-SELTEXT_L = 'VBELN'.
    X_FIELDCAT-TABNAME = 'ITAB'.
    X_FIELDCAT-COL_POS = 1.
    APPEND X_FIELDCAT TO IT_FIELDCAT.
    CLEAR X_FIELDCAT.
    X_FIELDCAT-FIELDNAME = 'POSNR'.
    X_FIELDCAT-SELTEXT_L = 'POSNR'.
    X_FIELDCAT-TABNAME = 'ITAB'.
    X_FIELDCAT-COL_POS = 2.
    APPEND X_FIELDCAT TO IT_FIELDCAT.
    CLEAR X_FIELDCAT.
    X_FIELDCAT-FIELDNAME = 'MALE'.
    X_FIELDCAT-SELTEXT_L = 'MALE'.
    X_FIELDCAT-TABNAME = 'ITAB'.
    X_FIELDCAT-COL_POS = 3.
    APPEND X_FIELDCAT TO IT_FIELDCAT.
    CLEAR X_FIELDCAT.
    X_FIELDCAT-FIELDNAME = 'FEMALE'.
    X_FIELDCAT-SELTEXT_L = 'FEMALE'.
    X_FIELDCAT-TABNAME = 'ITAB'.
    X_FIELDCAT-COL_POS = 3.
    APPEND X_FIELDCAT TO IT_FIELDCAT.
    CLEAR X_FIELDCAT.
    x_events-NAME = SLIS_EV_TOP_OF_PAGE.
    x_events-FORM = 'TOP_OF_PAGE'.
    APPEND x_events TO iT_EVENTS.
    CLEAR x_events .
    L_LAYOUT-NO_COLHEAD = 'X'.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = SY-REPID
    IS_LAYOUT = L_LAYOUT
    IT_FIELDCAT = IT_FIELDCAT
    it_events = it_events
    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.
    FORM TOP_OF_PAGE.
    *-To display the headers for main list
    FORMAT COLOR COL_HEADING.
    WRITE: / SY-ULINE(103).
    WRITE: / SY-VLINE,
    (8) ' ' ,
    SY-VLINE,
    (8) ' ' ,
    SY-VLINE,
    (19) '***'(015) centered,
    sy-vline.
    WRITE: / SY-VLINE,
    (8) 'VBELN'(013) ,
    SY-VLINE,
    (8) 'POSNR'(014) ,
    SY-VLINE,
    (8) 'MALE'(016) ,
    sy-vline,
    (8) 'FMALE'(017) ,
    sy-vline.
    FORMAT COLOR OFF.
    ENDFORM.

Maybe you are looking for