Display the first value in a list after sorting
HelloI'm trying to display a single value in a field in a list of values I want to sort in descending order.
I tried the following code, but it gives me the first record in the list before sorting.
How can I get the first record in the list after the sorting?
<? for each: StatusHistory [position () = '1' and the role = "study Manager"]? > <? sort: created; ' descending '; type_donnees = "text"? > <? choose:? > <? When: created! ='' ? > <? xdofx:substr(created,12,2)? >: <? xdofx:substr(created,15,2)? >: <? xdofx:substr(created,18,2)? > <? end when? > <? otherwise:? > <? end otherwise? > <? end to choose? > <? end for each? >
Thank you
Try this:
your online data
See you soon
Jorge
p.s if this answers your question please grant points, and then close the message
Tags: Business Intelligence
Similar Questions
-
Drop-down list always displays the first value? How can I empty place
I have several drop down from the fields list. An example would be the city. It allows a user to select a city. I want the form to be completely empty to start. Currently, when the form is initially pulled up, it shows the first value in the list. All my drop-down list fields exhibit the same behavior. Is it possible to be just empty instead?
You can send the form to [email protected] and I'll take a look to see what is happening?
Thank you
Paul
-
selectOneChoice displays the first value of the attribute
Hi people,
In my demo application, there are a couple of selectOneChoice drop down LOV which are based on the query based VO. The UnselectedLabel property is set to "No Selection". These LOVs are used to filter the set of query data. When the drop down menus are not called and the push of a button, the LOVs, behind the stage, have the first value of the attribute that is assigned automatically. Is there a way to ciircumvent the issue without the implementation of valueChangeEventListener?
Thank you
udys
udys,
It's not like you have implemented correctly.
1. the error message says:
"The class"oracle.summit.selfservice.view.HZHRLocsocBean"does not have the property"vLocvalue"
On the screenshot, it is clear that the name of the variable is "fromLovValue" and not "vLocvalue". Please make sure you use the correct name.
Reference:
See you soon
AJ
-
Hi all
I have a requirement as below.
Select * from my_tab;
col1 col2 col3
1 test1 January 1, 2014
Test2 2 2 January 2013
3 test5 February 9, 2015
I need to display it as below.
col1 col2 col3 req_col
-----------------------------------------------------
1 test1 January 1, 2014
2 test2 January 2, 2013 January 1, 2014
3 February 9, 2015 test5 January 2, 2013
So how do?
If it is not possible with sql then suggest me to do in peblisher xml (in rdf or rtf)
Hello
jagadekara wrote:
Hi all
I have a requirement as below.
Select * from my_tab;
col1 col2 col3
1 test1 January 1, 2014
Test2 2 2 January 2013
3 test5 February 9, 2015
I need to display it as below.
col1 col2 col3 req_col
-----------------------------------------------------
1 test1 January 1, 2014
2 test2 January 2, 2013 January 1, 2014
3 February 9, 2015 test5 January 2, 2013
So how do?
If it is not possible with sql then suggest me to do in peblisher xml (in rdf or rtf)
In SQL, you can use the analytic LAG function.
http://docs.Oracle.com/database/121/SQLRF/functions093.htm#sthref1544
Because I don't have a copy of your table, I'll use scott.dept to illustrate:
SELECT DeptNo
dname
loc
, Trolling (loc) over (ORDER BY deptno) AS prev_loc
OF scott.dept
ORDER BY deptno
;
Output:
DEPTNO DNAME LOC PREV_LOC
---------- -------------- ------------- -------------
10 ACCOUNTS NEW YORK
SEARCH 20 DALLAS NEW YORK
30 SALES CHICAGO DALLAS
40 OPERATIONS BOSTON CHICAGO
-
Select list failed at the first value
APEX Version: 4.1.1.00.23
Oracle database: 11g
Question: The application updates the value selected in the list of selection (O/N) to the database, but at the front end, the selection list is set by default to display only the first value in the list. I think this is the data type of the field in the table attached to this select list is TANK (2). And change to VARCHAR2 (2), it worked fine. Now whichever option I choose in the selection list is updated and displayed on the front as well.
I do not understand why is this to mess with (2) TANK. Someone at - it explain it please, I'd appreciate it really.
Thank you
Chrystelle
never use CHAR() in your tables.
TANK always touch your strings to the exact same length.
In your case, you compare the value to the value of the list of the 'Y' table 'Y '.
declare
a tank (2): = 'Y ';
b varchar2 (2): = 'Y ';
Start
dbms_output.put_line ('element A as a sign of ' | length (a)); -This will ALWAYS have a length of 2
dbms_output.put_line ('Variable A as a sign of ' | length (b));
end;
-
Select the first value in the list of values when running in poplist
Hello
IM using forms 6i. I filled the poplist by request. But what I need, I want to choose the first value in the list of values when running...
That is to say, during execution, the poplist should have chosen its first value in the list of values.
What to do...
Concerning
SeryWHEN CREATING a RECORD of the block of the list item or after the filling of the list item, you can write
: my_list_item: = GET_GROUP_CHAR_CELL ('my_list_item', 1); / * If the data type of the item in your list is character.*.
Here, instead of 1, you can give any clue... 1: value to the first list item position
-
Hi all
I need the values according to below 2logics in a single select query using instring and substring
1 values based on the following logic 'values after the first values of two '_' and before last '_' values '.
2 values based on the following logic 'values after the first values of two '_' and before last'-'values '.
EXM:
Entry: ABCD_EFGH_IJKLM - NOPQ_XYZ output: IJKLM - NOPQ
Entry:. ABCD_EFGH_IJKLM - NOPQ output:IJKLM
Thank you.
Check the following
WITH DATA1 AS
(SELECT "ABCD_EFGH_IJKLM - NOPQ_XYZ" double val)
UNION ALL
SELECT 'ABCD_EFGH_IJKLM - NOPQ' double val
)
SELECT SUBSTR (VAL, INSTR(VAL,'_',1,2) + 1, DECODE (BIGGER (INSTR (VAL, '_',-1, 1), INSTR(VAL,'-',-1,1)), INSTR (VAL,'-', - 1, 1), LENGTH (VAL) + 1, INSTR (VAL, '_',-1, 1))-(INSTR (VAL, '_', 1, 2) + 1))
OF DATA1;
Concerning
Salim
-
Set the first value after the select statement
Hello
I have a problem here.
After you run the statement select, it'll come to me:
COM
DLY
EXC
NRD
RDY
My question: How can I set the first value instead of 'COM' in "EXC"?
Thank you.Hello
Where you use this instead:select * from ( select col_name ,case when col_name='EXC' then 1 else 0 end as "id" from table_name ) order by "id" desc
-
How to get the first element of a list?
Hello
I have the following hierarchy:
A (first level)
-A1 (A child)
-B1 (A child)
-B11 (B1 child)
-B12 (B1 child)
I have a UDA on B11 and B12 members who have the same name as the A1, and I want to assign values to A1 to B11 and B12. After that, I want to consolidate the hierarchy so I can have B1 and with values.
I would like to use the ancestors function to do but the ancestors need a member as a parameter and the only relationship between A1 and B11, B12 is the UDA.
I can't do @ANCESTORS (@UDA (%{dimname/}, 'A1')) because of this, so I would use a function to get at least 1 member with the UDA, I want and use ancestors on this subject, but I can't seem to find a function that returns the first member of a list.
Can someone help me on this?
Thank youBummer, I finally shot to the top of my 11.1.2.1 instance of cloud and tried. You have (unfortunately) reason - I can spend real members names in @LANCESTORS and use it outside of a DIFFICULTY, but the minute I put in @ATTRIBUTE or @UDA he has poured out. Disappointment, because I thought that was a really cool thing.
I think still if you know z is always the parent you want to consolidate, a @IDESCENDANTS("Z") would do the trick, but maybe with inefficient - certainly less than a full size AGG.
Kind regards
Cameron Lackpour
Published by: CL 4 June 2012 10:13
Arrgh, and it's in the docs with underlining added by me:
If the function @LANCESTORS is used alone (not in a statement to FIX), you must use the function @LIST and specify names of members. -
I have a column with two values, separated by a space, in each line. How do I create 2 new columns with the first value in one column and the second value in another column?
Add two new columns after than the original with space separated values column.
Select cell B1 and type (or copy and paste it here) the formula:
= IF (Len (a1) > 0, LEFT (A1, FIND ("", A1) −1), ' ')
shortcut for this is:
B1 = if (Len (a1) > 0, LEFT (A1, FIND ("", A1) −1), ' ')
C1 = if (Len (a1) > 0, Member SUBSTITUTE (A1, B1 & "", ""), "")
or
the formula of the C1 could also be:
= IF (Len (a1) > 0, RIGHT (A1, LEN (A1) −FIND ("", A1)), "")
Select cells B1 and C1, copy
Select cells B1 at the end of the C column, paste
-
Hi all
I have a questions. It is that I create a Subvi to my table and it can display the last value in the upper part. Below attached snapshots of my programming. I use a number random and STOP for control of you guys let see the whole process of what I want.
but when I change "constant true/false" and using a digital command. and I put it in my program. It won't list down the values and it will not display the most recent value at the top. What is the problem? I was stuck on this problem for a while.
and another question was how to keep the size of the list is constant? for example, I onli wants to view 30readings on my table. as the program continued to run, the oldest value will be overwritten. because if kept under my table more, means memory increase my programming and registration of cause late development. I do not want to happen. So is it possible to maintain the display of fixed table values?
Hi Isabelle,.
I think that the problem causes initialization of a register shift to void / vi. If you initialize a shift register, each time sub vi is called, he will replace value in the registry to offset with initialized value. Uninitialize a registry change to resolve a problem. I've attached a screenshot of my sub vi for your reference.
Sincerely, Kate
-
Is it possible to display the dynamic value in the ToolTip?
I tried:
this.assist.toolTip.value = this.rawValue; for a text field on 'ownership' MouseEnter
but it does not display the current raw value. It displays a previous raw value of the field...
I wrote 'YYYY', but is not displaying on the first mouseEnter event
When I show event mouseEnter for the 2nd time it gives good value.
Now, I changed the "BBBB" value but the first mouseEnter event it displays the value previous i.e. "YYYY."
I found the solution. I wrote the script ("this.assist.toolTip.value = this.rawValue ;") on 'property MouseEnter' but the need to write the script to the "Output" of the field event. ")
Thank you.
-
How a variable may display the first character that is on the page?
I'm creating a phone book and each page to see the alphabet the first listing on the page on the top - only a single character.
Can you tell me how to proceed?
The thing, of course, is how to apply the character style.
You'll want to have she asked the first character of EACH list so that headers update when you change and if you do not need to go through page after page by applying the style. You can do this with a nested Style applied through 1 character as the first litter of style in your paragraph style definition (and this character style has no need of any other than a name defiintion of work for this), or, if you already have some nested styles, you can use GREP as well as nested styles style. You would use ^. as the string to match. This means that the first character of a paragraph.
The same work of techniques for a whole word wil. For nested style, change to 1 character through 1 word for GREP change to ^ [\u\l]+ which is any combination of upper and lowercase letters the latter at the beginning of a paragraph, but stop matching when it hits a number, punctuation or spaces.] If you have numbers in the lists to be used, you can add \d to the class in the above GREP.
-
Is it possible to connect a simple 1 d array to a digital indicator or what would be the best way to display the numeric values of the array on the front panel? Examples or suggestions would be greatly appreciated.
Thank you
Tunis
Thank you Adam, it's originally in a while loop, I placed it in a loop for example, wired County in the for loop and presto, this son of a digital indicator. It works very well. Thanks for the help folks.
-
Display the default value for POPUP LOV
Hello
How to display the default value for the element whose type is LOV POPUP?
Version 4.2 of the apex
Thank you.
Hi Sunil,
Sunil Bhatia wrote:
Change the default value to "SQL query"
And set the default value:
SELECT PERSON_ID PEOPLE WHERE USER_NAME = lower(:APP_USER);
-Sunil Bhatia
There is no default Type-> "SQL query".
BO123 :
Change the default value--> "Body of the PL/SQL function" Type and value by default to:
DECLARE L_PERSON_ID PEOPLE.PERSON_ID%TYPE; BEGIN SELECT PERSON_ID INTO L_PERSON_ID FROM PEOPLE WHERE USER_NAME = lower(:APP_USER); RETURN L_PERSON_ID; EXCEPTION WHEN NO_DATA_FOUND THEN RETURN NULL; END;
Better make a packaged function and just call that work instead of writing all the code by default the value of the item.
Kind regards
Kiran
Maybe you are looking for
-
The last update does not have a bookmark for a site! What you do about it?
I tried to make a bookmark multiple sites using several means without result. No form appears, and no new bookmarks is displayed. I have rolled back the version and you can make bookmarks.
-
Designjet Z2600: Questions about head of ink and printer maintenance
We have recently acquired a printer, Designjet Z2600 24 "large format. A few questions so we can know what to expect: Dry ink: A colleague suggested that dried ink can be a problem if the printer is not used frequently. We plan on it using every tw
-
iPhoto App will not be updated
I got a notification for an update to iPhoto for the last 4-6 months. When I try to update, it does not allow me. I get the message attached below. I am the first owner of this computer (at least that I have lied to me and sold a reconditioned unit),
-
ProBook 440 G2: Windows not opening
my windows is not opening. I have two win8.1 pro and ubuntu OS. first of all there is a white screen, then after a while, that a screen indicating "PREPARATION AUTO REPAIR. and after a while that a blue screen appears on display, try again and all th
-
command to search for windows is genuine or not? challenge
command to search for windows is genuine or not? can someone answer this question?