How to make the default tree row selection programatically
I have one use case where I am displaying the tree table based on some parameter which is just for filtering the table and display the part of hierarchy.
The problem here is I want to make a default selected row when the tree will be rendered to UI based on the primary key(that is the input parameter).
can you please tell me how to do this.I am using jdev 11g.
thanks,
Harsh
Hi,
for this you need to know where in the path the PK is. If e.g. the PK is for a second level node then you need to pass the first level node PK as well. Nodes in a tree are defined as ArrayLists. So unfortunately your question doesn't provide enough information
Frank
Similar Messages
-
How to make the APEX tree in the "Expand All" shape by default?
Could anybody please enlighten me on how to make the APEX tree in the "Expand All" shape by default please? I created an APEX tree and by default it's in the "Collapse All" shape. I am using APEX 4.1.0.00.21
Hi,
you can check the view source of html and check the onclick code written on that plus sign(Expand All), just copy that onclick javascript code and put it on page javascript event.
Thanks,
Jaydip Bosamiya
+91-76000 23053
http://jbosamiya.blogspot.com -
How to chop the line "25 rows selected"
Hi all,
I am creating reports by connecting Oracle from a shell script using spool,however everything is ok.
how do I chop the line "25 rows selected" at the end of report?
Any suggestion!!!!set feed off
before the query. -
How to make the obligate field in selection screen
Hi ,
In my report two radio buttons and two bloc selection screens are there.When we select the first radio button first screen will be editable second screen will be non-editable vice-versa.
but the problem is in each selection screen one mandatory field is required suppose if i give the one field obligatory in first block screen it is not allowing the second readout please help me regarding this how i will make the mandatory field in both screens.
Thanks,
HarinathHi...
Dont Declare your field as OBLIGATORY.
Instead perform the validation in AT SELECTION-SCREEN event. But validation should be only when Particular Radiobutton is selected.
And Generate only Error Message (Type E).
Try this code:
AT SELECTION-SCREEN on <yOUR mandatory field>.
IF PA_UPD = 'X'.
IF <YOUR MANDATORY FIELD> IS INITIAL.
Message 'Entry is must in this field' type 'E'.
ENDIF.
ENDIF.
AT SELECTION-SCREEN OUTPUT.
IF pa_udp = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'ABC'. "#CCE
screen-active = 1.
ELSEIF screen-group1 = 'DEF'.
screen-input = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ELSEIF pa_rep = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'ABC'. "#CCE
screen-input = 0.
ELSEIF screen-group1 = 'DEF'.
screen-active = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
<b>Reward if Helpful</b> -
How to make a Jtable's row selected thru program
Hi , in my application few of the rows (not continous)
need to get selected automatically when the jTable is intially shown.
I did this using table.setRowSelectionInterval(0,2)
This method works fine selecting all the rows from 0 th to 2 th row,
but if i want only 0 th and 2 th ( excluding the 1 st row ) to be selected , i dont know how to do that???
i tried the following also
//indeces of rows to be selected in the table are stored
//in array
int[] array = new int [2];
parray [0]= 0;
parray [1]= 2;
table.setRowSelectionInterval(parray[0], parray[0] );
table.setRowSelectionInterval(parray[2], parray[2] );
//for each iteration a single row will be selected
//coz the starting and ending indeces are same ie
(parray[0],parray[0])
but when this code is run only the 2 nd row gets selected , what abt the 0'th row???
please help.
Thanx.sorry
there is a small correction in the above code
//indeces of rows to be selected in the table are stored
//in parray
int[] parray = new int [2];
parray [0]= 0;
parray [1]= 2;
table.setRowSelectionInterval(parray[0], parray[0] );
table.setRowSelectionInterval(parray[1], parray[1] );
//for each iteration a single row will be selected
//coz the starting and ending indeces are same ie
(parray[0],parray[0]) -
How to set the default tree node in JTree?
I want to set a default tree node in JTree when start the program,
what is the method or the function to call?
Thanks~If you by "default" mean "selected", then you can use one of the setSelectionXXX methods in the JTree API.
If you by "default" mean something else, never mind this post :-) -
How to Make the Default Button Marker Not Show Upon Launching...
I am trying to only have the markers show up on the menu item when you roll over it. However, when the menu is first launched, the marker is automatically showing up on the first button.
I have selected "None" as the default menu button in the menu config. I am also using Photoshop to make the menu and creating the (+) buttons there.
Any help would be greatly appreciated.
Thanks.
DaveCreate an invisible button (turn off the visibility of all layers) and
set it to use Highlight Group 2 (edit the Menu Color Set). Set the
opacity of all the highlight states to 0%. Make the invisible button
the default button.
-Jeff -
How to make the default param work?
Hi experts,
When I define a default value for a parameter in a procedure or function, such as (p in varchar2 default null), and when I call it without providing the parameter value, I am getting the "PLS-00306: wrong number or types of arguments in call to procname" error. How is the default supposed to work?
Thank you.
BenHere is what I have,
create or replace procedure CJIINGetBookingList (
p_LastName in varchar2,
p_FirstName in varchar2,
p_MiddleName in varchar2,
p_DOB in varchar2 default null,
p_OLN in varchar2 default null, --- DLN
p_AddressCity in varchar2 default null,
p_AddressZip in varchar2 default null,
p_InCustody in varchar2 default null,
p_Race in varchar2 default null,
p_Gender in varchar2 default null,
p_JailDateStart in varchar2 default null,
p_JailDateEnd in varchar2 default null,
p_ReleaseDateStart in varchar2 default null,
p_ReleaseDateEnd in varchar2 default null,
p_BkSearchResults out sys_refcursor
Thanks.
Ben -
WPF: How to make the Column and Row separator more wide and different color in datagrid?
Our application uses WPF.
One of request is make the DataGrid column separator and row separator more wide and use different color and remove original black separator of rows and columns.
Which template we need to modify to make it? Thx!
JaneCHi Magnus,
Thanks for replying our question and provide your suggestions!
Now we know modify both HorizontalGridLinesBrush and VerticalGridLinesBrush we can change the DataGrid cell separator color.
Following your suggested, we modify the DataGridCell as following:
<Style x:Key="Body_Content_DataGrid_Centering"
TargetType="{x:Type DataGridCell}">
<Setter Property="Padding" Value="2,0" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type DataGridCell}">
<Border BorderThickness="2" BorderBrush="{StaticResource PageBorderBackground}" Margin="-1">
<Grid Background="{TemplateBinding Background}" VerticalAlignment="Center" Height="42">
<ContentPresenter VerticalAlignment="Center"/>
</Grid>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="DataGridStyle1" TargetType="{x:Type DataGrid}">
<Setter Property="HorizontalGridLinesBrush" Value="{x:Null}"/>
<Setter Property="VerticalGridLinesBrush" Value="{x:Null}"/>
</Style
JaneC -
How to make the default shutdown operation to be a forced one?
Just recently I clicked on shut down and went with my business, only to find out on return that OS X didn't shutdown the laptopt because "firefox prevented" it from doing so. What a BS.
Is there a way to change the default parameters for the shutdown execution?No.
You could go into the Terminal and use the "sudo shutdown -h now" -
How to make the contents of NSTextField selected?
Hi,
I'm creating an NSTextField (from within a custom NSView):
NSTextField *textField = [[NSTextField alloc] initWithFrame:NSMakeRect(20, 20, 50, 16)];
[textField setStringValue:@"abc"];
[textField setSelectable:YES];
[textField setEditable:YES];
[textField selectText:self];
I want the contents to be selected ready for the user to start typing, but despite calling selectText, the text field is never selected. Is there another step I have to do first?
Thanks
SteveSteve556 wrote:
Now, if you change NSView to NSTextView in the @interface, you will see the behaviour I'm getting, that the NSTextField still appears and functions, but the contents are no longer selected.
I haven't put this in a testbed yet, Steve, but need to ask a couple questions anyway: Are you (1) having a problem getting your NSTextField object(s) to accept first responder, or unable to select text manually? Or (2) are you expecting to see the selected text when a text field object isn't first responder (i.e. when it's neither displaying the caret nor connected to the field editor)?
As to #1, your code shows that the text field is added as a subview of the NSTextView object. Have you tried making the text field a sibling view? I.e. both the text view and the text field would be subviews of the content view, but the text field(s) would be higher in the subview order. You can change the order by dragging in the xib window (with the View Mode switch in Center position), or you can send [addSubview:positioned:relativeTo:|http://developer.apple.com/mac/library/docum entation/Cocoa/Reference/ApplicationKit/Classes/NSViewClass/Reference/NSView.html#//appleref/occ/instm/NSView/addSubview:positioned:relativeTo:].
If #2, I don't know of any easy way to get NSTextField to highlight text when it's not first responder. In fact I don't think NSTextField remembers which text was selected once it's no longer editing. From [Text Fields, Text Views, and the Field Editor|http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/UI TextView/TextFieldsAndViews.html#//apple_ref/doc/uid/20001799] in +Text Views+:
Because only one of the text fields in a window can be active at a time, the system needs only one NSTextView instance per window to be the field editor. Among its other duties, the field editor maintains the selection. Therefore, a text field that's not being edited typically does not have a selection at all. (However, developers can substitute custom field editors, in which case there could be more than one field editor.)
On the other hand, +NSTextView does remember+ the range of selected text and highlights that text in a different color when not editing. So you might consider creating additional smaller NSTextView objects in place of the NSTextField objects.
The [Cocoa Text System|http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/Te xtArchitecture/TextArchitecture.html] is rich in [details and capabilities|http://developer.apple.com/mac/library/documentation/Cocoa/Concept ual/TextEditing/TextEditing.html#//apple_ref/doc/uid/10000157] about which I'm clueless. So if you need to dig much deeper, I hope one of our OS X experts will respond.
\- Ray -
How to control the number of rows selected from a sybase database table?
Hi, JDBC guru,
I'm working on project using Sybase 11.9.x database.We need to process a record in a table,first select it from the table,then do some computing,finally write it to a dbf file, if the above steps succeed,remove the original row in the table.Quite evidently, all these operation should be put into one transaction. But how can I select just a number of rows from the sybase database table?
Any hints?
Thank you in advance.
Regards,
JusitneStatement stmt...
stmt.setMaxRows(20); -
How to make the navigation tree icon in an advanced datagrid to expand in different columns
Hi All ,
I am using an application built using Flex 3 .
In my application I am using an AdvancedDataGrid for datadisplay.
And the hierachy is like this
Tree structure in advanced datagrid at present :
Header 1
Header 2
Header 3
Header 4
Header 5
Parent Tree
Expanded1
Expanded2
Expanded3
ParentTree
Expanded1
Expanded2
Expanded3
value
Expected tree structure in advanced datagrid :
Header 1
Header 2
Header 3
Header 4
Header 5
ParentTree
Expanded1
Expanded2
Expanded3
value
can someone tell me if this is possible in advanced data grid and if possible please let me know how do i expand the tree icons in seperate columns ...
Thanks ,
AjanthaHi,
you can check the view source of html and check the onclick code written on that plus sign(Expand All), just copy that onclick javascript code and put it on page javascript event.
Thanks,
Jaydip Bosamiya
+91-76000 23053
http://jbosamiya.blogspot.com -
How to change the default color of the selected row
hi all,
I need to know how to change the default color(yellow) of the selected row in a table component.whether i need to change anything in the stylesheet.If so, where should i make the changes in the stylesheet.
thanks and regards,
rpkThe chart colors are being referred to *'palette.cxml'* file in these directories
BI_HOME\web\app\res\s_oracle10\chartsupport
BI_HOME\oc4j_bi\j2ee\home\applications\analytics\analytics\res\s_oracle10\chartsupport
you can change to your custom colors.
Restart OC4J and PS to make the new ones work..
Regards,
Raghu -
How to set the Default values for Info Objects in Data Selection of InfoPac
Hi All,
Flat file Extracion:
How to set the Default values for Info Objects in Data Selection Tab for Info Package
ex: Fiscal Year Variant Info Object having values 'K4' 'Y2' etc in Flat file
Initially default value(not constant) for this info Object value should be 'K4' in Info Package
If I set data selection value for this info object K4 it will retreive records with this selection only? how to handle
Rgds,
CVHi,
suppose as your ex. if you are having fiscalyear variant in the dataselection tab then specify K4 in the from column, again the ficalyearvariant row and click on insert duplicate row at the bottom . you will get another row . In that enter Y2 in the from column. now you can extract K4, y2 values .
haritha
Maybe you are looking for
-
Help me pleaseee idk what happen to my phone PLEASE
i was using my snapchat nd then i clicked on a name and it went to safari and it froze andthen the screen went black but it looks like its on and i cant reset nor turn it off and ive neverdropped my phone what can i do?somebody help me pleaseee i wo
-
when I use F-48, how do we process the down payment , is there a check printing happening in SAP and linking it to the KZ document or is check printing done outside the system or does the document number with KZ document type does not have any link w
-
How to combine Submit value and item values in report condition?
What I have is a report with some input parameters, one of which is a Select List with Submit that forces population of a second Select List. There is also a GO button. Depending on the combination of the two drop-downs, one of three report regions t
-
Same session id in two different server ?
We use the following configuration: Proxy-->Webserver-->Applicationserver. All servers are using WLS 5.1. We need to store client information in a http session in both the webserver AND the applicationserver ?
-
Trying to open Camera Raw (CR2)
Trying to open in PSE 11 but they open in Camera Raw 7.3. Anyway I was told to open them (3 images) from PSE bin amd then run photomerge of some kind. Please let me know the steps to do it right as I am jus starting this. Thanks