Table filtering on the model node table

hi
    i have  two table where i need to perform table filtering on the tables and both the tables are of MODEL NODE
and in some of the posts i have seen that we cannot perform
table filtering on the MODEL NODE table  ,  and  other thing 
i have  38 elements where i need to perform filtering on
each and every column ,
can any one help me with procedures for table filtering on
two tables , one table is independent from other.

Hi Kishore,
Please refer to the following artice for the filter and sorting implementation:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f024364b-3086-2b10-b2be-c0ed7d33fe65
Filtering works on the principle of selecting values from an existing master set. Hence, as suggested the master set can be your model node and create another value node (exact copy of the model node) to hold the values to be displayed in the table.
Remember it is always better if the backend provides these capabilities rather than implementing filtering and sorting in front end.
Regards,
Kartikaye

Similar Messages

  • How to get the data from the model node like a table ?

    I want to get the data from the model node  once a record ,and the node  is bound to a internal table in the RFM which I called in the R/3 system. Who can give me some advice to achive it?Thank you!!

    Hi,
    To get the data from the node:
    wdContext.node[your node name].current[node name]_InputElement().get[specific element in the node];
    or you van use:
    wdContext.current[your node]Element().get[your element in the node];
    examples:
    wdContext.nodeZ_Mepro_Po_Detail_Stock_Distri_Input().currentZ_Mepro_Po_Detail_Stock_Distri_InputElement().getUcpd_Flag();
    wdContext.currentT_Delv_ReqsElement().getShelflife();
    regards,

  • How can I create an element in the model node?

    Hi, Experts,
    I create a model node that name is containerNode in the contxt. Cadinility is: 1..n
    I write the code in the method:
      private String getDataForOutputTable( IWDNode wageTypePayslip, IWDNode containerNode ){
           String betrgSumStr = "";
         int index = 0;
         Vector containerVector = new Vector();
         int size = wageTypePayslip.size();
         IWDNodeElement element = containerNode.createElement();// The system report error when I run the application.
         BigDecimal betrgSum = new BigDecimal( 0 );
    I try to create a element in the containerNode, But the system report error when I run the application.
    java.lang.IllegalArgumentException: model object must not be null
         at com.sap.tc.webdynpro.progmodel.context.ModelNodeElement.<init>(ModelNodeElement.java:66)
         at besuretech.com.wdp.IPrivatePayDataDispView$IOContainerElement.<init>(IPrivatePayDataDispView.java:1537)
         at besuretech.com.wdp.IPrivatePayDataDispView$IContextNode.doCreateElement(IPrivatePayDataDispView.java:88)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.createElement(NodeInfo.java:884)
         at com.sap.tc.webdynpro.progmodel.context.Node.createElementInternal(Node.java:1351)
         at com.sap.tc.webdynpro.progmodel.context.Node.createElement(Node.java:1370)
         at besuretech.com.PayDataDispView.getDataForOutputTable(PayDataDispView.java:251)
         at besuretech.com.PayDataDispView.getAllData(PayDataDispView.java:196)
         at besuretech.com.PayDataDispView.onPlugPayListViewIn(PayDataDispView.java:154)
         at besuretech.com.wdp.InternalPayDataDispView.wdInvokeEventHandler(InternalPayDataDispView.java:391)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.navigate(ClientApplication.java:826)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.navigate(ClientComponent.java:881)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doNavigation(WindowPhaseModel.java:498)
    How can I create an element in the model node ?
    Best regards,
    tao

    Hi,
    You need to execute the model before creating the element.
    Regards
    Ayyapparaj

  • Validating the model node

    Hi Experts,
    I have a requirement of validating( changing field names and changing values based on the conditions) the model node and copy the required values into value node.
    Bacially , copying the model node elements to value node based on conditions.
    How can i do this anyone help me pleae.
    Regards,
    Suresh

    hi
               to get number of records from the model node
            catch the size of the Model Node .
             int n = wdcontext.nodeModelNode.size();
             for(int i=0;i<n;i++)
               wdcontext.nodemodelnode.setLeadSelection(i);
    String name = wdcontext.nodeModelNode.get<Model>elementatindex(i).getName();
    if (condition)
    fetch the data from the RFC and set in the value node as
    wdcontext.node<vauenodename>.invalidate();
    IPrivateviewname.Icomponentname ele = wdcontext.node<valenode>.createNode();
    ele.set(name);.
    and so on
    wdcontext.nodevaluenode.addelement(ele)
    Edited by: murali krishna  reddy on Apr 19, 2009 2:40 PM

  • Error while sorting the model node table

    hi
    if(firstTime)
                     view.nowCreateAllCustomExtensionFields();
               IWDTable tab= (IWDTable)view.getElement("tbl_car");
               wdContext.currentContextElement().setCarTableSorter(new TableSorter(tab,wdThis.wdGetCarTableSorterAction(),null)); 
    i have written the above code in domodifyview()  {}
    and   tbl_car is the id of the my table. and the table is of type
    model node .
    wdContext.currentContextElement().getCarTableSorter().sort(wdEvent,wdContext.nodeIt_Car_Data());
    created a sort action  for the table , present in the  table
    properties and  iam getting a error under sort()  saying
    method sort(iwdcustomevent,iwdnode,string)  is  of type 
    tablesorter and  not  applicable for  
      (wdcustomevent,iprivateview.nodename) 
    can any one help me ?

    replace
    if(firstTime)
    view.nowCreateAllCustomExtensionFields();
    IWDTable tab= (IWDTable)view.getElement("tbl_car");
    wdContext.currentContextElement().setCarTableSorter(new TableSorter(tab,wdThis.wdGetCarTableSorterAction(),null));
    by
    if(firstTime)
    view.nowCreateAllCustomExtensionFields();
    IWDTable tab= (IWDTable)view.getElement("tbl_car");
    wdContext.currentContextElement().setCarTableSorter(new TableSorter(tab,wdThis.wdGetCarTableSorterAction(),new HashTable()));
    nikhil

  • Problems in Instantiating the Model Node

    Hi All,
    I Have a problem with creating the instance of a Model Node  which needs an urgent solution, This is the Scenario:
    I Have created a WebDynpro Project using NetWeaver CE Environment and Java EE 5.0 where i am using an Adaptive WebService Model. I have successfully created the model using the WSDL files and have also added to the Controller,
    But when I try to create an Instance of the Request Node in my controller ie after writing this line:
    Request_MI_Nwce007_AS_SOAPReq objReq = null;
    objReq = new Request_MI_Nwce007_AS_SOAPReq();
    This is the Request Structure from the WSDL - Request_MI_Nwce007_AS_SOAPReq
    it gives me an Error saying The constructor Request_MI_Nwce007_AS_SOAPReq() is undefined.
    Please let me know the exact problem and also the way to overcome this problem.
    Its Quite URGENT!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Points Rewarded for helpful answers.
    Regards,
    Poojith MV

    Hi Poojitha,
    If your imported Webservice has any structure like  this Request_MI_Nwce007_AS_SOAPReq_Input then instantiate the input structure.
    else
    Try instantiating along with the package name, for example if your package name is: com.sdn then try this:
    "com.sdn.*Request_MI_Nwce007_AS_SOAPReq objReq = null;
    objReq = new com.sdn.Request_MI_Nwce007_AS_SOAPReq();
    Hope this solves your problem.
    Thanks n Regards,
    Jhansi Miryala

  • Webdynpro : How to SKIP the values of the Model Node.

    Hi
    i imported a WSDL into my WDJ application.
    where on context mapping, i mapped the MODEL with my CONTROLLER.
    I would like to SKIP couple of Attributes and Model node
    In WEBSERVICE navigator, i have the check box as SKIP, so using that i can skip in Navigator ,
    But how to do the same in WEBDYNPRO Coding.
    Say for Example
    Context
    ----------ModelNode1
    ----------ModelNode2
    ----------ModelNode3
    ----------======ModelAttribute1      NULL
    ----------======ModelAttribute2      SKIP
    ----------======ModelAttribute3      SKIP
    i know how to set the value if it need to set it to null
    wdcontext.nodelModelNode3.currentModelNode3element.setModelAttribute1("null")
    similaraly  can anyone tell me how to set the SKIP for other 2 attributes......
    Thanks

    Hi Chintan
    Thanks for your response....
    fine ... i understood your solution....
    but , my problem goes and makes me dizzzy
    i have 10 mandatory filed in my Webservice..
    i passed all the 10 mandatoy fileds and get perfect Response In WEBSERVICE Navigator....
    i tried passing the same value via WDJ application as show below
    since i have a node element with cardinalith 0..n
    I set the value those i passed in Webservice Navigator.....
    wdContext.nodeRequest_getSubmitRequest().
                     nodeRequestDetails().nodeRoles().invalidate();
           IPrivateOne_AppView.IRolesElement RoleE = wdContext.createRolesElement(new ComplexType_RoleData());
         RoleE.setRoleId("BASIC");
         RoleE.setSysId("R3");
         wdContext.nodeRequest_getSubmitRequest().
                   nodeRequestDetails().nodeRoles().addElement(RoleE);
    But Here ,I get a Error Message Saying  :Error in Submiting Request :  No role seleced for the request.
    so , i even checked whether the node is populated with rite value by printing them after executing the WSDL.
         wdContext.currentRequest_getSubmitRequestElement().modelObject().execute();
              MsgManger.reportSuccess( "After Push_execute_WSDL");
    MsgManger.reportSuccess( " COntroller getRoleId -- "+wdContext.nodeRequest_getSubmitRequest()
                        .nodeRequestDetails().nodeRoles().currentRolesElement().getRoleId().toString());
              MsgManger.reportSuccess( " COntroller getSysId -- "+wdContext.nodeRequest_getSubmitRequest()
                        .nodeRequestDetails().nodeRoles().currentRolesElement().getSysId().toString());
    Output
    After Push_execute_WSDL
    COntroller getRoleId -- BASIC
    COntroller getSysId -- R3
    Kindly let me know wat could be wrong........
    The MOST wired thing is
    if i didnt set and Role , SysId in webservice navigator , then Error thrown at Webservice Navigator is
    Error in Submiting Request : RoleId is mandatory,SysId is mandatory null
    on following same thing , if i didnt set Role and SysID in WebDynpro then, i get error as
    Error in Submiting Request :  No role seleced for the request.
    How is this possible....
    any help on this would be appreciated...
    Thanks

  • Difference among Model node creation, model attribute creation and the field creation in database through AET?

    Hello Friends,
    To display the field on the View, we can create the field via 3 ways:
    1) By creating the model attribute
    2) By creating the model node using the GENIL object and using its attributes in view
    3) Creating the field in Database structure using AET
    But, i am not aware that in exactly what kind of business scenarios we use the above 3 methods to create the field.
    Could you help me out to clarify the same.

    Hi Dev,
    1). By creating the model attribute: we will use this option in case of the field is avaibla in stanadrd sap system. It might be in another under child context nodes and we will use BOL relations to access the attribute.
    2).  By creating the model node using the GENIL object and using its attributes in view: We will use this option incase of there is no standard provision to use. Means you want to create any custom assignment block with custom attributes then you can go for this option. More over we can use AET to create custom genil object. We have an option Create Table in AET.
    3).Creating the field in Database structure using AET: We will use this option incase of there is no attribute in database relevant to your requirement then we will go for AET enhancement.
    Hope this might give you little clarification..
    Best Regards,
    Dharmakasi.

  • How to bindi a UI element to 2 model nodes different in the same view

    I want to know how I can bind a set of inputfields, in a form view, to 2 different model nodes ?
    <u>example:</u>
    Im working with 2 adaptional RFC, both working, in my Custom Context.
    Ztest_Search
    Ztest_Update
    In my ResultView I have 2 Model nodes (one for each RFC) I show a set of inputfields in a form view, binded to the Ztest_Search_output of Ztest_Search. This works.
    now I want to update the changes, but I can't find the ways of binding the same inputfields to my other Model node (Ztest_Update) in the context of ResultView.
    Note: If I create a duplicate set of inputfields , one for Ztest_Search binded to the Ztest_Update_output and the other to the Ztest_Update_Input Works. But I wanna avoid this duplicated set of inputfields.
    Thx

    Rodrigo,
    If I understood correctly, your problem is to get the data from the input fields which are bound to a
    model node, Ztest_Search_output and set it to the model node of another RFC, Ztest_Update.
    This can be done by getting the suitable values from the model attributes of Ztest_Search_output
    and setting it to Ztest_Update.
    <b>/**
    * valueOne, valueTwo are the name of the model   
    * attributes that are bound to the Input fields.
    */</b>
    String firstValue = wdContext.currentZtest_Search_outputElement
         ().get<valueOne>;
    String secondValue = wdContext.currentZtest_Search_outputElement
         ().get<valueTwo>;
    Ztest_Update_Input update = new Ztest_Update_Input();
    wdContext.nodeZtest_Update_Input().bind(update);
    <b>/*
    *<b>Zstructure is the structure of the model node under
    *Ztest_Update_Input to which the values have to be 
    *updated.</b>
    */</b>
    ZStructure structure = new ZStruture();
    structure.setValueOne(valueOne);
    structure.setValueTwo(valueTwo);
    update.addZStructure(structure);
    try
       update.execute();     
    catch (Exception ex)
       wdComponentAPI.getMessageManager().reportException(ex.getMessage(), false);                     
    wdContext.nodeZtest_Update_Output().invalidate();
    Bala

  • How to set the Model Class for a newly created Model Node ?

    Hello All,
      I am trying to map a Model node from SourceA to DestinationB.
      To do so, I created a model node for Destination B in the interface controller (set the isInputElement to true). However why I try to map the node, I get an error saying that "Both context nodes have to be bound to a model class". Upon a closer look, I realised that the model node that I created in DestinationB has no entries under the properties.
      Does anyone knows/advise how I can add the model class entry to the model node that I have created as I am not able to do so. Or otherwise, is there a way to map a model node to another model node across different components ? Thank you very much.
    from
    Kwok Wei
    from
    Kwok Wei

    Hello Pascal
      The instructioons that you gave are for mapping the model between the view controller and the component controller within the same component is that right ?
      I am tryng to map a model node in the component controller of SourceA to another model node that belongs to another Component. I do believe that in this case I will need to create a model node in the interface controller of DestinationB and map that to the component controller of SourceA. However, by creating my own model node, how do I change the property modelClass in the context ?
      Thanks !
    from
    Kwok Wei

  • Setting max length of the field when using Context Model Node

    I have created a model using Import Adaptive Web Service model option (a web service was a wrapper around SAP BAPI function module).
    There were no dictionary types created in the Local dictionary as a result of import.
    I have mapped the context of the controller to the model node.
    One of the fields in the model is name     CUSTOMER_NUMBER type string;
    Corresponding element in the wsdl of the web service is
    <xsd:element name="CUSTOMER_NUMBER" type="tns:char10" />
    I have created a view with the input filed mapped to the CUSTOMER_NUMBER field of the model node.
    When I type more than 10 chars into the field and hit the search button, I get a com.sap.dictionary.runtime.Ddcheck exception that the length of the field should be less than 10 chars.
    How can I set the max length of the field in design time to prevent runtime exception?
    Thanks,
    Julia

    Thank you for your reply.
    Java trim function will trim the white spaces only, not the characters.
    I can code check length functionality before calling execute function (the function that call the web service).
    I can also create a dictionary structure based on the model structure; create a context value node based on the dictionary structure and use WDCopyService API to move the data between value node and model node.
    I was looking for the best practice...
    When importing model based on Adaptive RFC, the dictionary structures are imported together with the model. This does not happen for Adaptive web service - hence there is a need to add coding for simple checks.
    Julia

  • How can I change the cardinality of Model Node?

    Hi everybody
    How can I change the cardinality of Model Node?
    Previous:
    I import a Model RFC, and some nodes has the cardinality 0..1, but with this configuration, when I bind to the text fields of my webdynpro and deploy, all my fields text are unables when I shows the webdynpro.
    I check RFC and all the fields and estructures are obligatories.

    Hi Jesus,
    You cannot change the cardinality of the model node. All  the properties of the Model node are derived from the Model object.
    Your input fields are disabled because you are not creating your model object properly.
    You can import the example project TutWD_FlightList, which is available in c:\Program Files\SAP\IDE\IDE70\eclipse\examples.
    Import it in NWDS and you can see how to initialize model object properly.
    Thanks
    Prashant

  • How to refresh model nodes in webdynpro java

    Dear Experts,
    I have a table in view which is mapped to a model node . The model node gets populated by calling a RFC.
    Please tell me how to refresh the model node mapped in the view ?
    wdContext.node_Result_Data.invalidate() ;  doesnt work over here . dont know y !!
    Please advise.
    Regards,
    Mamai.

    Hi,
    Please check with this code. Hope this is help full for you.
    wdContext.nodePoDetails_OutTab().invalidate();
    after invalidate u have to write the Execute that BAPI also.
    wdThis.wdGetCO_POPendingDetailsController().executeYmm_Sc_Bapi_Oapending_Getlist1_Input();
    Hope this helps!!
    Thanks & Regards
    Vijay

  • Instantiating Model Node in Component Controller with new Abstractlist()

    Hi All,
    We have the following issue.
    When we instantiate a Node - Po_Items using Element.setPo_Items( new AbstractList() )
    We get an error "The Type AbstractList Cannot be instantiate" .
    So how to successfully instantiate AbstractList()  so that ultimately the BAPI_NODE_INPUT can be instantiated.
    Best Regards,
    Roby...

    Hi Murtuza,
    Thanks alot for the response.
    I tried initializing Node using
    Element.addPo_Items(new Bapiekpoc());
    But its not getting initialized and I get following errror when I run the application.
    500   Internal Server Error
    Web Dynpro Container/SAP J2EE Engine/6.40 
    Failed to process request. Please contact your system administrator
    Is there any other way to initialize the Po_Items Node which which is inside the Model Node BAPI_PO_CREATE_INPUT.
    BAPI_PO_CREATE_INPUT ( Model Node )
        -- Po_Items ( Subnode which is an input table inside the BAPI )
    Thanks again & Best Regards,
    Roby....

  • Fiiling multiple entries in model node.

    Hi Experts,
    I am new to wdjava,i have query please help me on this:
    In my RFC(General reimbursement) i need to fill table(multiple entries), which is described under table tab.When i execute that filling the data in table, my entries gets saved in the backend.
    My issue is how to set multiple enteris in the model node(table which is required to be filled before execution).Moreover do i need to set this model node to context node .(zhr_welfare_rem_input).
    i am also using the addelement() method in loop but that is overwriting my previous data and thus outcome is single data.
    Regards:
    somya

    Hi Tony,
    I tried using the method as mentioned by you.
    The code in use is as mentioned below :
    Zess_Emp_Welfare_Input inpNew= new Zess_Emp_Welfare_Input();
    IPrivateEmployeeWalfareOverView.IU_DetailsNode nunode = wdContext.nodeU_Details();     
    for(int i=size-1;i>0;i--)
    Zwelfare_Details inp1 = new Zwelfare_Details();
    IPrivateEmployeeWalfareOverView.IU_DetailsElement nuele = wdContext.nodeU_Details().createU_DetailsElement(inp1);
              if(lead==i || wdContext.nodeU_Details().isMultiSelected(i))
                         nuele.setAmount(new BigDecimal(wdContext.nodeCa_PPTE_INS().getCa_PPTE_INSElementAt(i).getAmount()));
         nuele.setBer_Type("PPTE");
         nuele.setBill_Date(wdContext.nodeCa_PPTE_INS().getCa_PPTE_INSElementAt(i).getBill_Date());
         nuele.setBill_No(wdContext.nodeCa_PPTE_INS().getCa_PPTE_INSElementAt(i).getBill_No());
         nuele.setParticulars(wdContext.nodeCa_PPTE_INS().getCa_PPTE_INSElementAt(i).getParticulars());
         nuele.setZmonth("AUG");
         nuele.setZyear("2009");
         nuele.setMandt("180");
         nuele.setPernr(wdContext.currentOutputElement().getE_Pernr());                          
    nunode.addElement(i,nuele);      
    inpNew.setMode("INS");
         inpNew.setI_Year("2009");
         wdContext.nodeZess_Emp_Welfare_Input().bind(inpNew);
    try
         wdContext.currentZess_Emp_Welfare_InputElement().modelObject().execute();
         wdContext.currentZess_Emp_Welfare_InputElement().modelObject().modelInstance().disconnectIfAlive();
         wdComponentAPI.getMessageManager().reportSuccess("Mahesh567");
    catch(Exception ex)
         wdComponentAPI.getMessageManager().reportSuccess("Mahesh");
    Then I execute my RFC.
    RFC name is  Zess_Emp_Welfare
    Model node in which it needs to be inserted is U_Details.
    The structure for U_Details is Zwelfare_Details.
    Please do let me know the solution at the earliest.
    Thanks and Regards,
    Soumyadeep Ghosh.

