How to change the label of a link based on a condition in a report.
Hi all,
I have a report, in which i created a link.
i want the the label of the link to change based on a column value.
for eg. i created report based on emp table which has a link on empno .
if the deptno of the employee is 10 i want the link to be displayed as "employee of deptno 10".
if the deptno of employee is 20 or 30 i want the link to be displayed as "others"
Thanks in advance.
One way I've found to do this is to put the condition part into the select statement. Use a decode to determine which link text you want to display, e.g.,
select '<a href="yourlinkhere?employee=' || empno || '">' || decode(deptno,10,'employee of deptno 10','others') || '</a>' emplink from emp;
Similar Messages
-
How to change the insert allowed false dynamically based on some condition
Hi,
I have two data blcoks B1 and B2.
B1 is heade and B2 is detail.
B1 contain one filed PO number based on that user press the button.
Based on PO we get the some fileds in B2 from cursor.
In B2 filed contain total 5 fields. 4 fields come from cursor button. remaining one field user will enter.
My requirement is afte the getting the records from cursor. I need to not allowed to create new records.
Please do the needful.902434 wrote:
Hi,
I have two data blcoks B1 and B2.
B1 is heade and B2 is detail.
B1 contain one filed PO number based on that user press the button.
Based on PO we get the some fileds in B2 from cursor.
In B2 filed contain total 5 fields. 4 fields come from cursor button. remaining one field user will enter.
My requirement is afte the getting the records from cursor. I need to not allowed to create new records.
Please do the needful.As per i understand you want on block b2 insert allowed false.
Try this
If your_condition then
SET_BLOCK_PROPERTY('block_name', INSERT_ALLOWED, PROPERTY_FALSE);
else
SET_BLOCK_PROPERTY('block_name', INSERT_ALLOWED, PROPERTY_TRUE);
end if;Hopes this helps.. -
How to change the color of Menu links in obiee
Does anyone knows how to change the colors of Menu links in obiee. With menu I mean the menu links default right top (Search, homepage, Catalogus, Dashboards, new, Open). This should be set in skin and style files, not? I searched a lot. I could not find It. It is now Oracle blue, we want to change this.
obiee 11.1.1.5.
ThanksYou have to customize portal banner and portal content CSS files as needed in OBIEE server.
below links will guide u but will will not tell you exactly but your req can be done by customizing portal content and portal banner CSS files. try to identify the exact code using firebug in mozilla.
http://www.rittmanmead.com/2009/04/customizing-obiee-dashboard-banners/
Customization of login page, banner,logo in obiee11g
Thanks
Jay. -
How to Change the label names in crmd_order
HI Experts
in CRMD_order transaction i want to change the lable names to the following Standard labels is it possible?..
the standard label names are
Standard Label name proposed label name
Sold to Party = XXXXXXXX
Requester = YYYYYYY
Change Manager = AAAAAA
Change Advisory Board= BBBBBBB
I have found one link in sdn,To change the label Names But I am not able to find data element name.
Kindly provide me your valuable guidance on the above issue.
Thanks in advance
Thanks & Regards
AnandHi,
it looks like you want to change the names of the partner functions.
You can do this in the customizing, for example using SPROScenario Specific SettingsService Desk-Service Desk--Partner Determination Procedure (This one works for both ChaRM & Service Desk).
The standard procedure in your case would be SDCR0001.
The recommended way is to define your own Z partner functions and assign them to your own Z Partner Determination Procedure, which you have to replace in the configuration of your transaction type.
Regards,
Christoph -
How to change the label of a total column in pivot view
Hi
Is there a way to change the label of the column created by analytics when calculated row based totals? Currently, it is same as the measure label to be summed.
ThanksHi
Thanks for your help, actually that option works for the total displayed as the latest row, I mean the label for the total row. However, for the total column, the name stays as the same as the measure label.
Can you further help me on the issue?
Thanks -
How to change the label of a component with javascript?
Hi, i need to change the label of a component dinamically. I tried:
if (document.getElementById('P34_ID_OPERACION').value==2) {
document.getElementById('P34_ID_USUARIO_DEST').label = 'Encargado:';
if (document.getElementById('P34_ID_OPERACION').value==3) {
document.getElementById('P34_ID_USUARIO_DEST').label = 'otro texto:';
but doesn't work.
any ideas?
Edited by: Andres Vilallave on 16-mar-2010 12:49Hi,
I think "label" is not valid attribiute for "input" tag.
Create new hidden item P34_LABEL. For item 'P34_ID_USUARIO_DEST', put label value as +&P34_LABEL.+
Now try the following JS
<script>
if (document.getElementById('P34_ID_OPERACION').value==2) {
document.getElementById('P34_LABEL').value = 'Encargado:';
if (document.getElementById('P34_ID_OPERACION').value==3) {
document.getElementById('P34_LABEL').value = 'otro texto:';
</script>Cheers,
Hari -
How to change the UI of Community Links portlet
In WCI 10gR3, how could I change the UI of the Community Links portlet? Basically, I do not want the community icons next to my to-be-linked Community Pages list; All I want is just a heading like Quick Links and the links below.
I would like to add another question about the Community Links portlet; is it possible to modify it so that it can have indentation (ie: categories/subcategories, like a bullet list)? Is there some other portlet available that would allow links to have some kind of categorization rather than appear only non-hierarchically?
-
How to change the Label of input text box after selecting a value in LOV.
Hi All,
I have a requirement that after selecting a value in LOV the Label of the next input text box should change accordingly.
I am able to do cascading LOV's.
how can i meet this requirement?
TIA,
VishalSample:
JSPX Page:
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1">
<af:messages id="m1"/>
<af:form id="f1">
<af:panelFormLayout id="pfl1">
<af:inputText value="#{bindings.FirstName.inputValue}"
label="#{bindings.FirstName.hints.label}"
required="#{bindings.FirstName.hints.mandatory}"
columns="#{bindings.FirstName.hints.displayWidth}"
maximumLength="#{bindings.FirstName.hints.precision}"
shortDesc="#{bindings.FirstName.hints.tooltip}"
id="it1" *binding="#{ForumSampleBean.inputText}"*
*partialTriggers="departmentIdId">*
<f:validator binding="#{bindings.FirstName.validator}"/>
</af:inputText>
<af:inputComboboxListOfValues id="departmentIdId"
popupTitle="Search and Select: #{bindings.DepartmentId.hints.label}"
value="#{bindings.DepartmentId.inputValue}"
label="#{bindings.DepartmentId.hints.label}"
model="#{bindings.DepartmentId.listOfValuesModel}"
required="#{bindings.DepartmentId.hints.mandatory}"
columns="#{bindings.DepartmentId.hints.displayWidth}"
shortDesc="#{bindings.DepartmentId.hints.tooltip}"
*autoSubmit="true"*
*immediate="true"*
*valueChangeListener="#{ForumSampleBean.lovValueChangeListener}">*
<f:validator binding="#{bindings.DepartmentId.validator}"/>
<af:convertNumber groupingUsed="false"
pattern="#{bindings.DepartmentId.format}"/>
</af:inputComboboxListOfValues>
</af:panelFormLayout>
</af:form>
</af:document>
</f:view>
</jsp:root>
*Managed Bean:*
public class ForumSampleBean {
private RichInputText inputText;
public ForumSampleBean() {
super();
public void setInputText(RichInputText inputText) {
this.inputText = inputText;
public RichInputText getInputText() {
return inputText;
public void lovValueChangeListener(ValueChangeEvent valueChangeEvent) {
*this.inputText.setLabel("New Label");*
Thanks,
Navaneeth -
How to change the colour of row in ALV depending on condition?
Hi All,
I want to change the color(from green to red )of perticular row in ALV depending on certain conditions like if amount in some field in row is more than 5000.
Can anybody please tell me how to do that?
expecting early reply.
Thanks in advance,
Rohini.Hi
Check this sample report
*& Report ZALVCOLOR *
REPORT ZALVCOLOR .
DATA : mara TYPE mara. " General Material Data
TYPE-POOLS: slis. " ALV Global types
FIELD-SYMBOLS :
<data> TYPE table. " Data to display
SELECT-OPTIONS :
s_matnr FOR mara-matnr. " Material number
SELECTION-SCREEN :
SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max. "#EC NEEDED
PARAMETERS p_max(2) TYPE n DEFAULT '50' OBLIGATORY.
SELECTION-SCREEN END OF LINE.
INITIALIZATION.
v_1 = 'Maximum of lines to display'.
START-OF-SELECTION.
PERFORM f_read_data.
PERFORM f_display_data.
* Form f_read_data
FORM f_read_data.
FIELD-SYMBOLS :
<field> TYPE ANY,
<field2> TYPE ANY,
<header> TYPE ANY,
<header2> TYPE ANY,
<lt_data> TYPE table. " Data read from DB
DATA:
lp_struct TYPE REF TO data,
lp_struct2 TYPE REF TO data,
lp_table TYPE REF TO data, " Pointer to dynamic table
lp_table2 TYPE REF TO data, " Pointer to dynamic table
ls_lvc_cat TYPE lvc_s_fcat,
lt_lvc_cat TYPE lvc_t_fcat. " Field catalog
* First column
CLEAR ls_lvc_cat.
ls_lvc_cat-fieldname = 'MATNR'.
ls_lvc_cat-ref_table = 'MARA'.
APPEND ls_lvc_cat TO lt_lvc_cat.
* 2nd column
CLEAR ls_lvc_cat.
ls_lvc_cat-fieldname = 'MAKTX'.
ls_lvc_cat-ref_table = 'MAKT'.
APPEND ls_lvc_cat TO lt_lvc_cat.
* 3rd column
CLEAR ls_lvc_cat.
ls_lvc_cat-fieldname = 'MATKL'.
ls_lvc_cat-ref_table = 'MARA'.
APPEND ls_lvc_cat TO lt_lvc_cat.
* Create 1st internal table
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING it_fieldcatalog = lt_lvc_cat
IMPORTING ep_table = lp_table.
ASSIGN lp_table->* TO <lt_data>.
* Read data into 1st internal table
SELECT matnr maktx matkl
INTO TABLE <lt_data>
FROM v_matnr
UP TO p_max ROWS
WHERE matnr IN s_matnr.
* Create 2nd internal table
* Checkbox
CLEAR ls_lvc_cat.
ls_lvc_cat-fieldname = 'CHECKBOX'.
APPEND ls_lvc_cat TO lt_lvc_cat.
* Table color
CLEAR ls_lvc_cat.
ls_lvc_cat-fieldname = 'TABCOLOR'.
ls_lvc_cat-ref_table = 'CALENDAR_TYPE'.
ls_lvc_cat-ref_field = 'COLTAB'.
APPEND ls_lvc_cat TO lt_lvc_cat.
* Create 2nd internal table
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING it_fieldcatalog = lt_lvc_cat
IMPORTING ep_table = lp_table2.
ASSIGN lp_table2->* TO <data>.
* Create structure = structure of the 1st internal table
CREATE DATA lp_struct LIKE LINE OF <lt_data>.
ASSIGN lp_struct->* TO <header>.
* Create structure = structure of the 2nd internal table
CREATE DATA lp_struct2 LIKE LINE OF <data>.
ASSIGN lp_struct2->* TO <header2>.
* Move data from 1st internal table --> 2nd internal table
LOOP AT <lt_data> ASSIGNING <header>.
DESCRIBE TABLE lt_lvc_cat.
CLEAR <header2>.
* Fill the internal to display <data>
DO sy-tfill TIMES.
READ TABLE lt_lvc_cat INTO ls_lvc_cat INDEX sy-index.
* For each field of lt_lvc_cat.
ASSIGN COMPONENT ls_lvc_cat-fieldname OF STRUCTURE <header>
TO <field>.
IF sy-subrc NE 0. EXIT .ENDIF.
ASSIGN COMPONENT ls_lvc_cat-fieldname OF STRUCTURE <header2>
TO <field2>.
IF sy-subrc NE 0. EXIT .ENDIF.
<field2> = <field>.
ENDDO.
* Modify color
ASSIGN COMPONENT 'TABCOLOR' OF STRUCTURE <header2>
TO <field2>.
IF sy-subrc EQ 0.
PERFORM f_modify_color USING 'MAKTX' <field2>.
PERFORM f_modify_color USING 'MATKL' <field2>.
ENDIF.
APPEND <header2> TO <data> .
ENDLOOP.
ENDFORM. " f_read_data
* Form F_DISPLAY_DATA
FORM f_display_data.
* Macro definition
DEFINE m_sort.
add 1 to ls_sort-spos.
ls_sort-fieldname = &1.
ls_sort-down = 'X'.
append ls_sort to lt_sort.
END-OF-DEFINITION.
DATA:
ls_layout TYPE slis_layout_alv,
lt_sort TYPE slis_t_sortinfo_alv,
ls_sort TYPE slis_sortinfo_alv,
ls_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat TYPE slis_t_fieldcat_alv. " Field catalog
* Build Fieldcatalog - First column
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'MATNR'.
ls_fieldcat-ref_tabname = 'MARA'.
ls_fieldcat-key = 'X'.
APPEND ls_fieldcat TO lt_fieldcat.
* Build Fieldcatalog - 2nd column
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'MAKTX'.
ls_fieldcat-ref_tabname = 'MAKT'.
APPEND ls_fieldcat TO lt_fieldcat.
* Build Fieldcatalog - 3rd column
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'MATKL'.
ls_fieldcat-ref_tabname = 'MARA'.
APPEND ls_fieldcat TO lt_fieldcat.
* Layout
ls_layout-zebra = 'X'.
ls_layout-colwidth_optimize = 'X'.
ls_layout-box_fieldname = 'CHECKBOX'.
ls_layout-coltab_fieldname = 'TABCOLOR'.
m_sort 'MATNR'. " Sort by creation date
* Display data
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
is_layout = ls_layout
it_fieldcat = lt_fieldcat
it_sort = lt_sort
TABLES
t_outtab = <data>.
ENDFORM. " F_DISPLAY_DATA
* Form F_modify_color
FORM f_modify_color USING u_fieldname TYPE lvc_fname
ut_tabcolor TYPE table.
DATA:
l_rnd_value TYPE datatype-integer2,
ls_tabcolor TYPE lvc_s_scol.
* Random value
CALL FUNCTION 'RANDOM_I2'
EXPORTING
rnd_min = 0
rnd_max = 3
IMPORTING
rnd_value = l_rnd_value.
CLEAR ls_tabcolor.
ls_tabcolor-fname = u_fieldname.
CASE l_rnd_value.
WHEN 0.
ls_tabcolor-color-col = 1. " Blue.
ls_tabcolor-color-int = 0.
ls_tabcolor-color-inv = 0.
WHEN 1.
ls_tabcolor-color-col = 3. " Yellow.
ls_tabcolor-color-int = 0.
ls_tabcolor-color-inv = 0.
WHEN 2.
ls_tabcolor-color-col = 5. " Green.
ls_tabcolor-color-int = 0.
ls_tabcolor-color-inv = 0.
WHEN 3.
ls_tabcolor-color-col = 6. " Red.
ls_tabcolor-color-int = 0.
ls_tabcolor-color-inv = 0.
ENDCASE.
INSERT ls_tabcolor INTO TABLE ut_tabcolor.
ENDFORM. " F_MODIFY_COLOR
Reward all helpfull answers
Regards
Pavan -
How to change the values in custom profiles based on security group ??
Hi,
i am facing problem for my requirement, can anybody help me for below scenario...
i have custom check in profiles , there are content types and sub types. sub type nothing but a categories on for particular content type. For example i have News content type , same in the below subtypes drop down list are press release, events, articles etc.
what i want to do is, when i open custom checkin profile, subtype values need to be changed( some values in subtype should hide) based on security group changes .
In the Sub type listed values, some values need to hide only when i choose different security groups.. sub types values should display based on the particular security group only. when ever i change the security group, drop down Values in subtypes needs to change.
hope understand my requirement.
How to achieve this task. Any help would be greatly appreciated.
Thanks,
ytHi,
Thanks alot. its working fine
Can we configure DCL Relation two times in one information filed ??? i should not create not more than fields to this requirement.
Type -> subtype = DCL already existed
Now, i want to Create DCL to
Subtype ---> Security group
As per my requirement, if i change the security group in checkin form, values should be change in the SubType drop down list.
Created checkin profile there was DCL relation to " Type and "Sub Type" . now i want to map Relation ( DCL ) for subtype to security group.
i was trying do for DCL for subtype and security group. but there was already existing DCL created for subtype information field (Relation configuration done for content type). even though i was trying to do for DCL in Security group information field. but, i could not find security group information field in configuration manager.
Now what should i do ?? how to create DCL to subtype and security group ??
Help would be appreciated.
yt -
How to change the column header name dynamically based on sysdate
Post Author: senthi_gokul
CA Forum: WebIntelligence Reporting
Dear All,
i have designed some reports. i would like to change the column header dynamically based on sysdate. up to 24 months. can u help me, which add month function using the universe. i dont know if-then-else function is having the universe tool or not?Post Author: prasingh
CA Forum: WebIntelligence Reporting
Are you saying you are not able to create an object by value (select: statement) as sysdate and put it onto the headers of your report? You can use the add_months() function on the object to add the numbers of months you wish.
Please let me knnow for more.. You can get in touch with me on [email protected] for quick reply. -
How to change the Mobile Application Download link
i have deploy the MDSD mobile application using SDM
and assigned it to a mobile device .. but when making synchronization ... the mobile couldn't install the application because of the download link contains the hostname ... which is unknown to the mobile device
in the mobile administartor -> mobile applications
my application has the following download link
WEBSERVER http://imi:53000
WEBPATH /meContainerSync/servlet/com.sap.ip.mi.http.MobileComponentServlet
Application=sap.com_MDSD_2&Type=APPLICATION&Runtime=AWT
DOWNLOAD LINK http://imi:53000/meContainerSync/servlet/com.sap.ip.mi.http.MobileComponentServlet?Application=sap.com_MDSD_2&Type=APPLICATION&Runtime=AWT
but imi is not known to the mobile device ... how can i change it to IP address in the WEBSERVER ????
please helpi have solved it by adding Web Dispatcher Value to the Mobile Component
Thank you -
How to change the values in an LOV based on values selected in another LOV
Hi,
I have a requirement in ADF where there are two LOVs. Based on the values that I select in the 1st LOV, the values in the second LOV should change dynamically.
Also, the 1st LOV accepts 3 values, for every value I select, a different query is executed to populate the 2nd LOV.
I have a rough thought that I can use 3 different read only view objects containing these 3 queries. And based on the value I select in the 1st LOV I can execute the corresponding View object from the backing bean. But my doubt is how to link the results of that query that is executed to populate the 2nd LOV.
Thanks in advance.
Edited by: 886591 on Sep 21, 2011 4:48 AMHi Brisk,
Thanks for your reply.
The link that you have provided explains how to disable and enable the other LOVs based on a parent LOV. But in my case there are two Select One Choice fields i.e. the dropdowns (sorry that I addressed it as LOV in my previous post which might be confusing). There are 3 static values in the parent dropdown where each of them are associated with a different query. for e.g if the three values in the drop down are A, B and C; if i select A, then query associated to A should be executed ; if i select B, then query associated to B should be executed and if I select C, query associated to C should be executed. Then the output attribute of that query should be populated in the child dropdown.
Please let me know about the solutions to this.
Thanks,
Kavitha -
How to change the TOC button?
Hi!
I´d like to change the TOC button. In former versions its simply with four lines on it, with version 8 it´s labeled with "TOC". Can I get the lines back??
And how do I change the label for bookmarks? (right beside the small bookmark icon it says "title", but I´d like to label it "content" or something else)
Thanks!Still don´t know how to change the label for bookmarks in TOC ...
But I found the solution for changing the TOC button: somewhere in the program folder are FLA-files for the different skins. Choose the FLA corresponding to your selected skin, open it with Flash and check the library for the button you want to change. Doubleclick in the library and create anew (I changed the "TOC" into three lines). Export SWF and then take care to put it where the original skin SWF is located. Voilá!
Hopefully someone can tell me a way to change the label ;-) -
How to change the QueryRowSet in early access 2?
hi everybody,
I do know how to change the query but I want to add a condition on a variable got from a text field, and use by button action.
I don't know where to initialize this variable exactly?
provided that the query is created in the session bean.
please, reply as soon as possible.
thanx.Hi,
The tutorials under the section Access Databases will answer your question. In particular the tutorial "Using Databound Components to Access Databases". These tutorials can be found at:
http://developers.sun.com/prodtech/javatools/jscreator/ea/jsc2/learning/tutorials/index.html
Please post any further Creator 2 EA 2 related queries at:
https://feedbackprograms.sun.com/login.html
Cheers
Giri
Maybe you are looking for
-
How can i print a document attached to a email from my icloud email address??
I am trying to print out a document from my icloud email but Im not sure I i can do that?? is it possible?
-
How to identify recurring instance of a report using Query Builder
Hi, I am having a report scheduled for four different set of parameters. I want to identify the instances pertaining to each schedule. I tried the last successful instance but it gives only the last instance detail. Kindly help me Thanks and Regar
-
Video slows down after adding text
hello, would appreciate any pointers to solve my problem.....every time i add text to my video project, the video will play very slowly (jerks) until the text ends. this never happened before as my previous projects ran smoothly even with transitions
-
Trouble with editing and adding contacts
Hi everyone, I cannot add or edit my contacts inmy 8520, the message says: uncaught exeption net_rim_bb_addressbook_app(286) process terminated. Some of my friends says its the OS needed to be upgraded. Please help to resolve the message - uncaught
-
Anyone having problems playing Toy Story 3 - iTunes Extras ?
I've downloaded Toy Story 3 and the iTunes Extras won't work on my Apple TV. It all plays fine on my iPad & MPB. Deleted the iTunes extras file and it plays on ATV. I raised with iTunes support who sent the file down again, however 2nd version also d