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

SAPbouiCOM.Conditions --OrderBy

SAPbouiCOM.Conditions oConds = new SAPbouiCOM.Conditions();

SAPbouiCOM.Condition oCond;

can i write ORDER BY Query using the 'SAPbouiCOM.Condition'

If any one know pleas e reply

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on May 29, 2008 at 06:48 AM

    Hi,

    there's still no way to sort a condition.

    the condition object has still no property for this included.

    regards

    David

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Mona,

      here's a c# sample:

      oForm.DataSources.DataTables.Add("OPRJ");
      oForm.DataSources.DataTables.Item("OPRJ").ExecuteQuery("SELECT PrjCode, PrjName FROM OPRJ ORDER BY PrjCode");
      
      ((SAPbouiCOM.Matrix)(oForm.Items.Item("mtxList").Specific)).Columns.Item("1").DataBind.Bind("OPRJ", "PrjCode");
      ((SAPbouiCOM.Matrix)(oForm.Items.Item("mtxList").Specific)).Columns.Item("3").DataBind.Bind("OPRJ", "PrjName");
      
      ((SAPbouiCOM.Matrix)(oForm.Items.Item("mtxList").Specific)).Clear();
      
      ((SAPbouiCOM.Matrix)(oForm.Items.Item("mtxList").Specific)).LoadFromDataSource();
      

      😊

      lg David

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.