How to filter by attributes with type Strings
The documentation is not really detailed about setting attributes with type Strings. I assume I've to type each string value in a new line in the set attributes dialog box. This works fine and my XML looks like this<br /><br /><para CMS = "prodA prodB"><br /><br />having set the two string values "prodA" and "prodB".<br /><br />But how to filter these attributes? The filter CMS="prodA" shows my paragraph correctly, but CMS="prodB" does not show this paragraph as it should. Filters seem to match only the first of the set of string values.<br /><br />I would like to show this paragraph in two document versions for these two products prodA and prodB.<br /><br />Framemaker 8.0.3<br /><br />Tilman
Tilman,
this is something that AFAIK is not supported by FrameMaker's own attribute based filtering.
But, without changing your documents, if you install the *free* ABCM (Attribute-based condition management) plug-in from weststreet consulting, you will succeed. Be sure to read the tutorial!
http://weststreetconsulting.com/
- Michael
Similar Messages
-
How to filter an array with a string value
I want to filter out all Strings in an array that don't have a certain value in them aka. I want only to see values that start with b or bi or bit etc...
How can I accomplish this?
ThanksThis is another one of those things where I'm surprised it's not in the JDK. It's needed sufficiently frequently, and other languages (esp. scripting languages) seem to support this thing commonly.
Anyway...when I need something like this (that seems as though many others need it as well and it ought to be in the JDK but isn't), the first thing I do is check Apache Jakarta Commons to see if someone has already written such a thing in a reasonably well-supported toolkit. It's worth a look. -
How to join navegational attributes with infoset
Hi Experts,
How to join navegational attributes with infoset? the infoset based on ODS and both having navigational attributes,
my requirment is to join Vendor account group navigational attributes with infoset,
or else plz
povid stps to crete...
In the infoset how to join Info Object CHAR1 to the CHAR1 in the ODS object which makes all the attributes of CHAR1 accessible in the Infoset..
plz suggest with steps,
regards,
Edited by: Sap-10564461 on Apr 20, 2010 11:34 AMHi,
Consider that you have a cube/ODS which has 0MATERIAL. Say you have switched on the nav attribute Material group in the cube.
Now since an infoset acts on a table level, it cannot read nav. attributes directly. Hence you will not be able to find 0MATERIAL__MATGROUP in the infoset.
Now if you want to get able to obtain MATGROUP, you need to add 0MATERIAL to your infoset. One you have added 0MATERIAL, you will be see the attributes of this infoobject as fields.
Map 0MATERIAL from the cube to 0MATERIAL from the info object. Join type is inner join. Now check the MATGROUP field under the infoobject table indicating that this field needs to be fetched by the infoset.
Now when you run a query on the infoset, you will be able to use MATGROUP from 0MATERIAL.
Hope this helps.
Regards. -
Comparing table attribute with a string without compromising performance?
in pl/sql what is the best practice for comparing a varchar2 attribute with a string should be case insensetive, without compromising performance.
I've read on using an index (upper(tbl_attribute)) and then comparing in the where clause using
upper(tbl_attribute) = input_value'
is this the only way?
is there a directive that could make the process faster?
how about reading the table into memory then do the compare using upper in memory would that be faster than reading the table each time we run the comaprison condition?
example:
select name from tblnames
where upper(name) = upper('Joe')
thank youI would say the ideal case would be to ensure that all the data that is stored in the column is upper case to begin with. To monitor that you could place a constraint on the table like the following:
ALTER TABLE TABLE_X ADD CONSTRAINT UPPER_CONS CHECK (COLUMN_X = UPPER(COLUMN_X));If the code can't be modified to always store the data in upper case you could always create a trigger to force the value to be upper case.
Then your WHERE clause would only have to be like the following:
COLUMN_X = UPPER('JOE')In my opinion storing the data as it should be would be the best performing because it should allow the CBO to have as many access paths as possible. You could then create a regular index on this column if there was truly a need for even better performance.
A function-based index as you suggested is another viable option as well.
HTH! -
How to make the attribute of type object private
Hi All!
How to make the attributes of type object private ?
regards
Sanjeeb Bose
Kolkata IndiaSanjeeb,
Object encapsulation can be enforced at your client/mid-tier API level (e.g., Java, C++).
Regards,
Geoff
Hi All!
How to make the attributes of type object private ?
regards
Sanjeeb Bose
Kolkata India -
Error in table binding (Select an attribute of type string)
Dear All,
I'm doing the <i>TUT_FLIGHTLIST</i>example of the webdynpro. Now i'm struck at the step of Table Binding. <b>System says that error for UI element...select an attribute of type string.</b>. Please suggest.
Thanks,
Anup.Hi,
May be you trying to bind TextView UIElement in table to a contextAttribute of type other than "String".
Please change the UIElement type.
Regards, Anilkumar -
Good practice to initalize all instance variables with type String to emptr
Is it a good practice to initalize all instance variables with
type String to emptry string?
#1 approach:
public class A
{ private String name = "";
private String address ="";
//etc...
rather than
#2 approach:
public class A
{ private String name;
private String address;
//etc...
When I read Java books, the examples don't usually do #1 approach.
The problem is if we don't initialize to empty string, when we call
the getter method of that instance variable, it will return null.
Please advise. Thanks!!Please advise. Thanks!!It depends on your coding style. If you can avoid lots of checks for null Strings in the rest of the code then why not initialize to "".
You have the same situation when a method returns an array. If you under circumstances return a null array reference then you have to always check for this special case, but if you return a zero length array instead you have no special case. All loops will just run 0 iterations and everything will work fine.
So in general I guess the return of zero objects instead of null references really boils down to whether it simplicates the rest of your code by removing lots of extra checks for the special null case. This usage is especially favourable in the zero length array case. See Effective Java by Bloch, item 27. -
How could I delete files with name string with "TAL" and older than 05.05.
How could I delete files with name string with "TAL" and older than 05.05.2009 on unix
Our ECC Ides system today was not responsible. For first time 17 users were working on the systtem (IWN2008/SQL2005 based). Before the people were maximally 5.
The server is done by making a homogeneous system copy from an blade machine(now it is an VIrTUAL)
There was enaught disk space. However I checked Wokload 03sdn transaction) inn system. and found out that at that time of restarting(I had to restart system 3 times to get logged on the system and even then it was almost unresponsive.
I can found in there top abap."Login_Pw", "SESSION_MANAGER", "?". (BAtch), "ADMSBUF, >DEleyed Function call, RSPOWPOO""RSWWclear", ""VA01", "SAPMHHTP "Buf Sync" >DDLOC CLEANUP)""rsbtctE"
What can I do?
¸
Who could interfer SAP_CCMS_MONI_BATCH_DPSAP_CCMS_MONI_BATCH_DP
the 2 main users under users profile were ZUGTIN running and SAPSYS( running many system jobs)
How to approach the problem -
Hi,
how to know pro-grammatically variable type(string ,numeric ....) of TestStand variable using Labwindows CVI.
Thanks
Mukesh KumarMukesh,
You could use the TS_PropertyGetType() function in CVI to do this. Here is a reference page for the GetType function--you can see that it returns a PropertyValueType which will indicate which type the PropertyObject (variable) is. In CVI, you'll find this function in the NI TestStand API 2013 instrument methods, under PropertyObject > Static Properties.
Hope it helps, and let us know if you have any more questions about it!
Daniel E.
TestStand Product Support Engineer
National Instruments -
How to associate LDAP attributes with the subject?
I am writing a custom role mapper and want to determine the roles of the subject
depending on values of LDAP attributes. Is it posssible to associate LDAP attributes
with the Subject?
We use iPlanet and hence I have configured iPlanetAuthenticator as the Authentication
Provider. Is it possible to configure iPlanetAuthenticator so that the LDAP attribute
values are associated with the subject? Or is it possible to extend iPlanetAuthenticator
for this purpose?
Is there a way to do this other than writing my own AuthenticationProvider?
Thanks in advance.
Jay"Jay" <[email protected]> wrote in message
news:3f1d77f7$[email protected]..
>
I am writing a custom role mapper and want to determine the roles of thesubject
depending on values of LDAP attributes. Is it posssible to associate LDAPattributes
with the Subject?
Which LDAP attributes are you interested in? We can look at adding this
functionality
if we have more info.
We use iPlanet and hence I have configured iPlanetAuthenticator as theAuthentication
Provider. Is it possible to configure iPlanetAuthenticator so that theLDAP attribute
values are associated with the subject? Or is it possible to extendiPlanetAuthenticator
for this purpose?
There is no way to extend the provider.
Is there a way to do this other than writing my ownAuthenticationProvider?
>
You may be able to write a separate provider that works in conjunction with
the
authentication provider. It would add the principals with the ldap
attributes.
Thanks in advance.
Jay -
How to store text in AD attributes of type String(Unicode)
In our company, we store the name of the building in which an employee works in one of the ActiveDirectory attributes named extensionAttribute# where # represents a number form 1-15. I want to be able to store the names of buildings in the AD
attribute named "buildingName". According to the
buildingName attribute in the MSDN library, the syntax is "String(Unicode)".
When I try something that seems simple to write some text into this attribute such as
Set-QADUser jdoe -ObjectAttributes @{buildingName="My Building Name"}
I get an error that says "Set-QADUser : The requested operation did not satisfy one or more constraints associated with the class of the object."
I have been searching forums and code libraries for a solution to this issue, but I do not understand why I can't store string data into this attribute. I did try the following code snippets to try to convert the string to Unicode (and UTF-8) before I wrote
to the buildingNameAttribute, but I still get the same error.
$text = "My Building Name"
$enc = [System.Text.Encoding]::Unicode
# $enc = [System.Text.Encoding]::UTF8
$encText = $enc.GetBytes($text)
$encText
Set-QADUser jdoe -ObjectAttributes @{buildingName=$encText}
Has anyone else had this issue or know how to overcome it? I can, of course, continue to use the extensionAttribute in which I currently have the data stored, but I really want to free it up and use the "buildingName" attribute.
Gardner Rowe Systems Analyst III UT MD Anderson Cancer Center - Making Cancer HistoryFrom your link:
buildingName attribute
The name of the building where an organization or organizational unit is based.
IOW, it is an attribute of organization or organizational unit class of object not a user object, so you can't set it for a user.
[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " " -
How to filter a form with pagination?
Hi all,
I've converted an app to Apex 3.1 (thanks to helpful folks here), but am stuck on the final form. I'd like to streamline the master-detail form, skipping over the tabular report in the detail. Here's (almost) a shell of what I'm trying to do:
[http://apex.oracle.com/pls/otn/f?p=57085|http://apex.oracle.com/pls/otn/f?p=57085]
I'd like the select list in the top region to be able to filter the results in the lower region, showing one row of info at a time in a form. The above example isn't nearly as complex as the real form I'm using, of course, but it should show what I'm trying to do.
I've set up the computation for P1_EMPNO as:
select min(empno)
from "#OWNER#".emp
where deptno like :P1_DEPT_FILTER OR :P1_DEPT_FILTER IS NULL...with a conditional that P1_EMPNO is NULL. Likewise, the row fetch contains the same WHERE clause as above.
I've been running around in circles trying to debug this, prototyping several forms to test combinations of branches, SQL, and such, but no luck.
Has anyone done this before? I see some semi-close threads here, but they seem to end up as a report.
TIA!
Rich
Edited by: socpres on Dec 1, 2008 1:48 PM -- minor edit: changed SQL to use code tagHi Rich,
Sorry - just seen this.
Yes, I have done something similar before (though the filters were handled on a separate page, the principle would be the same).
The important parts are the selection of the first record, the IDs for the Next and Previous records, the conditional display of the Next/Previous buttons and how to set the current EMPNO id.
1 - As you have a form on the page already, the first record can be set using a Before Header page computation that is conditional on the PK field being null and using your code as the source:
select min(empno)
from "#OWNER#".emp
where deptno like :P1_DEPT_FILTER OR :P1_DEPT_FILTER IS NULL2 - You should then have hidden NEXT and PREVIOUS items on your page. These should be calculated using Before Header computations on EVERY page load (ie not conditional) and using SQL queries:
Previous (say Item name of P1_PREVIOUS_EMPNO):
select NVL(max(empno),0)
from "#OWNER#".EMP
WHERE DEPTNO LIKE :P1_DEPT_FILTER OR :P1_DEPT_FILTER IS NULL
AND EMPNO < :P1_EMPNONext (say Item name of P1_NEXT_EMPNO):
select NVL(min(empno),0)
from "#OWNER#".EMP
WHERE DEPTNO LIKE :P1_DEPT_FILTER OR :P1_DEPT_FILTER IS NULL
AND EMPNO > :P1_EMPNO3 - Your Next button should be conditional on P1_NEXT_EMPNO not being 0 and your Previous button should be conditional on P1_PREVIOUS_EMPNO not being 0
4 - The Next button should trigger a branch that sets the value of P1_EMPNO to P1_NEXT_EMPNO and your Previous button should set P1_EMPNO to P1_PREVIOUS_EMPNO
5 - Your branches triggered by the Filter and Reset buttons should reset P1_EMPNO to null (the computation will calculate this again)
Then, when the page loaded, the first EMPNO that matches the filter is determined and the next/previous EMPNO's are automatically calculated and the buttons shown/hidden as appropriate. Clicking Next or Previous will move through the records and new Next/Previous EMPNO's are calculated each time. When a new filter is applied or the page is reset, the EMPNO is cleared out and recalculated based on the current filter.
Andy -
How to use FIELD-SYMBOLS with TYPE ANY?
Hi!
I need to write a function which gets an import string parameter containing a field name like MATNR. In this function I have to "map" this string to a real variable so that I can access the field which is represented by the string. I tried it like this but it does not work:
FUNCTION ZTEST1.
""Lokale Schnittstelle:
*" IMPORTING
*" REFERENCE(I_MARA) TYPE MARA
DATA: FIELD_NAME(30) VALUE 'I_MARA'.
FIELD-SYMBOLS : <FS_ANY> TYPE ANY.
Assign (FIELD_NAME) to <FS_ANY>.
Does not work (I guess because of 'type any')
WRITE: <FS_ANY>-MATNR.
ENDFUNCTION.
How can I solve this problem?
Thanks,
KonradThis code is far from perfection...But at least it could help you to find the right track -;)
REPORT ydummy_atg.
DATA: w_mara TYPE STANDARD TABLE OF mara.
START-OF-SELECTION.
SELECT *
INTO TABLE w_mara
FROM mara.
PERFORM test TABLES w_mara.
*& Form test
FORM test TABLES t_mara.
DATA: field_name(30) VALUE 'T_MARA',
new_line TYPE REF TO data,
flag TYPE c,
w_tabix TYPE sy-tabix.
FIELD-SYMBOLS : <fs_any> TYPE ANY,
<l_line> TYPE ANY,
<l_field> TYPE ANY.
ASSIGN (field_name) TO <fs_any>.
CREATE DATA new_line LIKE LINE OF t_mara.
ASSIGN new_line->* TO <l_line>.
LOOP AT t_mara.
MOVE t_mara TO <l_line>.
ASSIGN COMPONENT 2 OF STRUCTURE <l_line> TO <l_field>.
<l_field> = <l_line>.
WRITE:/ <l_field>.
ENDLOOP.
ENDFORM. " test
Greetings,
Blag. -
Custom Attribut with type="time" ?
Hello experts
is it possible to display information from ex_data field type TIMS formatted as time in UWL column?
Is there a type defined in the uwl configuration or is it possible to define it by my own, somehow?
Best regards.
Edited by: Julian Kallidat on Jan 14, 2011 11:08 AMHello Julian,
how did you manage to get the type "time" data even displayed as custom attribut? When i am trying to do so, the value of the time field is always empty. Even tho the conatiner is filled. For all other attributes it works, but not for the attribut/conatiner of type "TIMS"
What did you configure for your DisplayAttribute and what for your CustomAttribute?
thx
regards,
Markus -
How can i validate attribute(timestamp type) enter date day is not sunday.
hi All,
problem is that i want to validate timestamp type attribute. when user select a date if the date day is sunday than error message
show to user.
can i do this with groove expression.You can add a script validation to the EO attribute and use an groovy expression like
def d = newValue;
println d.day;
return d.day != 0;
I only tested this with a date but it should work with a timestamp too...
Timo
Maybe you are looking for
-
Error occuring during transport request
ive created a table in development client when transporting it to quality, im getting the error 'table /EU000/FI_ACC' is not in nametab' anybody knows why this error occurs
-
R9 270x flicker. Requesting VBIOS if available
Hello. I have been experiencing this problem since i bought this brand new MSI Radeon R9 270x Gaming 2G BF4 card. S/N: 602-V303-07SB1312026597 and here is the link to the current vbios filedropper.com/pitcairn
-
Hi all when activating Integration model in R/3 with APO below error is coming "Outbound queue blocked" System:APOCLNT800,USER DDIC 09.02.2008 13:28:15 Function:/SAPAPO/CIF_LOC_INBOUND Text:Host name: "XXXXXX"unknown/CPI-C error CM_Product. when we c
-
Is it recommendable to use adobe flash player
Would it be advisable to use adobe flash v.11 on mbp for viewing or not?
-
Hi Guys, I am pretty new to BW. Can someone help me find all the reports that are created on a infoprovider. I need to make a list of reports that are created on each and every infoprovider and I am trying to find out the easiest way to do so. Ea