Creating Non-Repeating fields
Hello all,
I am creating a query that lists a bunch of student ID's and their schedules. However, the ID's of students should only show on the first row of thier schedule. I've figured out a way to do it with the Lag function, but I was wondering if there is a better way or if this is the only way? Also, does this "method" have a name?
For example, instead of:
Student ID Course
3823481 Math 101
3823481 English 201
3823481 History 230
5293012 Art 402
5293012 English 301
5293012 CGT 212I want this to show:
Student ID Course
3823481 Math 101
English 201
History 230
5293012 Art 402
English 301
CGT 212This is kind of what my code looks like:
-- Non-repeating PNumber
Case Lag (ID) over (order by ID)
When ID Then ' '
Else ID
End as Student_ID,
-- List Classes
Course_Title
From (...)
Where (...)
Hi ..
a possible solution:
with q as(
select 3823481 Student_ID ,'Math 101' Course from dual union all
select 3823481 ,'English 201' from dual union all
select 3823481 ,'History 230' from dual union all
select 5293012 ,'Art 402' from dual union all
select 5293012 ,'English 301' from dual union all
select 5293012 ,'CGT 212' from dual)
select decode(row_number() over (partition by Student_ID order by course),1,Student_ID) Student_ID,course from q
Similar Messages
-
How to create non editable fields in OIM?
Hi ,
I would like to know about the creation of non-editable fields in OIM.
Thanks in Advance.Hi,
Where do you want to create this field? (Create User Form, Process Form....).
If your requirement is to do it in the Create User Form, or Self Register or Edit Profile... You have to edit the FormMetadata.xml file. There are many posts in the forum of how to edit this file but ask if you need any help. -
How to put non-repeating field in a repeating frame?
I have a formula field that creates the header for a list in a repeating frame. I seem to be in a quandary though-if I include the field inside the repeating frame the header gets repeated. If I put it outside the frame I get an error 'Field references Column at a frequency below its group'. If I move the formula column to the parent query it works except in the case where the child query returns no rows-then I get the header with no data.
So, I either need a way to display the header inside the repeating frame, but only once, or I need a way to suppress the header when the child query returns no rows.So, I either need a way to display the header inside the repeating frame, but only once, or I need a way to suppress the header when the child query returns no rows.You can try one idea. Keep the formula column in detail group and create one more summary column as serial number for the detail records so in repeating frame place that field (formula column) in repeating frame and use the PL/SQL code for that field as below...
IF :serial_no = 1 THEN
RETURN TRUE;
ELSE
RETURN FALSE;
END IF;Then it should display for the first record only.
-Ammad -
Hello!
I'm trying to create a report (using BIP Desktop) that will print out an employee's first name and last name once but list all of the records associate with that employee.
Ex (this is what I don't want):
Smith Joe $1,200 Chicago
Smith Joe $700 New York
Smith Joe $2,000 San Francisco
(this is what I need):
Smith Joe $1,200 Chicago
$700 New York
$2,000 San Francisco
Lee Robert $300 Phoenix
$650 Kansas City
etc.
I can create this using the wizard, but each field ends up on a different line, and when I try to reformat the table to my liking it's still not what I need (that and I somehow move things around enough to break it).
Will someone give me some pointers on how to create reports without relying on the wizard, or give me a good website that I can learn from? Again, I'm using the Desktop Template Builder for Word.
Thank you!Thanks for the reply, Dave!
This example works well for me as far as grouping by department, but it's still unclear to me how to only print the first name and last name once. For the department I've got:
group ROWSET by DEPARTMENT
for-each current-group
Dept: DEPARTMENT <-- lists a department name
end current-group
end ROWSET by DEPARTMENT
In order to get the last name and first name to print only once, I've tried putting my cursor before the LAST_NAME, right-clicking and selecting the 'Create Group...' option thinking this would create another group, but then it puts an F in front of the LAST_NAME and an E after the LAST_NAME and only lists the first record and moves on to the next last name in the department.
Are there other more in-depth examples I can look at to get a better understanding? Why does the Insert, Table/Form process add the 'group ROWSET by DEPARTMENT' and for-each current-group' text but by right-clicking next to a field value and selecting 'Create Group...' it only adds an F and E to the field value...I assumed both methods would produce the same output??
I checked out the other examples on that page and none seem to produce the type of output I'm looking for. -
Non repeated field in repeated report
Greedings,
i have the following query in my report. The only problem i have is that for every account it repeats the 'c.com' value so i end up having the same 'c.com'. Is it something wrong with my query or do i have to change something in my report so it wont repeat? Thanks for any help
select a.cat_desc,a.acnt_code, b.descr,*c.com*,Sum(d.bas_amount) AS TOTAL,
sum((select d.bas_amount
from so_budgets d1
where d1.acnt_code = d.acnt_code
and Trim(d.period) BETWEEN '2008001' AND '2008002'
AND ROWNUM=1))BY_PERIOD
from so_budgets_cat a,s01_acnt@oracle_to_sun b,so_budgets_com c,so_budgets d
where trim(a.acnt_code)=trim(b.acnt_code)
AND a.cat=c.cat
AND TRIM(d.acnt_code)=trim(a.acnt_code)
GROUP BY c.com,a.acnt_code,a.cat_desc, b.descr
order by c.com,a.acnt_code,a.cat_desc, b.descrHey Ray,
I tested this and this is what I found.
1. The "Display Repeated Texts" checkbox does work for characteristics within the web application designer.
2. The "Display Repeated Texts" checkbox has no effect on queries that have a structure. The structure is not displaying repeated texts, but all characteristics are.
This is a bug with this functionality with displaying repeated texts for structures. Please log a message on this, and state that this functionality isn't working for structures. Make sure you spell that out so people don't try duplicating it and saying it works, because the first test I ran did show it working, but my query wasn't displaying a structure in the rows... -
How to properly create a non-repeat report block?
Hi everyone,
I am trying to create a front page for my report. In the report data mode I have a query only return one record, so why that query in the data model showed as a group? <It has the query name - Q_1 on the top, and a group box at the bottom named G_xxxx.>
Second question is why i use the report block wizard to create the frontpage, the wizard forced me to select a group, otherwise it give warning/error message. I only want to select the client name and his address and no need to repeat <so the frame should use the non-repeatable frame right?>.
At the moment, I have two queries in the data model, first one is the "select" query which will only return one record for the report's front page, second query is a matrix (cross product) query for the main contents of my report. Both query has no link.
This is my first Oracle report so any suggestions are the most welcoming.
Thank you
Bryan
Edited by: Bryanevil on Apr 8, 2009 8:19 AM
Edited by: Bryanevil on Apr 8, 2009 8:26 AMThanks DC
Thats what I was thinking too. Is this the only way to create a non-repeatable frame; no wizard can be use for create non-repeatable report block? Why I am asking this is because I am lazy, dont want to add all the fields and labels one by one to the frame.
Secondly, in the data model, is there any way to create a query which the data model will not recognise it as a group query but a single record query?
Regards
Bryan -
Hi.,
i am using jdev 11.1.5
i need to insert a non database field in jspx page
i had created a table finperiod
i need to insert a four nondatabse fields named as rec,dist,supl,cust.
How can i acheive this?i need to acheive this querry in adf
select count(*) into var_count
from appl_journals
where aj_bu=:global.bu and
aj_year=:FIN_PERIODS.fp_year and
AJ_PLANT =:FIN_PERIODS.FP_PLNT AND
aj_period=:FIN_PERIODS.fp_period and
aj_appl=:AJ_APPL and
aj_status='N' ;
if var_count<>0 and :AJ_APPL is not null then
:APPLICATIONS.appl_exist:='Yes';
elsif :AJ_APPL is not null then
:APPLICATIONS.appl_exist:='No';
end if;
how can i perform this -
How to make non editable field after requestor created the shoping cart
Hi,
i need to make non editable field (Price field) after requester created the shooping cart.The field should be non editable only for requster .
this i need to make when workflow triggers when the buyer sends back the shopping cart to requester.
one solution which i found:depend on the status of the shoping cart
but i dont know whether it is correct way.
if not please suggest me the solution.Hi,
You can implement the BADI" BBP_UI_CONTROL_BADI".
You can check for the role of the user who has logged in(e.g. for user REQUESTER,there will be a distinct role to idnetify that the user is a requester) and then acc set the display properties for the field PRICE.
For sample code pls refer the foll links:
Sample code for BBP_UI_CONTROL_BADI
Re: Hiding Shopping Cart Fields in SRM 3.0
Re: How to Hide the attributes from template BBPSC01?
Re: How to validating total value in shopping cart
Re: Price filed in Shopping cart should be in display mode
BR,
Disha. -
BTAHL7 v2.2 ORU^R01 OBX with repeating field elements at field 5 errors
Our discharge summary has a single OBX segment with all information put in OBX_5 separated by ~
It is a v2.2 and All of these segments are like
OBX|1||||DATE of ADM: 12-12-12~DATE of DISCH:12-12-12~1. This information~2.That information~3.blah blah|
v2.2 doesn't have the data type that would easily allow this and I can't seem to figure out how to allow this. I've tried creating a child field element as a string, then as an unbounded string, amongst countless other datatypes.
I get too many different errors to list but the datatype errors as well as the can't repeat -1 error etc.
Any help would be much appreciated. Thank you.Hi Patrick,
First of all, when validating this instance in Visual Studio remove the UNB and UNZ segment.
These segments are not included in your EDI schema and therefor you will get errors on those segments.The UNB segment will be generated at runtime based on your party and agreement settings.
Most of the other erros are based on invalid data according to the XSD.
Let us take a look at following error:
Error 4 Native Parsing Error: Non Segment level : [12]
EFACT_D96A_SLSRPT\BGM\C002\C00201\ The 'C00201' element has an invalid value according to its data type.
C:\Users\adm-xxx.DOM-ROOT-MSH\Desktop\BYKO_SLSRPT_EDIFACT_layout7_new.txt 1 1
If you open the XSD and navigate to the corresponding element (bold), you will see that is has an enumeration specified and 73E (specified in your input file) is not in that enumeration.
You can modify this enumeration if you and your partner agree on the modification of the standard schema.
Glenn Colpaert - MCTS BizTalk Server - Blog : http://blog.codit.eu -
Key fields and non-key field of condition table
Hello Gurus,
what is key fields and non-key field of condition table?
thanks very much!Key field
Each condition table contains keys that can be used for creating dependent condition records.
for example let take condition type PR00.
PR00 uses access sequence PR02 .
Access sequence PR02 has following tables associated with it namely 304, 305 & 306
When you create a conditon record for PR00 with transaction VK11 or VK31, you have a button 'key combination' which is nothing but fields associated with tables 304, 305 & 306.
In brief, Condition records are always created using specific keys. Condition tables are used to define the structure of the keys of a condition record.
Non key field
For example take condition table 144 - sales deal basic data.
Table 144 is associated with access sequence PBUD.
If you check the fields associated with this table (click technical view button), there are three fields at bottom which do not have 'key' check mark -KDATU, PLTYP, KSTAF
So, when you create a condition record for PBUD, system does not propose these 3 fields in 'key combination' and hence are non key fields.
Please reward points for good answers as this would help increase the total donation that SAP will make to the United Nations World Food Programme. -
Lost Calendar appointments (only non-repeated evnets)
I have trouble in my Palm Z22 , Palm Desktop 4.2@Windows XP.
I recently found all the NON-REPEATED Data from yr 2003 to mid 2008 has gone whereas the repeated data during the period are intact. Besides, data before yr 2003 and after June 2008 are alright. The situation is similar to another thread http://forums.palm.com/palm/board/message?board.id=windows_hotsync&message.id=34943
I have backup copy of files "DateBook.bak", "DateBook.mdb" in Feb 2008, which might be created by another version of Palm Desktop. I know that under my current Palm Desktop 4.2, the working file should be "datebook.dat".
How can I extract data from "DateBook.bak", "DateBook.mdb" so that it is readable to Palm Desktop 4.2?
Thanks!
Post relates to: Palm Z22You can recover the data from your user folder provided you have only sync'ed once with the PC when you discovered the data missing. When you sync to the PC there are files created for each PIM category in your user folder. For Example; datebook.dat or datebook (Depending on the version of Palm Desktop) and datebook.bak. Using 6.2 the file names are .mdb and mdb.bak. For 6.2, the files are located in the username folder in PalmOSdesktop in my documents.
The files are named .dat and .bak. When you sync, the current data is stored in .dat. The next time you sync the data in the .dat file is copied to the .bak file. You can rename the .dat to .old. then rename the .bak to .dat. If the data in the .bak file is intact, it will now be in palm desktop when you reopen Palm desktop. I have included a link to show you how to find the userfolder on the PC.
http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=26674
Here is another link regarding data loss;
http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=39503
The best way to backup your data is to use the export feature in Palm Desktop. Make a new folder on the PC desktop named Palm Desktop Backup data. Next, select the category you want to export. You will get a window that asks where you want to save the file, save in the folder created on the desktop. There is a button that allows you to select currently selected record or all, select all. If you don't select all, then only the record highlighted is exported. You will then need to name the file for export, I suggest the name of the category, eg: datebook (With current date). Do this for all critical data in each category. With the data exported to the folder on the PC desktop, you can save this data to a flash drive, external hard drive or a CD-RW. With this method you will have your data in a seperate place than Palm desktop and the device. If you "Lose" data again, you can import the data back into palm desktop.
Make sure that when you make changes in palm desktop or the device to export the data to the folder created for the backup.
Here is a link for other options for backing up your data;
http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=28751
Post relates to: Palm i705 -
How can we protect the ztable non key fields data in sm30 display.
Hi experts,
I have created tablemaintenence generator for one z table, in sm30 user has access to enter the data.
in that maintenence i have to protect the non key field values data like once the user saves his data.than in the edit mode it has to show the nonkey fields data but dont access to edit some nonkey fields... please helpHi
U need to change the screen flow generated by maintenance view generator: here go to Enviroments->Modifications->Screen; doubleclick on your screen and the system take you to screen painter.
Here go to screen flow and in PBO add new module in order to protect the field for the old records: u can use the statament LOOP AT SCREEN./ENDLOOP to do it.
LOOP AT SCREEN.
IF .....
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Max -
Is there a way to create a circular field or guide in Acrobat?
I have a fillable field that needs to fit nicely in a circle (the field will be exposed through a circular die cut on the page before it. I would like to have a way for the user to see how the field will appear through this circle so they can break the lines accordingly. Is there a way to either create a non-rectangular field, or import a page from InDesign with a guide visible, but not printable that Acrobat would recognize?
Is there a way to either create a non-rectangular field,
No.
or import a page from InDesign with a guide visible, but not printable that Acrobat would recognize?
Yes. You can place this graphic on a a non-printing layer in ID and it should remain the same in Acrobat. -
Error: "a summary has been specified on a non recurring field"
Hi,
I have a formula which calculates a quantity amount based on different quantity types & finally sums all the quantity to give a
result, tis result i want to show in crystal report, This field is put in report footer, when i try to run the report i get the following error for that field 'a summary has been specified on a non recurring field' below i put my formula:
//sum for qty type Fuel
numberVar qtyFuel;
if
{2O0GHO_C06_0GHO_T06_Q0002.[2O0GHO_C06-THEO_ACT_IND]} = 'A' and
{2O0GHO_C06_0GHO_T06_Q0002.[2O0GHO_C06-MEDIUM]} = 'GAS' and {2O0GHO_C06_0GHO_T06_Q0002.[2O0GHO_C06-QTY_TYPE]-[22O0GHO_C06-QTY_TYPE]} = '01'
then
qtyFuel := Sum ({2O0GHO_C06_0GHO_T06_Q0002.[Measures]-[DWQWE23XXYJCROQ978M8NX3J5]});
//sum for qty type Inventory
numberVar qtyInventory;
if
{2O0GHO_C06_0GHO_T06_Q0002.[2O0GHO_C06-THEO_ACT_IND]} = 'A' and
{2O0GHO_C06_0GHO_T06_Q0002.[2O0GHO_C06-MEDIUM]} = 'GAS' and {2O0GHO_C06_0GHO_T06_Q0002.[2O0GHO_C06-QTY_TYPE]-[22O0GHO_C06-QTY_TYPE]} = '03'
then
qtyInventory := Sum ({2O0GHO_C06_0GHO_T06_Q0002.[Measures]-[DWQWE23XXYJCROQ978M8NX3J5]});
//sum for qty type Non Sales
numberVar qtyNonSales;
if
{2O0GHO_C06_0GHO_T06_Q0002.[2O0GHO_C06-THEO_ACT_IND]} = 'A' and
{2O0GHO_C06_0GHO_T06_Q0002.[2O0GHO_C06-MEDIUM]} = 'GAS' and {2O0GHO_C06_0GHO_T06_Q0002.[2O0GHO_C06-QTY_TYPE]-[22O0GHO_C06-QTY_TYPE]} = '04'
then
qtyNonSales := Sum ({2O0GHO_C06_0GHO_T06_Q0002.[Measures]-[DWQWE23XXYJCROQ978M8NX3J5]});
//sum for qty type Sales
numberVar qtySales;
if
{2O0GHO_C06_0GHO_T06_Q0002.[2O0GHO_C06-THEO_ACT_IND]} = 'A' and
{2O0GHO_C06_0GHO_T06_Q0002.[2O0GHO_C06-MEDIUM]} = 'GAS' and {2O0GHO_C06_0GHO_T06_Q0002.[2O0GHO_C06-QTY_TYPE]-[22O0GHO_C06-QTY_TYPE]} = '05'
then
qtySales := Sum ({2O0GHO_C06_0GHO_T06_Q0002.[Measures]-[DWQWE23XXYJCROQ978M8NX3J5]});
//sum for qty type Enhanced Recovery
numberVar qtyEnhancedRecovery;
if
{2O0GHO_C06_0GHO_T06_Q0002.[2O0GHO_C06-THEO_ACT_IND]} = 'A' and
{2O0GHO_C06_0GHO_T06_Q0002.[2O0GHO_C06-MEDIUM]} = 'GAS' and {2O0GHO_C06_0GHO_T06_Q0002.[2O0GHO_C06-QTY_TYPE]-[22O0GHO_C06-QTY_TYPE]} = '14'
then
qtyEnhancedRecovery := Sum ({2O0GHO_C06_0GHO_T06_Q0002.[Measures]-[DWQWE23XXYJCROQ978M8NX3J5]});
//sum for qty type Load Oil Sales
numberVar qtyLdOilSales;
if
{2O0GHO_C06_0GHO_T06_Q0002.[2O0GHO_C06-THEO_ACT_IND]} = 'A' and
{2O0GHO_C06_0GHO_T06_Q0002.[2O0GHO_C06-MEDIUM]} = 'GAS' and {2O0GHO_C06_0GHO_T06_Q0002.[2O0GHO_C06-QTY_TYPE]-[22O0GHO_C06-QTY_TYPE]} = '08'
then
qtyLdOilSales := Sum ({2O0GHO_C06_0GHO_T06_Q0002.[Measures]-[DWQWE23XXYJCROQ978M8NX3J5]});
//sum for qty type receipt
numberVar qtyReceipt;
if
{2O0GHO_C06_0GHO_T06_Q0002.[2O0GHO_C06-THEO_ACT_IND]} = 'A' and
{2O0GHO_C06_0GHO_T06_Q0002.[2O0GHO_C06-MEDIUM]} = 'GAS' and {2O0GHO_C06_0GHO_T06_Q0002.[2O0GHO_C06-QTY_TYPE]-[22O0GHO_C06-QTY_TYPE]} = '13'
then
qtyReceipt := Sum ({2O0GHO_C06_0GHO_T06_Q0002.[Measures]-[DWQWE23XXYJCROQ978M8NX3J5]});
numberVar Total_Production;
//summing all quantity types
Total_Production := qtyFuel + qtyInventory + qtyNonSales + qtySales + qtyEnhancedRecovery + qtyLdOilSales - qtyReceipt;
I want to display the Total_Production in the report.
The formula name is: Total_Gas_Production.
kindly help me in this issue.
Regards,
Deepakis this one formula?
have you tried to run each formula seperatly to check which is the culprit. if you search the web there are some reasons why this could be happening.
generally you should use evaluation times on formulas
are you using manual running totals or this is the entire formula?
try
MANUAL RUNNING TOTALS
RESET
The reset formula is placed in a group header report header to reset the summary to zero for each unique record it groups by.
whileprintingrecords;
Numbervar X := 0;
CALCULATION
The calculation is placed adjacent to the field or formula that is being calculated.
(if there are duplicate values; create a group on the field that is being calculated on. If there are not duplicate records, the detail section is used.
whileprintingrecords;
Numbervar X := x + ; ( or formula)
DISPLAY
The display is the sum of what is being calculated. This is placed in a group, page or report footer. (generally placed in the group footer of the group header where the reset is placed.)
whileprintingrecords;
Numbervar X;
X -
I got an error while I creating a structure.
[FieldOffset(72)]
[MarshalAs(UnmanagedType.ByValArray,SizeConst= 3)]
public int[] DC;
[FieldOffset(75)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
public float[] WIN;
[FieldOffset(83)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 20)]
public byte[] name;
[FieldOffset(103)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
public byte[] SET;
[FieldOffset(106)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 50)]
public byte[] ID;
Error as like this-->object field at offset 75 that is incorrectly aligned or overlapped by a non-object field. But here size constant is 3 so I think after 72 offset will be 75..If I change the offset to 76 it will works fine. I think reason is that
size of int is 4. After changing that code will be like this.
[FieldOffset(72)]
[MarshalAs(UnmanagedType.ByValArray,SizeConst= 3)]
public int[] DC;
[FieldOffset(76)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
public float[] WIN;
[FieldOffset(84)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 20)]
public byte[] name;
[FieldOffset(104)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
public byte[] SET;
[FieldOffset(107)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 50)]
public byte[] ID;
But at that time I got the error as object field at offset 107 that is incorrectly aligned or overlapped by a non-object field..Can anyone tell me what is the main reason behind this..
Thanks..Hi,
Please firstly take a look at this documentation:
MarshalAsAttribute.SizeConst Field
Indicates the number of elements in the fixed-length array or the number of characters (not bytes) in a string to import
Change your code like this should work:
[FieldOffset(72)]
[MarshalAs(UnmanagedType.ByValArray,SizeConst= 3)]
public int[] DC;
[FieldOffset(84)]//72+4*3
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
public float[] WIN;
[FieldOffset(116)]//84+4*8
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 20)]
public byte[] name;
[FieldOffset(136)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
public byte[] SET;
[FieldOffset(139)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 50)]
public byte[] ID;
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Maybe you are looking for
-
im not sure why my itunes doesnt work anymore, it worked fine last night, i have been seaching he support pages but cant find anything that works for mine. i have even uninstalled the apple products on my computer and tried to re install them but not
-
Why does my Ical no longer sync with my computer?
When I put a new appointment on my iPhone ICal, it no longer appears in my Computer ICal. I have checked all the settings on my phone, and they are enabled, so I don't know what is going wrong. My computer is also connected to ICloud. It worked fine
-
Recursively Retrieving All the Files/Directories in a Directory
Hello, I want to retrieve all files in a directory, and ran into this sample code: www.ni.com/example/27157/en/ This is the function that does the retrieve action: GetFilesAndDirectories(). Its content is as follow: void GetFilesAndDirectories(char
-
How can I get iTunes to recognize my iPad2?
How can I get iTunes (on Windows Vista) to recognize my iPad2?
-
hi im still fairly new to java and i was just wondering how i would go about making a cancel button for my JOptionPane boxes also i have an array that when its searched it displays the result in JOptionPane windows, but if there are more than one res