Label based on another attribute
Hello
JDev 11.1.2.4
I would like to set up in the model of the label, according to the value of another attribute of EO. I have
Contains IsLegal which can Y or N
The lable of NameLine1 must match the name if is legal is Y and first name if IsLegal is N.
Is it possible to configure such behavior in the model?
Thank you
@kdario have already said it, the first solution that I gave was for 12.1.3. Sorry I don't check in your version. However, if you read the blog, you will find ADF practice: Groovy Expressions in the properties of the attribute custom is a solution for your version.
Timo
Tags: Java
Similar Questions
-
BC4J editable attribute based on another attribute
Hello.
Is it possible to define updatable (read-only) on BC4J, based on another column. For example if attribute a == true which attribute the (Always) b.setUpdatable of other b.setUpdatable (Never). By definition, changing Updatable property to EO/VO for each line is an absurdity. Or not?
I know how to do it on ViewController (set ReadOnly property expression EL provided you attribute a different value) but don't know how to do (if it is possible) on model?
THX
Concerning
Zmedazmeda,
You can override isAttributeUpdatable() on your EntityImpl or ViewRowImpl classes
John
-
How to remove nodes based on its attribute?
Sorry, I'll stop asking that much in the forum and try it myself, but I have another problem. . I would like to be able to remove a node based on its attribute 'id' to the node "ads". ?????
Here's the xml script:
< page id = "Page1" >
< ads id '0' = >
File1 < adfile > < / adfile >
< adwidth > 1 < / adwidth >
< adheight > 50 < / adheight >
< adposx > 212 < / adposx >
< adposy > 375 < / adposy >
< / ads >
< ads id = "1" >
File2 < adfile > < / adfile >
< adwidth > 1 < / adwidth >
< adheight > 50 < / adheight >
< adposx > 7 < / adposx >
< adposy > 69 < / adposy >
< / ads >
< ads id = "2" >
< adfile > file3 < / adfile >
< adwidth > 1 < / adwidth >
< adheight > 50 < / adheight >
< adposx > 83 < / adposx >
< adposy > 303 < / adposy >
< / ads >
< / print this page >
< / pages >I tried that, but it did not work:
function deleteme(evt:MouseEvent):void {}
var who_Id:int = evt.target.parent.parent.id; just to get the identification number
var who:String = evt.target.parent.parent.name;
this.removeChild (evt.target.parent.parent);
This.evt.Target.parent.parent = null;
Delete Pages.page.adverts. (@id == who_Id); can change by a number of test who_Id
trace (pages);
}It could be a simple as:
delete xml.page.adverts [who_Id];
But once that a node is deleted names numbers would correspond more is the number of the node.
Then maybe you're looking for this:
var xml =
File1 1 50 212 375 File2 1 50 7 69 file3 1 50 83 303 var who_Id:int = 1;
for (var i: Number = 0; i< xml.page.adverts.length();="" i++)=""> >
If (xml.page.adverts[i].@id==String (who_Id)) {}
delete xml.page.adverts [i];
}
}
trace (XML);
-
Hello world
The task seems simple enough, but I have not found a way to populate an attribute transitional according to the value of another attribute when the line is queried. What is the best way to achieve this?
Thank you.
James
Use VORowImpl, if you have any transient attributes defined in the view object, whose value is derived from other attributes of the line, you can override the GET
method and add logic there Please note that this class represents a row in the results collection in a display object.
-
The Dimension members based on the attribute filtering
Hi all
In Hyperion Planning 11.1.2.2 classic Application, is there a way by which we can display values of members on data based on the attribute form; for example
If we have the dimension entity having the list of universities and corresponding attribute category have values as medical, General and engineering.
I want only members of entities on form having value attribute equal to the General category.
Check this box: Selection of members
See you soon... !!
Rahul S.
-
Display list items based on another element of the list
Hi all
I want to display the list item based on another element of the list, but his does not work.
This is my code:
/ * WHEN-NEW-FORM-INSTANCE * /-his work.
DECLARErg_district recordgroup;
rg_name VARCHAR2 (40): = "district";
vtemp NUMBER;
BEGIN
rg_district: = FIND_GROUP (rg_name);
IF ID_NULL (rg_district)
THEN
rg_district: =.
CREATE_GROUP_FROM_QUERY (rg_name,
'select dist, dist district_mas.
);
vtemp: = POPULATE_GROUP (rg_district);
POPULATE_LIST ('BLOCK3.) Of RIDING ", rg_name);
END IF;
END;
* / CHANGED AFTER a - list * /-does not work. Cannot complete the list based on the list
DECLARE
rg_branch recordgroup;
rg_name1 VARCHAR2 (1000): = "branch";
vtemp NUMBER;
BEGIN
rg_branch: = FIND_GROUP (rg_name1);
IF this is ID_NULL (rg_branch)
THEN
DELETE_GROUP (rg_name1);
rg_branch: =.
CREATE_GROUP_FROM_QUERY
("rg_branch",
"SELECT FROM dist_branch WHERE district IN branch (DIST DISTRICT_MAS WHERE DISTRICT = SELECT').
|| : BLOCK3. DISTRICT OF
);
vtemp: = POPULATE_GROUP (rg_branch);
POPULATE_LIST ('BLOCK3.) Branch of THE ', rg_branch);
END IF;
END;
Table:
CREATE TABLE DISTRICT_MAS
(
DIST VARCHAR2 (100 CHAR)
);
CREATE TABLE DIST_BRANCH
(
NEIGHBORHOOD VARCHAR2 (100 CHAR),
DIRECTORATE GENERAL OF THE VARCHAR2 (100 CHAR)
);
Values:
insert into district_mas values ('chennai');
insert into district_mas values ('coimbatore');
insert into dist_branch values ('chennai', 'chennai_north');insert into dist_branch values ('coimbatore', 'Podanur');
Concerning
Nassik M
I tested the code below when the list has changed
DECLARE
rg_branch recordgroup;
rg_name1 VARCHAR2 (1000): = "branch";
vtemp NUMBER;
QT VARCHAR2 (10): = "';
BEGIN
rg_branch: = FIND_GROUP (rg_name1);
IF this is ID_NULL (rg_branch)
THEN
DELETE_GROUP (rg_name1);
END IF;
rg_branch: =.
CREATE_GROUP_FROM_QUERY
(rg_name1,
'SELECT branch, branch OF THE DISTRICT WHERE the dist_branch =' | QT | : BLOCK3. DISTRICT OF | QT);
vtemp: = POPULATE_GROUP (rg_branch);
POPULATE_LIST ('BLOCK3.) Branch of THE ', rg_branch);
END;
Hope it's work...
Hamid
-
Display of different labels for a single attribute of VO
Hi all
IM using Jdeveloper 11.1.1.7.1.
Here's the issue I'm facing:
IM using a LOV in my user interface that creates its own table of query and the results inside a popup as expected. I need to change the labels one of the attributes used here.
The question I have is the attribute that requires modification is used elsewhere too and he needs a different label in the user interface.
What is the best way to do it?
I planned to make a copy of the attribute in the VO, (only changing the value of the label) but it worked only for label search term that the criteria query view uses 'EO. Attribute' instead of the alias. In other words, that it always retrieves the first label attribute that appears in the VO.
Ive tried to change the bind variable label used in the query - don't see any change.
Thanks in advance,
David
Hello
label are not specific instance so you use different definitions of VO and replace the label at the level of the VO for the attribute
Frank
-
Turn off/on a tabular Form attribute depending on the value selected in another attribute
Dear Experts,
I have
1. an attribute in the form that is a select statement list containing 2 static values:
- Family
- Only
and I have
2 another attribute of tabular presentation that is display text (escape special characters, does not save the State), this attribute is also a link to another page.
My requirement is when I select the family of another select list this attribute must be enabled and when I select one it should be disabled.
Kindly help out me experts!
Thank you and best regards,
Madonna
Hey Madonna,
Please take a look at your page. I added a dynamic action that can be triggered by a change in the Type 'accompany' - selection list. dynamic action to display or hide the link 'Add family' according to the value of the selection list. the code of the dynamic action is as follows:
$('.myClass').each (function () {}
If ($(this).) Val() == 'Family') {}
$(this) .parent () .parent ().find('.open_modal').show)
} else {}
$(this) .parent () .parent ().find('.open_modal').hide)
}
})
where 'myClass' is the class that gave you to the selection list, and the "open_modal" is the class that gave you for the link.
I used a show and hide because you cannot disable a link.
I would like to know if that's what you had in mind.
Kind regards
Vincent
-
How do column filter based on another column
In my report, I have column a thru d. I would like to create a filter based on another column where column is column B. I can enter a value that the column cannot be equal to, but I would use a column instead of a value.
Thank you.
JonathanTry this: icon on the filter columns->-> convert this advanced filter for SQL
You can reference any other columnBTW: Have you had a chance to look at my suggestion for your post
Tables from a Table -
Choose field from the joined table based on another field?
Hello!
Is it possible to select a field in a row of attached table based on another field? Consider the following data in the CVALUES table:
And the following data in the table MDETAIL:ID C1 C2 C3 C4 C5 C6 T1 9.6 10.3 12.4 19.6 19.6 0 T7 9.6 10.4 0 0 0 0 T3 8.2 9.9 11.4 19.6 19.6 0 T8 8.3 10.7 13.5 20.7 0 0 T5 9.4 10.3 12.7 22.9 19.6 0 ...
I want to get the column corresponding to the VALUE field in the table MDETAIL CVALUES. I'm doing this:ID MDATE CNUM ... T1 03/28/2012 18:00:00 4 T1 03/28/2012 18:00:00 1 T8 03/29/2012 06:00:00 6 T8 03/29/2012 06:00:00 5 ...
The CVALUES table records are unique; only one line by ID.SELECT m.t1, m.mdate, CASE WHEN m.cnum = 1 THEN c.c1 WHEN m.cnum = 2 THEN c.c2 WHEN m.cnum = 3 THEN c.c3 WHEN m.cnum = 4 THEN c.c4 WHEN m.cnum = 5 THEN c.c5 WHEN m.cnum = 6 THEN c.c6 END AS cvalue FROM mdetail m JOIN cvalues c ON m.id = c.id
This method works and it's fast, but it's messy code and I think there must be a better way to do it. I use cvalue value in several calculations so each calculation that I use is this giant glob of CASES inside!Hello
With a decoding it would be easier, but as ugly :-)
SELECT m.t1, m.mdate, DECODE( m.cnum , 1 , c.c1, 2, c.c2, 3, c.c3, 4, c.c4, 5, c,c5, 6, c,c6) cvalue FROM mdetail m, cvalues c WHERE m.id = c.id
Success!
FJFranken
-
How to create LOV not based on an attribute of the View object?
Hello
I have created a form of research made hands, and I want to create an af:inputListOfValues.
I have:
-a read-only-view-object to get the values of BD LOV.
-tag af:inputListOfValues (droped component Palette).
How can I create the listOfValuesModel in the layer of links? (the inputListOfValues is not based on an attribute of the View object).Possible solutions.
1. Add a dummy VO in the layer of model with a single attribute. Create LOV to the attribute and use this attribute in your view.
2. OR visit http://andrejusb.blogspot.in/2008/02/list-of-values-component-in-search-and.html -
Delete based on another column dublicate records
How can I remove duplicate records, based on another column.
the table structure
CREATE TABLE IA_EXPORT_LEVEL
(
A_NO VARCHAR2 (22 BYTE),
IM VARCHAR2 (18 BYTE),
ctn_level NUMBER (2)
)
reviews
A_NO IM ctn_level
S1 S1 1
S1 M1 2
S1 h1 3
H2 S2 1
S2 h2 2
S3 h1 2
S3 h1 3
S4 h6 4
S4 h6 5
I want to delete all records other than the minimum value of the ctn_level
output should like below
S1 S1 1
H2 S2 1
S3 h1 2
S4 h6 4
Published by: OraFighter on December 16, 2011 13:44DELETE FROM IA_EXPORT_LEVEL where rowid IN (select rid from (select rowid rid, row_number() over (partition by A_NO,IM order by ctn_level) rn from IA_EXPORT_LEVEL ) where rn > 1 ) /
Hope your question.
-
Get the cumulative values in a single column based on another column in reports
Hi all
I have a requirement to get cumulative values based on another column.I 'Sales rep name' in the first column.
Since there is no rank option in the PivotTable, I do this in the report table.
Correspondent "Values of the invoice line" in the second column.
Want to have cumulative of all the values for each sales invoice line.
Then apply rank and display the top 10 sales reps based on invoice lines.
Looking for the best entries...
Thanks in advance...Try below
2nd column: "name of Sales rep.
column 2: SUM ("invoice line values ' BY 'Name of Sales rep'") and sort this field desc.
3rd column: fx RANK (SUM ("invoice line values" BY "Sales rep name")), to hide this column, so that you don't confuse your users.and put the filter on the 3rd column below 5
I hope this works for you
-
Make a mandatory DFF field based on another field
Hi all
We have a requirement where we need to do a mandatory DFF field based on another field.
example:
FDF has two fields:
Depose1: the values 'Email', 'Fax '.
Depose2
If "Email" is selected in 'Field1' Field2 should become mandatory.
All entries on this will be really useful.
Thank you and best regards,
Satya.Please see old topics that cover the same subject - http://forums.oracle.com/forums/search.jspa?threadID=&q=DFF+AND+mandatory+ANd+Dependant&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Thank you
Hussein -
loop chart - the chart is based on another query
I'm working on a report of BI Publisher. The report displays information for a list of stores (store group, by store - each store page break is a page). Now, we want to add a chart (weekly sales - group per week) for each store, we know there is "table within the group" box, we can use, but our problem is that the chart is based on another query, not the original group by query parent store. Could you please help? Detailed information can be provided if required.Please check your Inbox.
I sent you the answer.See you soon
Jorge
p.s if this answers your question please give the points and close the message
Maybe you are looking for
-
I'm unable to stop "private browsing".
For some reason any Firefox automatically put me under navigation private when I open it. I try to close private browsing, but the option is grayed out. And the problem is that I don't even know if I'm really in private browsing, because it does not
-
Slow download speed after downgrading to Windows 7 64 bit
Hi all! I'm new here! My first laptop is a Toshiba Satellite since 2003. Since then, I got one couple of others.Now I bought a new: Satellite P70-A-11V, a portable professional high-end computer, which came with Windows 8, which I upgraded to 8.1. Un
-
I can only find a link to buy 10.8. Can someone give me a link to buy 10.9?
-
HP ENVY 15 t-j000: block start flashing
So I foolishly tried to update the BIOS such as recommended by the HP software supportI was counting on the hard reset if it don'tHowever, he got stuck on a black screen with blue box saying "starting block flashes - 89%.The power button does not wor
-
My Dell V505 worked fine but now he folds the paper and the printer jams. Can you help me please?