First Character
siyak
Member Posts: 66
Hi pips!! i working on the account types then what i want to see is on the customer is the account type start with the 'T'(filtering),i don't know whether i on the correct direction by using the COPYSTR(ACCTYPE,1,1).Please help i want to filter by That and don't see the other ones
0
Comments
-
Are you looping through some filtered records that may or may not have 'T' in the beginning of the Account Type?
Or would you just like to filter FOR customers with account types beginning with 'T'?
If yes for the first one, you could do...IF ACCTYPE[1] := 'T' THEN .... //I assume account type is Code datatype so you don't have to worry if it will be 't' or 'T'
0 -
Hi
You could also do thisSETFILTER("Account Type",'%1','T*');
Albert0 -
if you will use a filter, use following:
YourRecordvariable.setfilter(YourFieldToFilter,'%1','T*');Do you make it right, it works too!0 -
I'm using the matrix form,i just wanna know where i can put this code.I already have the code0
-
you really want to set this code in stone with "T"?
are you going to keep changing the code? say next you want to filer "S"
Do you want it dynamic? Like adding a textbox on the form and whatever letter you enter into it - the form will filter on it?
Was F7 -> typing T* not possible?0 -
yes :-( to late :-(Do you make it right, it works too!0
-
Thanks guyz that what i have,but what i want is:i have a matrix form and it belong to the location so i cannot put this code(CurrForm.MatrixForm.MatrixRec.SETRANGE("Account Type Dimension",'%1','T').
On the Matrix form i have (Customer No and Account Type Dimension) and on the Matrix field i have the (Location Code),so i just wanna know where i can put this Code(.SETRANGE("Account Type Dimension",'%1','T').
There Client does not want tu press F7 and T*,they want it filtered already!! ](*,)0 -
how about go to your form
tools->designer
View->Properties
**Use assist Button**
SourceTableView->WHERE (Account Type Dimension=FILTER(T*))0 -
SETRANGE("Account Type Dimension",'%1','T')Will NEVER be accepted by Navision. It means you want to filter all values from '' to 'T'.
You need to useSETFILTER("Account Type Dimension",'T*')
or also (like you wrote in your other topic:SETRANGE("Account Type Dimension",'T001','T999')
This last will filter out "TA" => "TB". I don't know if you have those values or if you want to filter them out.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions