How can I leave an empty row?
Hi,
If I want to use GridBagLayout, how can I leave an empty row? Or empty column? When I create the buttons on a frame, are they created sequentially? so Is that mean I can't put something back to the first row later in the program? Thx.
Adrian
I'm just guessing, since I havent done Java for a long time... but if you want an empty row... what pops up in my mind first is like putting in an empty JLabel/Label... for that row... but then if you wanna fill it in... i dunno...
Similar Messages
-
How can I create an empty row on a #TempTable based on an input parameter
So if my Line of Business is 'MC' or 'MG', I have to go over to Oracle and get its data accordingly. Then, when I create my final report result set, I think I'll want to UNION in that result set if my Parameter is 'MC' or 'MG'. I don't think I can UNION
based on the value of the Parameter. So my thought process was to create an empty row on my #TempTable so when I UNION and my parameter is NOT 'MC' or 'MG' then it will have nothing to UNION in. My struggle is how do I create an empty row in my #TempTable
if my parameter is NOT 'MC' or 'MG'
If I am wwwaaayyy off here, please tell me so.
This is my #TempTable Creation SQL...
IF EXISTS
(SELECT 1
FROM [#TempTable_LineOfBusiness_Parameter]
WHERE [#TempTable_LineOfBusiness_Parameter].[RESULT] IN ('MC','MG'))
BEGIN
SELECT *
INTO [#TempTable_Market_Prominence_Member_Data]
FROM OPENQUERY
(RPDMHF,
'SELECT HCFA_NAME_ORG.NAME_ID,
HCFA_NAME_ORG.MEMBER_ID,
HCFA_NAME_ORG.HIC_NUMBER,
MEMBER.NAME_FIRST,
MEMBER.NAME_LAST,
HCFA_DATE.START_DATE,
HCFA_DATE.END_DATE,
HCFA_NAME_ORG.COUNTY_CODE,
HCFA_NAME_ORG.PART_A_PAYMENT,
HCFA_NAME_ORG.PART_B_PAYMENT,
HCFA_NAME_ORG.STATUS,
HCFA_NAME_ORG.ORG_ID,
HCFA_NAME_ORG.PLAN,
HCFA_NAME_ORG.ENROLL_DATE,
HCFA_NAME_ORG.PBP_ID,
HCFA_DATE.VALUE
FROM SC_BASE.HCFA_DATE
LEFT JOIN SC_BASE.HCFA_NAME_ORG
ON HCFA_NAME_ORG.NAME_ID = HCFA_DATE.NAME_ID
LEFT JOIN AMIOWN.MEMBER
ON TRIM(MEMBER.MEMBER_NBR) = TRIM(HCFA_NAME_ORG.MEMBER_ID)
WHERE HCFA_DATE.INDICATOR = ''plan''
AND HCFA_DATE.START_DATE >= ''2015-01-01''
END
If I add an ELSE, it always comes back and tells me the #TempTable_Market_Prominence_Member_Data already exists. As if it's creating it regardless of the Top IF.
Thanks for your review and am hopeful for a reply.Hi ITBobbyP,
The error came back from your ELSE Statement most probably caused by the reason mentioned in Hoffmann's post.
Regarding your requirement, I would suggest you CREATE the [#TempTable_Market_Prominence_Member_Data] explicitly.
CREATE TABLE [#TempTable_Market_Prominence_Member_Data]
NAME_ID INT,
MEMBER_ID INT,
HIC_NUMBER VARCHAR(99),
NAME_FIRST VARCHAR(99),
NAME_LAST VARCHAR(99),
START_DATE DATE,
END_DATE DATE,
COUNTY_CODE VARCHAR(99),
PART_A_PAYMENT MONEY,
PART_B_PAYMENT MONEY,
STATUS VARCHAR(99),
ORG_ID INT,
PALN VARCHAR(99),
ENROLL_DATE VARCHAR(99),
PBP_ID INT,
VALUE INT
IF EXISTS
(SELECT 1
FROM [#TempTable_LineOfBusiness_Parameter]
WHERE [#TempTable_LineOfBusiness_Parameter].[RESULT] IN ('MC','MG'))
BEGIN
INSERT INTO [#TempTable_Market_Prominence_Member_Data]
SELECT *
FROM OPENQUERY
(RPDMHF,
'SELECT HCFA_NAME_ORG.NAME_ID,
HCFA_NAME_ORG.MEMBER_ID,
HCFA_NAME_ORG.HIC_NUMBER,
MEMBER.NAME_FIRST,
MEMBER.NAME_LAST,
HCFA_DATE.START_DATE,
HCFA_DATE.END_DATE,
HCFA_NAME_ORG.COUNTY_CODE,
HCFA_NAME_ORG.PART_A_PAYMENT,
HCFA_NAME_ORG.PART_B_PAYMENT,
HCFA_NAME_ORG.STATUS,
HCFA_NAME_ORG.ORG_ID,
HCFA_NAME_ORG.PLAN,
HCFA_NAME_ORG.ENROLL_DATE,
HCFA_NAME_ORG.PBP_ID,
HCFA_DATE.VALUE
FROM SC_BASE.HCFA_DATE
LEFT JOIN SC_BASE.HCFA_NAME_ORG
ON HCFA_NAME_ORG.NAME_ID = HCFA_DATE.NAME_ID
LEFT JOIN AMIOWN.MEMBER
ON TRIM(MEMBER.MEMBER_NBR) = TRIM(HCFA_NAME_ORG.MEMBER_ID)
WHERE HCFA_DATE.INDICATOR = ''plan''
AND HCFA_DATE.START_DATE >= ''2015-01-01''
END
Explicitly creating the temp table will offer below benefit in this case.
The ELSE statement is no longer needed, if the no rows get inserted into that table, it has nothing to union an empty table.
With the column datatype defined, you can avoid such conversion error
SELECT NULL AS COL1,NULL AS COL2 INTO #T
SELECT COL1,COL2 FROM #T
UNION
SELECT 1,'ABC'--Conversion failed when converting the varchar value 'ABC' to data type int.
If you have any question, feel free to let me know.
Eric Zhang
TechNet Community Support -
How can I pass an empty array to a parameter of type PLSQLAssociativeArray
How can I pass an empty array to a parameter of type PLSQLAssociativeArray in VB? I defined the parameter like this
Dim myArray() as String = new String() {}
Dim myPara as new Oracle.DataAccess.Client.OracleCollectionType.PLSQLAssociativeArray
myPara = 0
myPara.Value = myArray
When I execute my stored procedure giving the above parameter, I got error saying OracleParameter.Value is invalid.
I have tried to give it the DBNull.Value, but it doesn't work either.
Note: everything works fine as long as myArray has some item in there. I just wonder how I can make it works in case I have nothing.
Thank you,How can I pass an empty array to a parameter of type PLSQLAssociativeArray in VB? I defined the parameter like this
Dim myArray() as String = new String() {}
Dim myPara as new Oracle.DataAccess.Client.OracleCollectionType.PLSQLAssociativeArray
myPara = 0
myPara.Value = myArray
When I execute my stored procedure giving the above parameter, I got error saying OracleParameter.Value is invalid.
I have tried to give it the DBNull.Value, but it doesn't work either.
Note: everything works fine as long as myArray has some item in there. I just wonder how I can make it works in case I have nothing.
Thank you, -
How can i remove the empty sting from IList collection?
How can i remove the empty sting from IList collection. If i use the code i got System.NotSupportedException was unhandled exception. How can i achive this?
IList record = (IList)records;
int count = record.Count;
for (int i = 0; i < count;i++)
bool contains = record[i].Equals("");
if (contains)
record.Remove(record[i]);
Is anyone know, please suggest me.
Thanks in Advance!Try:
items.RemoveAll(s => string.IsNullOrEmpty(s));
Or you can filter them out using where:
var noEmptyStrings = items.Where(s => !string.IsNullOrEmpty(s));
Having fun with custom collections!
Basics of .NET Collections in C#
How does it work in C#? - Part 3 (C# LINQ in detail)
Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP] -
How can I filter the LOV rows at the runtime
I am working in oracle forms 6i.
My lov is based on a view. If I selected one row from LOV, that row should not appear in list box.
I would like to restrict rows before saving a form. How can i filer the LOV rows at the runtime?
Please help me.Dear Mr.MH_BD,
Thanks for your immediate response,
My form is built based on master and detail link. On the multi row detail section I am invoking this LOV. The record group containing the following query:
select fees_id,fees_name,term_fees from sk_fees_mst where fees_bal>0;
fees_id
fees_name
term_fees
12
Tuition Fees
2500
13
Smart Class
100
14
Admin Fees
300
If I selected the fees_id 13 for the first row of detail section, then the LOV should display only the following in the next row:
fees_id
fees_name
term_fees
12
Tuition Fees
2500
14
Admin Fees
300
(ie.) Before commit form I need to filter the already selected fees ids from record group.
Thanks in advance. -
How can I do for a row of a query be data provider for a variable?
Hi friends, I have a problem !
How can I do for a row of a query be data provider for a variable?
I need that a value of variable be stored when the user select a row in a query. At the BPS we can do this configuring the variable selector in WIB, and in a WAB how I can do this ?
Best regards,
Gustavo LiberadoIn this case when I press the key to call other forms I need to wait for the response in the secondary form and then process the result.That is exactly what a "modal JDialog" (or JOptionPane) are used for.
Try it. Create a short demo program. All you need is a JFrame with a single button to show the modal dialog. All you modal dialog needs is a single button to close the dialog. After you show the modal dialog add a System.out.println(...) statement in your code and you will see that it is not executed until the dialog is closed.
Then once you understand the basics you add the code to your real program.
If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area. -
How can we pass the entire rows of a table to a web service in a VC model ?
Hi,
On the click of the submit button, I have to pass the rows of two tables into an enterprise service. This service also takes other fields of a form as an input.
How can we pass the entire rows of a table into a service ?
Regards,
NitinHi Nitin,
It seems that you have two or three different structures to pass data using your webservice. In your main question, two tables, you can join both in one table and from there call the webservice. In order to pass the entire table you need:
1. Draw a line between your joinned table and your service,
2. Map the fields,
3. Create a 'SUBMIT' in your table tool bar. Right click on your table and choose 'Create Toobar', '+', name and choose 'Submit' as your event.
4. Go to Configure Element (Table View) 'Multiple' at Selection Mode.
Reward points if helps you to solve your question.
Regards,
Gilson Teixeira -
How can I leave a group in iMessage?
I delete the group in iMessage because I don't want to receive any more messages.
Nevertheless, whenever a member sends a message, I get all the messages again. I have only deleted the previos messages.
In the users manual, they only tell how how to create a group, but not how to leave it.
Thank you.Sorry you can't.
-
I have a MBP 15" with Iphoto 9. When I right click on icon in dock 3 iPhoto libraries come up; one empty, one with 35,000 photos and one with 30,000 photos. How can I delete the empty library and merge the other two without getting duplicates?
You can delete the empty one by dragging it to the trash ( test everything before emptying the trash)
Merging libraries requires iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ - it is the only current solution to merging libraries
LN -
How can I have one thing open in Safari on my MacBook Pro and search for another thing in Safari without closing out of the other? For instance, How can I leave Pandora playing while I search Facebook?
With Safari open use the Command + T keyboard shortcut to open a new tab.
Or, Command + N to open a new window. -
How can I reduce number of rows in Planning webform in Smartview?
Hi,
I downloaded a Planning webform into Smartview. I want to reduce the 1000 rows down to 20 for a particular user as he does not submit data for the other 980 rows. How can I reduce number of rows in Planning webform in Smartview?
Someone said that I can insert vlookup code into Smartiveiw pointing to a new worksheet that has only 20 rows. I could not test it as our Planning 9.3.1 has a bug that would not take sub variables from Smartview.
Thanks.Hi,
My first reaction is why do you have a form with a 1000 rows, surely this is a design issue and doesn't benefit anybody when entering data, anyway why not have security on the dimensions then users will only see what they have access to when they retrieve the form in smart view or through the planning web front end.
Cheers
John
http://john-goodwin.blogspot.com/ -
How can I show additional tab rows when using many open tabs?
How can I show additional tab rows when using many open tabs?
What method (code) did you use to get the Tab bar displaying in the space used for the Navigation Toolbar (location bar)?
The Tab bar should be displayed above the Navigation Toolbar.
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
*Do NOT click the Reset button on the Safe Mode start window.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes -
How can I make the current row in a different color in ADF Table 10.1.3
Hi all
in JDeveloper 10.1.3 ADF Table ,
How can I make the current row in a different color ?
thanksAnd what exactly would "the component" be?
I tried the af:outputText, but it just creates a <span> around the value of the cell, and if I try the af:column it just won't use it at all!
Any suggestions? -
How can i explicitly lock a row of a Table
Hi
How can we implement optimistic locking , i am using Oracle as Database for my Application .
Assume that i am working on a single row of a Table .
Now please tell me how can i explicitly lock this row , so that other simultanoues users insert or update operations are not affected to this particular row .
I am not using any ORM related technology
Please help .raviprivate wrote:
Hi
How can we implement optimistic locking , i am using Oracle as Database for my Application .
Assume that i am working on a single row of a Table .
Now please tell me how can i explicitly lock this row , so that other simultanoues users insert or update operations are not affected to this particular row .Either you want optimistic locking which does not use (database) locks at all, or you want pessimistic locking which does use database locks.
In optimistic locking everyone is allowed to read and to update without taking out a lock. Usually the optimistic lock is realised by including either a 'version' or 'last_modified' column which with every update is either increased (version) or set to the current_timestamp (last_modified). The update statement must be issued with a condition including that column (eg UPDATE ... WHERE id=<id> AND version=<version at time of read>). If the column was already changed by another user or process zero rows will have been updated signalling to the program that another user already changed the row and the user must redo his changes, or a more complex method of change comparison can be done. -
hi friends
using `n how can i add two empty line (two carriage return), between these two lines in the output file?
PS C:\> $env:COMPUTERNAME | add-content c:\file.txt
PS C:\> $Env:USERDOMAIN | add-content c:\file.txt
i tested "$env:computername`n`n`n$env:userdomain" | add-content c:\file.txt but it results in
myPCMyDomain
but i wanted the contents of the output file be like this:
MyPC
#empty line here
#empty line here
MyDomain
i tested many other forms but didn't work.
thanksI tried it, as well. The line breaks were respected in the PowerShell console, Programmer's Notepad, and Word; they weren't in Notepad.
You are using a Unicode file. Locale is what?
If you just want notepad compatible line breaks then do this:
del file.txt ; "$env:computername`r`n`r`n`r`n$env:userdomain" | add-content file.txt ;notepad file.txt
Look in hex to see that `n is ^L or 0xA and is only one character. CrLf is 0xD 0xA - two characters.
My programmers editors and VS all understand a single ^L as a line break so does PowerShell. Only DOS/Notepad and other utilitis don't understand this..
¯\_(ツ)_/¯
Maybe you are looking for
-
Hi, in 10g, any query to find total used space in tablespaces ? thank you.
-
Photoshop Elements 12 will not launch
Hello I have windows 7. Ive recently bought pse12. I installed and created an adobe id. Day after installation I click on the icon on desktop and it loads the welcome screen. I then click photo editor. It looks like its trying to load/open, but never
-
Install can't be opened. You should eject the disk image.
Trying to download Flash Pro_11_5. I purchased the full license. Gatekeeper is off. Help!
-
Will Oracle Portal support WebDAV using HTTPS/SSL?
-
Hi, We are using ldap for creating oracle retail store inventory management users and creating store as well. I need to know that where can i find ldap admin user and what is the default ldap admin user after installing ldap ? Thanks Edited by: user1