Skip to Content
author's profile photo Former Member
Former Member

the filter of the ICWC Tableview

Hello Experts

i am new of the ICWC and i have joined a project of ICWC which coding in the design 2003.

in the view ,AUIITEMS.htm, you know there is a tree table context node for the ICWC data AUIITEMS.and our request want to change the tree to table view.

that's okay for this step.

and i have also added the filter and sort to the ICWC tableview, then there are some issues happened for the filter,i use "Filter = SERVER "

but there is no response for the filter criteria and i change the elelment to " Filter = APPLICATION" and the onFilter = 'Filter '

in the method <b>eh_onfilter()</b>i want to get the tableview column index from the tableview event , but i can't found any value from it.

then i can use the coding

typed_context->auiitemttv->set_filter( iv_attr_name = 'OBJECT_ID'
                                               iv_value     = '4500000113'
                                         iv_keep_existing = 'X'       ).

what should i do now?

I will give award points to the help.

Thanks a lot

William

 

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 29, 2007 at 05:07 AM

    Hi William,

    For filtering you make use of the following :

    <crmic:tableView design = "STANDARD"

    id = "AUIITEMS"

    onNavigate = "navigate"

    table = "//AUIITEMS/Table"

    visibleFirstRow = "<%= lv_visibleFirstRow %>"

    visibleRowCount = "10"

    selectionMode = "MULTILINEEDIT"

    fillUpEmptyRows = "TRUE"

    filter = "APPLICATION"

    onFilter = "filter"

    width = "100%"

    iterator = "<%=lr_iterator%>" >

    since you have selected APPLICATION it means that the controller will be handling the filtering.If it was SERVER then the HTMLB tag would be handling the event.

    Well if want the column index then why dont you go in for iterator attribute set the iterator value as shown.

    Initialise the iterator in the page layout itself.

    lr_iterator type ref to zcl_iterator .

    zcl_iterator must implement the interface IF_HTMLB_TABLEVIEW_ITERATOR.

    you need to refine the method

    IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS

    IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_ROW_START

    IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START

    The first method is used to define the columns

    The second method is called whenever a new row in the table is rendered.

    The third method is called whenever a new cell in the row is rendered.

    for example:

    when table t is called . the first method after the contructor is the GET_COLUMN_DEFINITIONS which will define the columns in the table. After that the first row is rendered which will call RENDER_ROW_START and one each cell of the row RENDER_CELL_START method will be called.

    Hope you are close to your solution.

    Reward useful ansers.

    Regards,

    Shrita Sharma.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 29, 2007 at 05:45 AM

    hello shrita.

    thanks a lot for your quick reply and i think we should clear my question again.

    current. i am coding a ICWC project , and i found if i get some information by query and put them in a icwc tableview , the tag CRMIC:tableview cant use the filter = "Server".

    so i use the application and add a method in the controller .

    but now i only use the design 2003 which is asked by our requestor and i found when i input some value in the filter field , there is a JS error happened .but there is no this kind issue happened in design 2002.

    and you told me maybe i can use the tableview iterator to solve this issue , could you pls give me more detail solution .

    thanks a lot.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.