Maybe you are looking for

  • Sap Scripts-printing the text in a single line

    In Sap Scripts I would like to have my text in a single line. For that I have used the extended line (=) tag. But It is not working. Can anyone help me how can I achieve this. Actually how many characters I can put in a single line. I think it is 72.

  • How can i change the name in information of my  i pod

    my friend gave me her i pod , because she bought a the bigger GB i pod. but when i turn on the computer which is connected with i pod,  whenever the update comes it keep show me " her name" and give the direction. also , i looked in pod information i

  • Cannot link JNI_CreateJavaVM(&jvm,(void**)&env,&vm_args);

    Hi, I use win2000 und MS. Net Dev-Studio 7.1. I do not find the link info for JNIEnv *env; JavaVM *jvm; JDK1_1InitArgs vm_args; jint res; jclass cls; jmethodID mid; jstring jstr; jobjectArray args; char classpath[1024]; // IMPORTANT: specify vm_args

  • WinPE and Certificates

    I have an environment where we require SSL and client certs. During OSD, I can boot from PXE (client certificate delivered by the distribution point), I can boot from media(Client cert embedded in the media). I now have a task sequence where I am try

  • Retrieving old sites after a fresh install

    Hi. I made a couple of web sites on iWeb 08 and my hard drive got hosed and i had to do a complete re-install, but have a backup of my ~/home and ~/Library.... What do i have to copy over from my back up to get iWeb to see my sites when i launch the