Restrict OVS Entries Based on Field Value
Hello everyone,
I've had a look at this section of the SCN for help before posting here --- none seemed to quite fit the bill. Apologies if pre-existing help for this already exists.
I'm modifying the 'projects' WorkCentre for a customer: they have a Customer Contact field which I've added to both the project creation and project overview screens, and turned into an OVS which was easy. They now have an additional requirement --- filter that OVS based on the company named as the buyer on the project creation screen. In theory it's pretty simple --- only show those contacts who have the same company as field X --- but I can't figure out how to go about it. Is there a simple bit of Ruby script to filter this? Do I need to create a custom OVS and do some ABSL scripting? Any help would be appreciated.
Lewis
Did it!
Tried as Fred suggested and tested it on a custom screen, which worked. Process was thus:
I used the Company OVS which was in publicovs/organisationalcentreid because others caused issues, but this might not be the case for others. In the system I was using, the OrganisationalCentreID of the company I was testing against was a different length ('1000' instead of the expected '10000000') than the BusinessPartnerInternalID associated with it. This is why the second element is needed. Using AfterModify coding, I did the following:
This gets the BusinessPartnerInternalID of the company, which is the same as the RelationshipBusinessPartnerInternalID field used in the Contact OVS. Using the parameter binding I just matched up these two and voilà. One can also make the second field invisible so one doesn't clutter up their UIs.
There is I believe a Company OVS which is in the BusinessPartner subsection of the publicovs folder, which may negate having to have the extra field --- however I was experiencing issues using that, so I'm playing it safe for now. If this solution doesn't work on the customer's system in the standard screen I'll just take it up with SAP. Thanks all for your help!
Similar Messages
-
How can we restrict EQL result based on session value
How can we restrict EQL result based on session value or by checking with EBS secured function?
Example: I create a Item Search Dashboard but I have more than one inventory organizations and I want to restrict dashboard to bring inventory org respective data by validating responsibility/profile option.
Can anyone help me on this or if my concept is wrong so can anyone please guide me?Hi Bob,
Thank you. Sorry for the late reply but I was busy in other stuff. I did the jar file and copied that Jar file into .ear/APP-INF/lib and copied on server and updated the df.securitymanager property under framework settings on Endeca Studio and restarted Endeca Server and Studio but seems like my class didn't get read. Kindly suggest and find below snippet of code;
public void applySecurity(PortletRequest request, MDEXState mdexState, Query query)
throws MDEXSecurityException
init(request);
String remoteUser = request.getRemoteUser();
String recordFilterExpression = "XX";
if(recordFilterExpression != null) {
DataSource ds;
try {
ds = new DataSource(request, mdexState.getId());
try {
ExpressionBase expression = ds.parseLQLExpression("FND_USER_NAME='" + remoteUser + "'");
DataSourceFilter dataSourceFilter = new DataSourceFilter(expression);
} catch (Exception f) {
throw new MDEXSecurityException("Unable to apply Expression", f);
} catch (DataSourceException e) {
throw new MDEXSecurityException("Unable to create DataSource", e); -
Hot spot for field based on field value
Hi,
Im using ALV list to display report. And I have enable hot spot for that field based on field value. For example, If the field has value " 0 " then hotspot should be enabled for that field. If the field has value " 1 " then it should be displayed as normal field without hotspot.
Can anyone tell me how to do this?
Thanks,
AmalHi Amal
Do this
In your final internal table
add a table type
gi_cellstyles TYPE lvc_t_styl
Then (while populating output)
FORM prepare_edit_output.
* say your field is 'field'
DATA : lw_stylerow TYPE lvc_s_styl,
li_styletab TYPE lvc_t_styl.
IF gw_output-field = '0'.
CLEAR lw_stylerow.
lw_stylerow-fieldname = 'FIELD'.
lw_stylerow-style = cl_gui_alv_grid=>mc_style_hotspot.
APPEND lw_stylerow TO li_styletab.
ELSEIF gw_output-field = '1'.
CLEAR lw_stylerow.
lw_stylerow-fieldname = 'FIELD'.
lw_stylerow-style = cl_gui_alv_grid=>mc_style_hotspot_no.
APPEND lw_stylerow TO li_styletab.
ENDIF.
INSERT LINES OF li_styletab INTO TABLE gw_output-gi_cellstyles.
ENDFORM.
In your layout building
gw_layout-stylefname = 'GI_CELLSTYLES'.
Pushpraj -
How to capture the entries based on filter values in oo alv..
Hi all,
I have a scenario in my oo alv report, when the user select the any column on report and selects the filter option. In that the user can enters required values. Based on filter values the output will be displayed. Now how can i capture currently displaying entries on report.
Thanks,
AshokHi Jozef,
Is that GET_FILTERED_ENTRIES( ) reads the indexes or values from the entries..?
Thanks,
Ashok -
Brf+ workflow configuration based on field values of UI
Hello Experts,
I would like to know if we can configure the BRF+ workflow steps for material to go to certain users based on certain values from UI fields . For example a particular material type (FERT) should go to specific processor . Can I add material type column in BRF+ for materials and assign specific material type values and assign users to that step. Is this possible?.
Thanks.This is one of the most common questions. It will save you time if you perform some research before asking. Any way, review this document: How to-Master Data Governance for Material: BADI USMD_SSW_RULE_CONTEXT_PREPARE to Enhance User Determination which addresses your exact question.
Also, for any future MDG questions, please take a look first at this document Configuration and Enhancement of SAP Master Data Governance as it contains many of the commonly required enhancements. -
Hide one row on Advanced List Pane based on field value
Hello everyone,
I have a question for you:
Is it possible to hide one row on an Advanced List Pane based on the value of a field of that row?
Here is the actual case:
I have a custom B.O. called "Product Group". This B.O. has an Internal ID and a Description at Root level.
In this B.O. I have a One-Too-Many node called "Descriptions".
On the T.I. of the Product Group there is a tab called "Other Languages". On this tab a user can provide translations for numerous languages for the Product Group Description.
When you create a new Product Group a translations is automatically added for the Current User Log On Language.
Now I want to hide that row in the Advanced List Pane and only show the translations where the "Target Language" is DIFFERENT from the Current User Log On Language.
So in the screenshot above you see we have 3 translations: "Bébé" (FR), "Baby" (EN) and "Bebé" (ES).
Now I want to hide the "Baby" (EN) translation if the Current User Log On Language is English, hide "Bébé" (FR) translation if the Current User Log On Language is French, etc. ...
The Advanced List Pane is currently bound to Descriptions node.
Thanks & Regards,
GlennHello Glenn,
Please refer the below video.
SAP Cloud Dev: Extensibility and Dynamic UI - Part 1 - YouTube
Here Dynamic UI is achieved for input field. You can create transient radio button for each possible records, check the User Logon Data and uncheck the radio button specific to it.
Regards,
Chandan -
Mapping requirment based on field value
Hi All,
I have a mapping requirement
where in the file i have a 2 AM records as shown
AM U 00000000000010000C
AM X 00000000000120000
Based on AM-03 field i..e,, AM-03 = 'C'
then to the target field i need to pass the value(00000000000120000) of next AM02 record.
so when ever AM03 filed is 'C' then i need to pass the value of next AM record.
can any body suggest me how i it can be acheived.
Thanks
Sai_SHAi am not sure whether i have understood ur req correctly or not..
but u can chk this UDF in ur mapping:
execution type: all values of a context
if(var1[0].equals("C"))
result.addValue(var2[1]);
filed3---removecontext
UDF----target
field2---removecontext -
Required Fields based on field value
I am using Acrobat 9.1 Std. This is what I am trying to accomplish I have four text fields that I want to make required based on the selection of a radio button group.
I have two radio buttons on the form w/ the same name w/ the button value set to Yes for one and No for another. If the radio button w/ value Yes is selected I want to set the four text fields to required. If the radio button value is No the text fields should be optional.
Ive found similar postings for what I am trying to accomplish; however, I havent had any success in getting it to function correctly.Some more information on what I have tried..For simplicity Im just trying to get one text field to work, then I can repeat the java code for the other text fields.
In acrobat Standard 9.1 I go to Forms Add or Edit Fields from there I select the radio button group (contains two radio buttons) on the left column and select properties. Then on the radio button properties dialog box I select the Actions tab. Set the Trigger for Mouse Up and the Action for Run a JavaScript . I click the Add button and enter the following into the JavaScript editor:
if (this.rawValue == "Yes") {
TextField1.validate.nullTest = "error";
xfa.layout.relayout();
else {
TextField1.validate.nullTest = "disabled";
xfa.layout.relayout();
I then close the JavaScript editor, save the form and re-open to test it. I select the radio button w/ value Yes and click the Submit button and the form goes on to submit. At this point I would expect it to error because I didnt fill in any value for TextField1.
I also tried altering the field tag with the below java:
if (this.rawValue == "Yes") {
TextField1.mandatory = "error";
xfa.layout.relayout();
else {
TextField1.mandatory = "disabled";
xfa.layout.relayout();
This also didnt work. Im not sure if I am using the correct tag or not or why I am unable to get the text field to become required for submission.
Any help would be greatly appreciated.
Thanks, -
Hiding a subform based on field value.
Dear Friends!
I am trying to hide one subform when I have certain value in text field. I tried following code but it didnt help me at-all. will it be possible for you to show my my mistake.
the business case is I am not supposed to display Form 16 related information in payslip when payroll areas are 13 & 14 for other payroll areas form 16 should display. here subformname is Form16.
code:
data.#pageSet[0].Page1.Form16.Form16::ready:form - (JavaScript, both)
IF(data.page1.payslipheader.GV_ABKRS.rawValue == 13);{
Form16.presence = "hidden";
IF(data.page1.payslipheader.GV_ABKRS.rawValue == 14);{
Form16.presence = "hidden";
above code is not hiding Form16 subform.
thanking you
Regards
NaimHi Soumik,
that is a easy issue. Create a condition, where you ask the value, if it is initial.
In this discussion, exact your question is solved.
Adobe forms: Hide table rows based on data
or here is another way to solve your issue
Hiding a table column for a particular condition
This is the code you need:
if ( this.yourvalue.rawvalue == " " )
this.presence = "hidden";
Please use the search, which is located in the upper right corner of SCN before open a discussion.
Here you can learn more about it:
How to use SCN search
Regards
Florian -
Restricting key figure based on - INPUT value or value in TRANSACTION data
Hi fellow BWers, hope you can help with this report requirement.
Manual input variable : 0CALMONTH.
<b>Is it possible to restrict a key figure (0amount) like this on-the-fly: </b>
If 0calmonth in input variable > 0calmonth in transaction data
then restrict 0amount with 0calmonth from input variable
else restrict 0amount with 0calmonth from transaction data
It's a must-have requirement to do it 'on the fly', not in the ETL.
Thanks very much,
AGThanks a lot, I get the idea
In order to get the 0calmonth from the transaction data, i need to :
1. display the lowest granularity in the rows (so that calmonth is unique)
2. then use formula variable with replacement path on the infoobject 0CALMONTH to get the value from transaction data?
Is this correct?
If yes...since the user does not want the lowest granularity in the report, he wants result pr. profit center, this will happen if I take 'No display' on the characteristics :
Profit center A || 20
Profit center A || 30
Profit center A || 10
Profit center B || 15
<b>Question</b> How do I get the total pr. profit center, despite having all the other characteristics (hidden) in the row?
Thanks
AG -
Restrict Delivery Entry based on Sales Order Delivery Date
Dear All,
I create a Sales Order with a Specific Delivery Date say 15 Dec 2010. The System must prompt me if I try to Create a Delivery Document Based on the Sales Order before 15 Dec 2010.
Does it happen in standard system / Can it be achieved by SDK.
Please Advice
ThanksHi Aslam,
If you want to Block the delivery document to post before the define delivery date in sales order than you can use the below Procedure...
If @object_type = '15' and @transaction_type in ( 'A')
BEGIN
if exists (select * from odln a inner join dln1 b ON a.DocEntry=b.Docentry
inner join ordr c on b.basetype=c.objtype
where a.DocEntry=@list_of_cols_val_tab_del
and b.basetype='17' and a.docdate<c.docduedate )
begin
SET @error = 00001
SET @error_message = N'Delivery can not be enter before delivery date '
end
end
Hope it will work
Regards,
Atif -
Filtering out rows based on field value
Hello,
I have something like this:
create table stuff
avalue varchar2,
anothervalue varchar2,
thirdvalue varchar2,
anumber number
INSERT INTO stuff Values('abc', 'cde', efg', 2);
INSERT INTO stuff Values('abc', 'cde', efgggg', 4);
INSERT INTO stuff Values('abc', 'xxx', efg', 1);
INSERT INTO stuff Values('abc', 'xxx', efgxxx', 2);
INSERT INTO stuff Values('abc', 'yyy', efg', 2);
I would like to recieve the rows with the higest 'anumber'-value, grouped by 'avalue', and 'anothervalue' (but not 'thirdvalue'). So in this example I want row 2, 4 and 5.
Anyone have an idea? I'm thinking a 'order by desc' is not the best way here?select avalue,
anothervalue,
thirdvalue,
anumber
from (
select s.*,
rank() over(partition by avalue,anothervalue order by anumber desc) rnk
from stuff s
where rnk = 1
AVALUE ANOTHERVAL THIRDVALUE ANUMBER
abc cde efgggg 4
abc xxx efgxxx 2
abc yyy efg 2
SQL> SY. -
Howto select all entries with two fields value
Hi all,
I have the following SELECT stmt:
SELECT SUM( betrw )
INTO l_real_t
FROM dfkkop
WHERE opbel = l_opbel
AND hvorg <> gc_hvorg_dun_fee
AND tvorg <> gc_tvorg_dun_fee.
Now I get no lines, where hvorg = gc_hvorg_dun_fee OR tvorg = gc_tvorg_dun_fee.
But my intention is to get no lines, where BOTH conditions are met.
What am I doing wrong here?
Kind Regards, MatthiasCheck this..
SELECT SUM( betrw )
INTO l_real_t
FROM dfkkop
WHERE opbel = l_opbel
AND NOT ( hvorg EQ gc_hvorg_dun_fee
AND tvorg EQ gc_tvorg_dun_fee). -
Change the row colors based on column values in MOSS 2007.
Hi Team,
I am using MOSS 2007 environment. In that I am having one SharePoint list. In that list based on column values rows colors need to change.
Kindly help me anyone on this.
Thanks,
AshokHi Ashok,
Please follow the below link:
http://www.contentmaster.com/sharepoint-2010/conditional-formatting-of-list-views-for-sharepoint-2010-changing-the-font-colour/
http://sharepoint.stackexchange.com/questions/7478/highlight-row-color-based-on-field-values-in-sharepoint-2010-list-view
Best Regards,
Brij K -
Fill DDL based on other field values in offline interactive adobe form
Hi,
I have a requirement where in i need to fill the values for a dropdown list based on 3 other field values in offline adobe interactive forms which uses web service to interact with SAP.
Note: I read many blogs and posts in SDN , but couldn get much info ab the same, so posting a new thread.
Thank you.
Regards,
SoumyaHi Soumya,
It is possible but a little bit tough and will make your form heavier.
The solution is advisable only when there is not very much data required for the drop down(May be not more than 500 values as it will create performance issue).
You can create a hidden table on the form contaning data for all the combinations. Depending on the selection of another 3 fields you can write the code to select only those values from this hidden table which are applicable to that selection. These values you can add to the drop down list removing the previous values.
Only you have to do is on calculate or vlaidate event of target DDL you have to write your code.
Pseudocode:
1. Clear your DDL using deleteItem() method.
2. Loop at your hidden table.
3. Inside the loop check for applicable entries depending on selection in other 3 fields.
4. Select the appropriate vlaues
5. Add using additem method().
Refer formCalc or JavaScript help for the appropriate code.
Hope this will be helpfull.
Regards,
Vaibhav
Maybe you are looking for
-
Printing in Acrobat X gives an extra unwanted line in the bottom margin
Printing in Acrobat Reader X gives an extra unwanted line in the bottom margin. This margin should normally be blank. The line pattern follows the pattern of the print inside the margins. How can I print without this extra line?. The problem does not
-
How to do message correlation without using BPEL?
Can message correlation be accomplished in a JCD? I know how to do this in BPEL. Regards.
-
Premiere Elements rotates Portrait Photos in PhotoShop Elements SlideShow
Is there a way to keep the subject rotation from occuring when a SlideShow is passed from PhotoShop to Premiere?
-
Can i run 2 diff elements on same puter.
Is it problematic to run 2 versions of elements on my computer. I have elements 10 installed but really miss my old elements 2 want to put it on also. Will they clash with each other. Thanx in advance for any advice.
-
Wie kann ich dauerhaft die Korrektursprache in pages ändern?
Hallo... Wie oben schon beschrieben würde ich gerne die Korrektursprach in pages dauerhaft in "Englisch" ändern. Unter Pages -> Informationen -> Text kann man ja schon de Sprache auswählen, jedoch muss man das bei jeder neuen Seite und vor allem bei