[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 310
  • Last Modified:

need help with simple View select statement

Hello all,

I rarely use the designer so I need some help creating some new views for my app.

Basically I have one field called TS_ISO which has a few different options "TS16496", "ISO-14001", "8D", I already have a select statement which will split these up but I also want to select docs which have certain numbers in a text field named "level" which shows the importance of a document.

How can I have these documents be split by the TS_ISO field well also showing only the selected numbers from the text field?

Thanks
0
DWR
Asked:
DWR
  • 3
  • 3
1 Solution
 
p_parthaCommented:
Have the second column categorized and put this formula

@if (level ="1";"Importance";level="2";"not important";"may be importnat")

u can change the text according to the level

Partha
0
 
HemanthaKumarCommented:
Use Select formula like this

Select TS_ISO *= "TS16496" : "ISO-14001" : "8D" & Level *= 1:2:3

In the column formula you can use @IF Statement to filter out other content and show only what you want .. But your selection formula above decides what docs will be shown in this view

~Hemanth
0
 
DWRAuthor Commented:
Sorry I should have specified that the level is only part of the field, the fields are semi smart numbers formatted as such "100-XX-ZZ" "200-XX-ZZ" Where 100= low importance, 200= moderate importance and so on up to 500.

 -XX- is the auditor ref # for who is assigned the audit responsibility for this (not important for select statement) and ZZ is the reference# for the department which is assigned reposbility. (also not used here).

Sorry for not being clear on my first post I should have mentioned the number was only part of the field.

Thanks for your help so far guys!
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
p_parthaCommented:
as i said earlier have this as a second  categorized column
@if (@left(level;3) ="100";"low importance";@left(level;3) ="200";"Moderate";"High importance")
0
 
DWRAuthor Commented:
OK, so use @left to return just the importance, sounds good I'll give it a try and fill you in.
0
 
DWRAuthor Commented:
Worked perfectly Partha.

Thanks for both of your input and help with this.
0
 
p_parthaCommented:
Thx for the points :)

Partha
0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now