Query about oldest entry in a Collection/List
Hi,
I need to access the oldest entry from a List. something on the lines of removeEldestEntry from LinkedHashMap ... but I need to work with the entry before deleting it. any hints or pointers will be greatly appreciated
A list is not nessasarly in the order that you put them in (see List.add( int, E ). If however you list is, see List.remove(int), and use element 0.
Similar Messages
-
I have one query about table entries.
i have one query about table entries.
suppose for particular table we maintained 5 entries in dev server. actaully in the dev we have only these 5 entries.
In production we have 200 entries actually.
If we move the cts from dev to production ,we will get 205 entries right
please help me in this.If i understood correctly, It is a Z table and you have done some changes in DEV system. If you move this to Production, it wont effect the production entries.
There are 2 different ways you can trnasport a Table. 1. with Table entries 2. Without table entries.
If you transport with Table entries then the DEV entries in this case 5 will be moved to PRODUCTION totaling 205.
If you transport without table entries, then in Production you will find only 200 entries. -
Query about calendar entries - Asha 311
Just purchased an Asha 311 and need some info. about the calendar entries that I made (a To-do list).
To the right of the entry there appears a gray-scale dot, which, when touched, turns green. The entry vanishes to the bottom of the list. Touch the green dot and the entry re-dates itself to two weeks after the original date and re-positions itself accordingly.
Please let me know the significance of this gray-turned-green icon and how I can prevent my calendar entries vanishing and re-positioning themselves to the wrong dates.
Thanks in advance.
CLYDEHi CLYDE1963,
Welcome to the Nokia Support Discussions!
This is a normal behavior of the phone. We suggest not to tap the gray-scale dot since it will notify you if you have already set the time and tone for it. If you will do it again, it means that the entry has been finished or has been done.
Hope this helps. -
Using collection list in subquery to restrict rows
How can I use a collection list in a subquery?
Something like this:
TYPE listOfIDs_t IS TABLE OF NUMBER;
v_listOfIDs_arr listOfIDs_t;
CURSOR c1 IS
SELECT *
FROM tbl
WHERE id IN (SELECT column_value
FROM TABLE ( CAST(v_listOfIDs_arr AS listOfIDs_t ))
When I try something like this, I get "invalid datatype" on the collection type, listOfIDs_t. Any suggestions? Basically, I want to use the list of values in my collection to restrict my cursor/query without having to loop through my collection and execute the cursor/query each time.PL/SQL is two languages. PL is a programming language based on ADA. It is a formal procedural declarative language. It is "Turing complete". SQL is neither - not procedural and not Turing complete.
PL/SQL mashes these two in a single integrated coding environment - you can write and mix PL and SQL code and the PL engine will figure out where it needs to make calls to the SQL engine, what PL variables it need to pass to the SQL engine (using SQL bind variables) and so on.
Now you define a structure in the PL engine. The structure resides in the PL engine memory area (the process global area or PGA).
You now want to pass that structure to the SQL engine and run SQL on it. The SQL engine cannot reference that local PL variable directly. PL has to copy it into the SQL engine.. as what?
The SQL engine only supports SQL data types. The SQL engine does not know of the PL engine's existence. Just like it does not know about Java, C/C++, Delphi, C#, Visual Basic etc. Nor does the SQL engine support data types of these languages.
All these languages, including PL, supports the SQL engine in some form or another. Via ODBC, BDE, OCI, JDBC, etc.
Okay, now how does PL pass that local PL structure to the SQL engine? It cannot. That is a custom PL structure. It can contain (and often does) have features that are not supported by the SQL engine. Like boolean fields.
What PL can do and does support is SQL data types. Including user defined data types. And these it can use itself natively inside PL (as you also can as objects in Delphi, Java etc).
And these it can also pass back to the SQL engine for processing.
That all said - the best place for data is inside the SQL engine (i.e. in tables). It is not the best of ideas to create data structures in PL and then continually pass (copy) these to the SQL engine to run SQLs against. It is slow. It does not scale.
So make sure that you have sound technical reasons when actually doing this - creating a PL variable of a SQL table type, stuffing data into it, and then running SQLs on it. -
Checking for the exististence of entries in the IN list
DB Version: 10gR2
create table x
(col1 varchar2(30));
insert into x values ('SONY');
insert into x values ('ALSTHOM');
insert into x values ('AERO');
insert into x values ('JAKE');
insert into x values ('MAINE');
select col1 from x
where col1 in
('SONY',
'ALSTHOM',
'HAITI',
'MAINE',
'GHANA'
COL1
SONY
ALSTHOM
MAINEWhenever an entry in the IN list of the query is absent in the table, how can i get the result like
COL1
SONY
ALSTHOM
MAINE
HAITI -----> NOT PRESENT
GHANA -----> NOT PRESENTSomething like this? All employees, marking those not in the list
SQL> WITH mylist as (
2 SELECT 'ANAND' item FROM DUAL UNION ALL
3 SELECT 'SVEN' FROM DUAL UNION ALL
4 SELECT 'GORAN' FROM DUAL UNION ALL
5 SELECT 'CHARLES' FROM DUAL UNION ALL
6 SELECT 'LEMAR' FROM DUAL UNION ALL
7 SELECT 'ZIPAJ' FROM DUAL UNION ALL
8 SELECT 'KRALJIC' FROM DUAL UNION ALL
9 SELECT 'YING' FROM dual)
10 SELECT empname, DECODE(item, empname, NULL, 'Not in List')
11 FROM employees
12 LEFT JOIN mylist
13 ON empname = item;
EMPNAME DECODE(ITEM
ANAND
CHARLES
ZIPAJ
KRALJIC
YING
JAKE Not in List
ALSTHOM Not in List
AERO Not in List
KRUPP Not in List
YANEK Not in List
MAINE Not in List
SONY Not in ListOr all list marking entries not in employees:
SQL> WITH mylist as (
2 SELECT 'ANAND' item FROM DUAL UNION ALL
3 SELECT 'SVEN' FROM DUAL UNION ALL
4 SELECT 'GORAN' FROM DUAL UNION ALL
5 SELECT 'CHARLES' FROM DUAL UNION ALL
6 SELECT 'LEMAR' FROM DUAL UNION ALL
7 SELECT 'ZIPAJ' FROM DUAL UNION ALL
8 SELECT 'KRALJIC' FROM DUAL UNION ALL
9 SELECT 'YING' FROM dual)
10 SELECT item, DECODE(empname, item, NULL, 'Not in Table')
11 FROM mylist
12 LEFT JOIN employees
13 ON empname = item;
ITEM DECODE(EMPNA
CHARLES
YING
ZIPAJ
ANAND
KRALJIC
GORAN Not in Table
SVEN Not in Table
LEMAR Not in TableIf your list is longer, and you are getting it programatically somwhere, it might be worthwhile to populate a global temporary table with the list and use that in place of the sub-query factoring clause.
John -
I received this error using apple IPAD version 7.1.2 connecting to cisco WiSM controller version 7.0.250. access point wireless setup using local-hreap.
below are the syslog messages.
: *mmListen: Aug 25 10:38:35.962: %APF-4-CREATE_PMK_CACHE_FAILED: apf_pmkcache.c:561 Attempt to insert PMK to the key cache failed. unable to insert a new entry in PMK cache list.Length: 32. Station:98:fe:94:90:70:ef
: *mmListen: Aug 25 10:38:35.962: %MM-4-PMKCACHE_ADD_FAILED: mm_listen.c:6479 Failed to create PMK/CCKM cache entry for station 98:fe:94:90:70:ef with update from controller
: *dot1xMsgTask: Aug 25 12:09:27.883: %DOT1X-3-MAX_EAP_RETRIES: 1x_auth_pae.c:3092 Max EAP identity request retries (3) exceeded for client 98:fe:94:90:70:ef
: *dot1xMsgTask: Aug 25 12:57:32.503: %DOT1X-3-MAX_EAP_RETRIES: 1x_auth_pae.c:3092 Max EAP identity request retries (3) exceeded for client 98:fe:94:90:70:efHi Ravi Rai,
I'm sorry to hear about the issue you are having with your Mac. If you are having hard freezes or restart issue that don't appear to be drive related, even after reinstalling Mavericks, you may want to try the troubleshooting steps outlined in the following article:
OS X: When your computer spontaneously restarts or displays "Your computer restarted because of a problem."
Regards,
- Brenden -
Big Troubles on designing Query about special customers' counting
Hello buddies:
I meet a problem on designing Query about special customers' counting. Let me describe the requirment first. I want to create a query with BEX , and there is a key figure with very special logic.
That is: to list the counts of the customers which has more than one sales records in a time period from sales data.
For example :
when the user excute the query , he or she must input a time period ( 2007.01~2007.03 e.g)
then the query output as follow:
District Cust-sount
North-Zone 100
South-Zone 120
The Main trouble are :
1. Threr are no document number in the detail of sales data document records. so I could not count the sales times with document number.
2. The time period is not fixed value, it depends on the user's input, so I can not define the counting logic in the update rule or in the query with fixed time period.
Anybody who met similar requirement pls show me your hand and give your solutions, thanks very much.
JasonHi,
Your solution sounds a good way to count the distinct customers. but in my case, one salse line item must not be recognize as one sales record, instead, one customer's all sales line items occurs in one day must be recognize as one sales record ( or we say that one sales behavior).
for example:
customer product quantity date
cust001 prod001 10 2007.06.06
cust001 prod002 20 2007.06.06
the two line items above means one sales record for the customer "cust001".
so I could not simply use the CKF : (( Counter ) *FV2 ) > 1 .
Best Regards,
Jason -
URGENT : How to save multiple entries in a T list at one go
If I have a T list that contains the colours availiable at a paint shop (just an example), e.g. white, green, red. I want to save the multiple entries in the t-list at any moment to the database column at one go. how can i do it.
Also the table doesn't contain a column for the colour_code, but instead it has the shop_id and the colour_id corresponding to that shop_id. So i need to insert into the database the colour_id for a particular colour_code as the t-list is just a control item in the data block.
Please help.
Abhishek.if you use multi-selection Tlist item or create your own Tlist looking form, then you may loop thru these multi-selections and add your logic into this loop.
-
My ipod touch(4th gen) just recently had the iOS 5 update.bu for some reason about 80% of my music collection appears with no album artwork and doesnt play any songs.basically it has my music on their but wont let me access it? please help!
i have the same problem but i have ios 5.01. how do you unsync? please help, thanks
-
Displayed Properties in Collection List Renderer are not displayed
Hello All,
I have created one custom property and entered the value for a resource which had that property.
Now, when I am trying to display the custom property in any layout, its not coming, even though I have added the property name in the Displayed Property of the collection list renderer.
To check the view is taking the correct layout or not, i changed some other settings of the collection list renderer and the changes are immediately getting reflected. What could be the problem here?
Any help, deeply appreciated
Regards
BPHello Bobu,
Are you using a different Namespace Alias other than 'Default' in your property definition? If so then you need to specify the property in the 'Displayed Properties' parameter of the collection renderer as <NamespaceAlias>:<propetrty ID>, e.g. rnd:displayname.
Other than that you should check the 'Folder Validity Patterns' and 'Document Validity Patterns' to make sure they are valid for the content on which you are trying to display this property, you may have already checked this.
Regards,
Lorcan. -
Dear Experts:
could you please share with me the knowledge for below topic:
How the freight cost are transferred from condition type of shipment cost document to service entry sheet and collected in service PO item, because these three objects use three different pricing procedures, and different condition type.
how did the condition type of service entry sheet know to copy the value of whcih condition type in the pricing procedure of shipment cost document?
Is this SAP standard function OR there need an enhancement to do that?
I didn’t find related condition value copy setting in background, could you please share related setting with me? Thank you very much for your kind help!
Best regards,
AndyHi, Gopi,
Glad to see your feedback, but i still have question on your feedback:
which condition type in the pricing procedure of service entry sheet should know to capture the net value of shipment cost doc? becasue there are so many condition types,
And i have checked the corresponding condition type (PRSX) of service entry sheet pricing procedure in my SAP system, this is a self-defined condition type, but NO any calculation routine maintained for the condition type (PRSX), how did the condition type (PRSX) know to copy the total cost of shipment cost document?
Below is the example and another question:
what the relationship between the pricing procedures at service PO item level and service line item level?
1. The freight cost in shipment cost document—including used condition type and pricing procedure
The pricing procedure of shipment cost document
2. The freight cost in service entry sheet—including used condition type and pricing procedure
The pricing procedure of service entry sheet--the pricing procedure at service line item level
3. The freight cost in service PO item—including used condition type and pricing procedure: -
I would like to be able to submit an Infopath form with a multiple selection list box in Sharepoint as multiple entries on a Sharepoint list.
For example, a user has to complete the following fields:
First Name:
Last Name:
Favorite Color (can select more than one):
[] Blue
[] Red
[] Yellow
[] Green
If the user picks blue AND red and submits the form, the Sharepoint list would feature TWO entries, both with their first and last names, but with different colors in the "Favorite Color" column.
Please let me know if there is a way to do this. Any guidance would be helpful!Hi redhotc,
According to your description, my understanding is that you want to set multiple default values for a multiple checkbox list in InfoPath form.
I did a test with SQL database table. I set three default values for the checkbox list by adding three values field under the group field(Data->Default values), each value field is for a default value. Then publish it to my SharePoint site, everything
was fine.Please have a try as the below link:
http://www.bizsupportonline.net/infopath2010/pre-select-items-multiple-selection-list-box-infopath-2010.htm
Note: if you are using SQL databse table, you may need to enable ‘Allow cross-domain data access for user form templates that use connection settings in a data connection file’ in CA. More information, please refer to:
http://answers.flyppdevportal.com/categories/sharepoint2010/sharepoint2010customization.aspx?ID=418b9423-a96c-4e5e-91f9-6a1b010ebb69
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support -
IE02 services for object- How to collective list attachment by many equip?
Hi all,
IE01/IE02 i create attachment by services for object for equipment.
But I want to collective list attachment by equipment, not by individual equip to display.
How to do that? or which table can i find the info?
thanks a lotderek,
I don't think there are any [Generic Object Services|http://help.sap.com/erp2005_ehp_04/helpdata/EN/be/3fe63659241157e10000009b38f889/frameset.htm] (GOS) transactions to mass update objects...
I suspect you would need to develop a custom BDC program for this purpose.
PeteA -
Hi,
i had a query about local storage.
I've a machine that hosts weblogic and tangosol. i've an ejb that accesses a distributed cache i.e NamedCache cache = CacheFactory.get("MyCache")
i modified tangosol-coherence.xml and set local-storage to false ( for distributed cache) and replaced the file in coherence.jar.
i'm using an overflow scheme and the back map uses a disk scheme.
i also start a separate standalone instance of tangosol and i set the system property of local storage to true for the standalone instance.
i start the standalone instance first and then weblogic.
The idea is ensure that the tangosol instance in weblogic or the weblogic JVM should not participate in storing data (hence local storage false).
only the JVM for the standalone instance should store data (hence local storage true -system property).
i wanted to know whether the property "local-storage" is pertinent to a member(machine) or to a JVM?
the reason for this doubt: as i'm using a disk scheme, tangosol creates a file for an overflow (e.g lh014402~.tp). i can see two such files when ideally i would have wanted only one for the tangosol instance.
-rw-r--r-- 1 zephyr users 8364032 2005-06-23 17:02 lh014402~.tp
-rw-r--r-- 1 zephyr users 8364032 2005-06-23 17:02 lh014403~.tp.
can you please let me know if we can configure tangosol in such a way that we can two separate instances running with local stroage false for one and true for the other?
Awaiting your reply
Thanks
VinayI would suggest leaving the default 'local-storage' value set to 'true' in the tangosol-coherence.xml and just use the JVM argument to control the local storage of each individual node. Then start the stand alone instance normally (I assume you are using the com.tangosol.net.DefaultCacheServer) and start the WebLogic instance with the following:
java [...] -Dtangosol.coherence.distributed.localstorage=false [...]
Hope this helps.
Later,
Rob Misek
Tangosol, Inc. -
Query about licensing Jdeveloper
Dear Friends,
I have a query about licensing of Jdeveloper development tool. I understand that Jdeveloper is Free tool.That is we do not require license to use Jdeveloper for development as well as production.
Recent I heard that Jdeveloper is free only if we purchase Oracle Application Server. Is it correct ? Does one need to purchase Jdeveloper license if it is being deployed on any other App. server eg. Jboss etc ?
Can anyone throw light on the same ?
Many thanks,
VaijHi,
JDeveloper is free! Oracle ADF - the binding layer - ADF BC, and ADF Faces need an OracleAs licence
Frank
Maybe you are looking for
-
Advice/howto on disorganised photos that need to be imported into Aperture
I have about 5-6 years of photos that are in different folders across my backup hard drives that I want to import into Aperture. There are many duplicates as I had working folders that I copied periodically onto external drives into dated backup fold
-
How I know if my computer have a virus?
My computer is slow and the itunes show up by his self? is a virus?
-
Set margin of in the page setup
hai everybody i have a problem to set the margin of a table in the spreadsheet. can any one give me an idea on how to set the margin in the page setup...
-
Open a SWT full screen shell on PocketPc
Hi to all, i want to open a SWT full screen shell on PocketPc, with aim to hide the win mobile bar , and hide the win close button of application! It's possible? How i can do it? Shell s = new Shell(disp, .... ? ....); Thanks to all, Muzero
-
Eliminating the auto sync action when adding new entry in calendar on my BB Curve 8330
Hi everyone, I am using my Yahoo e-mail as my primary profile for my Calendar (CICAL) and Messaging (CMIME) as my Default Services. I do a daily sync with my Outlook 2003 calendar, notes, contacts, etc, via USB but I do not sync my BB calendar with