How to filter for a part of text on query level filter?
Hi guys!
I'm running this query where in one of the fields I can have 4 different values:
Blue of Rock
Yellow the Great
Green Grass
White of Ages
I want to run the query with a filter in it where it will only show me the values with "of" in it.
I would then get:
Blue of Rock
White of Ages
How can I do it?
I tries the wild cards and Equal to and Match patter, but I'm not getting the result I want.
Kind regards
Gidday Richardo,
Try this -
Add a new object to your universe then use this object in your query filter
In the example below -
Select - >
table name = your table name
column name = your object
Where >
table name = your table name
column name = your column name like '%of%'
So you will have two object -
Object 1 : Original object including value 'Of' ( by default)
Object 2: value with only 'Of'
Then Object 2 directly in your query filter..
Hope this would help!
Cheers,
Similar Messages
-
JTextPane, how to set only a part of text editable?
How to set only a part of text in JTextPane editable? For example I want to forbid changing text after 'enter'. JTextPane has method setEditable but this works only for whole JTextPane.
Plz help!!!I'm working on some application similar to unix console. It can't be done relatively simply with the provided components (for example two textfileds), but then it will not look like console :) .
Now some technical problems:
Anyway, use a DocumentListener and have it ignore any changes
in areas you deem to be protected.I have no idea how to ignore changes using DocumentListener. Could you give more information abut this?
I found "my own way". I create MyDefaultStyledDocument which extends DefaultStyledDocument. Then I overwrite two methods: insertString and remove. Using offsets values I manage to block everything before " > ", and I protect output from editing. But I still have a problem:
This works fine (add "> " to JTextPane text):
String s = console.getText();
s = s+"> ";
console.setText(s); but this doesn't work (for example replace last word):
String all = parent.getText();
all = all.substring(0,all.length() - cut);
all = all+text+" ";
parent.setText(all);where: parent = console = JTextPane
Why?
And one more question. Why when I typed "enter", Document remove all text and paste it again :/ -
JTextArea, how to set only a part of text editable?
How to set only a part of text in JTextArea editable? For example I want to forbid changing text beteween lines 2 and 6. JTextArea has method setEditable but this works only for whole JTextArea.
Plz help!!!http://forum.java.sun.com/thread.jspa?forumID=57&threadID=5177361
-
Query level filter not working in Webi report
Hi All,
I am using BOXI R3.1 (SP3), m facing one problem when refreshing Webi report on daily basis. I am using three query level filter as a prompt, but i checked one filter is not working then i need to reapply this filter and rest 2 filter is working fine.
Can anyone suggest me why problem is coming?
Regards,Hi,
Prompts are interactive, and come from the query panel. Filters are not interactive, and are set on the report or block. There are also input controls, which are interactive filters
1. Select the universe in the list of universes to open the Query Panel.
2. Drag the Year object to the Result Objects pane.
3. Drag the Number of Guests object to the Query Filters pane and create a report filter that restricts Number of Guests to greater than n.
4. Click Combined Query.
The Combined Query pane appears in the bottom left of the Query panel with the two queries joined by UNION.
5. Click on the second query and remove the Year and Number of Guests objects.
6. Drag the Reservation Year object to the Result Objects pane.
7. Drag the Future Guests object to the Query Filters pane and create a report filter that restricts the future guests to greater than n.
8. Click Run Query.
Best Regards
Naveen -
Standard Report for missing parts at production order operation level?
Hi PP Gurus,
We have standard report for missing parts at production orders level.
For our client, they need a report for missing parts analysis at production order operation level. Do we have any such standard report in the SAP?
Please help.
Thanks,
Reddy.Hi Arvind,
Thanks for for your response.
1. List: Components, Layout: Standard layout set the Missing part
It shows the component requirement/withdrawn quantity for each operation of production order. It is not showing the commit quantity.
2. List: Components, Layout: Pick list set the Missing part
It shows the component requirement/withdrawn quantity for each production order.
3. List: Components, Layout: Missing Parts List-Material View set the Missing part
It shows the component requirement/commit quantity for each production order. It is not showing the commit quantity at opertion level.
4. List: Components, Layout: Missing Parts List-Order View set the Missing part
It shows the component requirement/commit quantity for each production order. It is not showing the commit quantity at opertion level.
We are unable to get the solution from all these 1 to 4 reports from COOIS.
Do we have any option to change the existing layout (ex: 3 ) to get the commit quantity for operation with missing parts indicator?
If avilable, what is the procedure to be followed?
Thanks,
Reddy. -
S:TextArea How change color for some chars in text?
I have s:TextArea and i need in runtime change color for some chars displayed in text.
How i must to do this correctly?pcardinale wrote:
Initially, a control has no caption. It's not just that the caption string is empty and the caption not visible, but the caption object does not exist.
I think this should probably be changed in future versions, because even if each control had a caption, it would still be a negligible small part of the VI. The current behavior made sense many years ago where HD and memory space was very precious. Not any more!
This issue comes up often enough that it warrants addressing the root of the problem.
It is hard to convince the casual that the caption does not exist if he can simply do a "show caption" at edit time and it will show in all glory, even with the default set to the current label. It is confusing!
There is even an idea about this that seems worth supporting (also read the link in the discussion).
What do you think?
LabVIEW Champion . Do more with less code and in less time . -
How to use 'about' operator in Full text search query?
Hi all,
I have to search the following string in full text index using 'about' operator.
'Advertisment(Cosmetics) Assets'
If use the following query
SELECT keyword_id
FROM mam_keyword_languages
WHERE contains(fts_text_uc, convert('about(Advertisment(Cosmetics) Assets)',
'WE8MSWIN1252', 'WE8MSWIN1252')) > 0
ORDER BY nlssort(text, 'NLS_SORT=EEC_EUROPA3')
It gives following error.
ERROR at line 1:
ORA-29902: error in executing ODCIIndexStart() routine
ORA-20000: Oracle Text error:
DRG-50901: text query parser syntax error on line 1, column 37
How can i do this search? Is there any other way?
Thanx in advance.
T.UmapathySum((postab.subtotal)*(loc.royalty)/100)
Is there any other way to take product of two
attributs? your help will be greatly appreciated as
it is really stumbling block in my project. Thanks in
advanceSuch a stumbling block should have inspired more activity on your part.
I'd try rewriting it like this:
sum(postab.subtotal*loc.royalty/100)[/b]% -
Not possible to filter for more than one dimension in Datasource script filter method?
Hi experts.
We have a scenario where we need to apply filter on multiple dimensions .Eg.
We have one data source DS1 with Dimension HUb and material_grp .
Now we want to filter the DS1 with HUB and Material_grp at the same time.
I am using below statement to apply filter.
DS_1.setFilterExt("ZHUBCODE", "HUB1" );
DS_1.setFilterExt("ZMAT_GRP", "MATG1" ); //Clears HUB filter and shows data for all HUBS , filter with material group only
But Setfilter method first delete the last filter and apply new one.And set filter method takes only one dimension at a time.
Please help me in thisHi Rajender,
Just as a follow-up, if you are using BW as a data source, make sure for each of the dimensions, ZHUBCODE and ZMAT_GRP, that in the Initial View Editor of the data source, the Members for Filtering > Only Values with Posted Data option is selected, which should be the default anyway.
Again if you are using BW, the other option you could try is to use the internal key for filtering with setFilter instead of setFilterExt. Is there a particular reason why you are using the external key?
Regards,
Mustafa. -
How I look for Creator of variant and Adhoc Query
Hi Gurus -
Is there anyway, I Can find out the user who created Variant and Ad-hoc Query?
-SonaliHi Sonali,
You can use the table RSRVARIANTDIR to get the list of variants for each query and this tables has the created user id.
Cheers
Vasu Sattenapalli -
Cascade Filter for Hierarchy dimension
Hi experts, I try to develop a design Studio Dashboard with BW DS. I would like to create a cascade filter for the same dimension but in different levels from hierarchy. First filter would have upper level node of the dimension that will filter same dimension but in lower level values. First selector has manually added Items corresponding the Hierarchy nodes from Level 2. I didn't find how to get specific level of dimension node with function getMemberList(). I created a DS with Level 2 of hierarchy but when I get the values with DS.getMemberList("ZREP", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, "ALL")) I get all final values from last level node. There is a way to get specific values from hierarchy level with getMemberList() ? Once I get all list values from a level on REP_SELECTOR on click on the selector has the following script: DS_1.setFilter("ZREP", REP_SELECTOR.getSelectedValue()); SHOP_SELECTOR.setItems(DS_1.getMemberList("ZREP", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, "ALL")); Unfortunately shop_selector is showing all values from ZREP without any previous filter. Do you know what is wrong on it? Thank you very much
Hi Oscar,
So let me explain a solution that will hopefully meet your needs. A couple of comments before we begin. Since you need to cascade through a hierarchy, for your first list selector it is not possible to use the standard Dropdown Box or List Box components because as you know, these must be populated with the getMemberList() method and this method does not return the hierarchy structure but only the member values (excluding hierarchy nodes). So my proposed solution relies on using a CrossTab component as a selection list. The benefit of this approach is that the hierarchy structure is preserved.
The application layout is as follows:
This example assumes that the selection in the first filter list populates (cascades) the second filter list and the second filter list selection filters the chart. The first filter list selection does not also filter the chart but this functionality can easily be added if necessary.
The steps are as follows:
1. The hierarchy has been set up as per your example, with a topmost root node and one level of text nodes below that. The final level is represented by characteristics. A screenshot is shown below:
2. Define two global script variables to represent the key value of the root node of the hierarchy as well as the standard member selection value for all members, as shown below:
3. Add 3 data sources to the application, all based on the same BEx Query, which includes the dimension (characteristic) that has the hierarchy, as shown below:
4. Add two CrossTab components and one Chart component as shown above.
5. Activate the hierarchy for the first data source DS_1 and set the default level to 2 as shown below:
6. Activate the hierarchy for the second data source DS_2 and set the default level to 2 as shown below:
7. Set the default members of the second data source DS_2 to represent the first level 1 group in the hierarchy as shown below. This is required to ensure that the second list is populated with a default selection on startup.
7. Define the initial view of the third data source DS_3 in accordance with the requirements of the chart, as follows:
8. Assign data source DS_1 to the first CrossTab, assign data source DS_2 to the second CrossTab and assign the third data source DS_3 to the Chart.
9. Define the script for the On Select event of the first CrossTab as shown below. The purpose of this script is to populate the second CrossTab based on the selection in the first one to cascade the filter. Note that a selection of the root node is excluded to prevent duplication of the first level of the hierarchy in the second CrossTab list.
10. Define the script for the On Select event of the second CrossTab as shown below to filter the chart based on the selection:
And that's it! Let me know if this gets us closer to what you're looking for. We can then refine the approach as needed.
Regards,
Mustafa. -
Warranty for Spare parts (MRO)
Hello Experts
I would like to know how does warrantly for spare parts (MRO) works in SAP. I am new to it and keen to know what is needed to set up from Master data set up perspective and what benefit it gives in terms . How does the process works.
Many Thanks
GuaravHi,
As far as my knowledge warranty is not for spare parts, it is for technical objects, like equipment.
To run warranty chech you have to define
warranty types
Warranty categories
Define number ranges
Warranty counters
Then you have to create master warranty records in t-code BGM1 after saving it will give warranty number
This warranty number you have to speciefy in equipment master
Kapil -
This is probably a dumb question, but how do I move select parts of text? I have a "B" and a "G" that I put into Illustrator using the text tool. When I go to move the "G" onto the lower corner of the "B", it selects both letters and moves them as a block.
C,
To elaborate (further) on what Emil said, you may use Character>Baseline Shift with a nrgative value on the G selected separately and then apply a negative Character>Tracking, or go back and forth between the two operations.
Here is such a BG as live (editable) Type with a colour change of the G (the fairest font in 72pt, baseline shift -30pt, tracking -100).
As mentioned earlier, there is a lot of things that cannot be done with live Type. -
Where can I find OIL PAINT filter for CC 2014?
Does anyone know if there's a downloadable OIL PAINT filter for Photoshop CC2014 since they took away that filter from the 2014 version? Is there a way to get the filter without going back to the previous version?
It was removed, you can only use it in the previous version: Photoshop: Spring Cleaning | PHOTOSHOP.COM BLOG
-
Display Report Level Filter value and Input Controls Value
Hi,
Please let me know how to display Report Level Filter value and Input COntrol values in the report.
I have 2 tabs in the WebI Report. The first tab has the summary details about the other tabs like reprot desc, prompt values, reprot filter values,etc.
In the 2nd tab I have the actual report which has input controls defined, prompt values and global level report filters.
Can anyone please tell me how to display the Report level filter values and the Input Control values in the first tab report.
For ex: Tab 2 has a Report level filter: Region = NA
I need to display in Tab 1 in as Region: NA
I used the function ReportFilterSummary but that is giving me other details, I want only the object name and the value.
Also how to dispaly the Input Control values in the tab 1.
Please let me know if you have any suggestions for this issue.
Thanksdid you try
=ReportFilter([Year])
if you are making report filter over the year, it will return the value of the filter
by the way, the filter should be applied over all the report not to a specific block to be able to get the correct value
the Input control also considered as report filter, only if you're applying them on the level of the report, if you applying an input contron over a specific block or chart, you will not get the values for ReportFilter
good luck -
In MS Project 2007, I can use VBA code in Excel and determine if the selected task “Name” field is blanks by using the code “pj.Activecell.text <> “”.
In MS Project 2010, blank name cells are no longer “” (or blank), they are “Empty”. How do users filter for a non-standard value of “empty” then the text of “empty” is not in the task “Name” cell?Hi Dan,
Since I almost know nothing about VBA and I can only read but not write code, I'll let John or Rod (VBA kings on this forum) jump in.
But here is what I go recording the macro:
Sub Macro1()
SetAutoFilter FieldName:="Name", FilterType:=pjAutoFilterIn, Criteria1:=""
End Sub
Also ensure to have the latest version of Project 2010 since I noticed different behaviour with blank lines with 2 different versions.
Hope this helps,
Guillaume Rouyre, MBA, MCP, MCTS |
Maybe you are looking for
-
LOV(af:selectOneChoice) with bind variable in af:table
Hi All, I have a table where a column is defined as dropdown(af:selectOneChoice). The query for selectOneChoice has a bind variable which needs to be set as a value from the base view Object corresponding row. Suppose a table Employee EmpId EmpName E
-
Error adding invoice - please help
Hi Guys, I'm getting a weird error while trying to insert an invoice using DI API - the error is -5002,Invalid total [OINV.Address] Any ideas how I can solve this? Thanks
-
Every time I try to download itunes 10. says unknown publisher. Whats next?
every time I try to download itunes 10.5.8 after waiting up to 50 min. each time it wont download and has the message unknown publisher. Whats the next step?
-
Firefox will not start after a software update
After software installation Firefox will not start and displays a message box that says that it crashed and can't start
-
Conditions for starting WF - BO BOR Purchase contract
Hi all, we have SRM application rel. 5.0 (Server 5.5) and our need is to deactivate contract's approvement, about a contract just approved, whe user modify some fields in header or item data on contract. Under dir SPRO --> SRM --> SRM Server --> Cros