Htree-Value of the parent's selected node
Hi all!
I have an htree in oracle forms10g and I would like to have the value of the parent selected node. There is a function to trap the value of the selected node but I also need the parent's value too.
My tree is structured like this
company--> department--> service-->service_status.
the service_status can be active or no_active. If I click on let's say "active"
I would like to have all the records where service_status is equal to "active" for the service located above the "active" selected
I would like to have all the records where service_status is equal to "active"
for the service located above the "active" selectedI'm not sure what you mean by that, but try "ftree.get_tree_node_parent(my_tree, my_node);" for getting the parent.
Similar Messages
-
Writing value in the parent curr adjs node of the value dimension
Hi,
Is it possible to write amount in the parent curr adjs node of the value dimension through rule. If yes, how
Thanks & Regards
mnrHi,
Is it possible to write amount in the parent curr adjs node of the value dimension through rule. If yes, how
Thanks & Regards
mnr -
Update the values in the table on select of a particular row
hi
I want to update the values in the table on selecting the particular row.
im able to select the particular row using Leadselect.
can any one help me in updating the values in the table?
regards
rajihi,
values are coming from my database ( SQLServer.)
on click of the button i am able to display the values from the database.
My problem is on selection of any row , i should be able to edit/update the values in the table .
regards
raji -
Cascading LOV does not work when setting the value of the parent LOV with DA
Hello All,
Using APEX 4.2.2.
I have tow LOVs
Parent LOV item is: P50_TYPE
Child LOV item is : P50_PROJECT_ID
In other words in the attributes of the item P50_PROJECT_ID we have :
> Cascading LOV Parent Item(s): P50_TYPE
> Page Items to Submit: P50_TYPE
> List of values definition: something similar to:
Select * from mytable where type = :P50_TYPE
I use DA that execute JS code to set the value of the P50_TYPE item
something similar to:
> $('#P50_TYPE').val(2);
Having done this, the P50_PROJECT_ID item does not get refreshed, when the value of P50_TYPE is changed. Namely, P50_PROJECT_ID remains empty, unless end user manually changes the value of P50_TYPE.
Any help please ?
Regards,Thanks Scott,
By the way, I remember reading a thread posted by you about Sumneva Drag & Drop Report Region plugin that was answered by Tom . But, I cannot find this plugin anywhere. Does not it supported in APEX 4.2 ? Is there any alternative out there ?
If you use it, and it works find with you, can you please send it to me on [email protected] ?
Regards,
Fateh -
How to get multiple values from the db using select
hi all,
i am using oracle 9i database
i created a procedure
create or replace procedure sample_proce
as
to_i varchar2(50)
begin
select to_id into to_i from sample where flag in('y');
dbms_output.put_line('hai'|| to_i);
end;
when i executed this procedure the following error occurred.
error at line 5 fetching too many rows.
but when i execute the select query alone i can able to view all the rows.
how to resolve iti used the following procedure
create or replace procedure sample_proc
as
begin
for s in(select to_id from sample where flag='y')
loop
dbms_output.put_line(s.to_id);
end loop.
end;
it is executed fine. i can able to fetch all the rows.
how to pass all these values into the another procedure.
we usually pass only one value into another procedure, i do no how to pass all the values . please help me.
Thank u. -
How to get all values in the range of select option into internal table?
Hi,
I need to capture all entries coming in the range of select option into one internal table.
How to do get that?
For E.g
select-options: matnr for mara-matnr.(select option)
IF I enter G0100013507892 as lower value of matnr and G0100014873947 as higher value
and if there are 10,000 materials in the above range, then I want to capture all theses 10000 materails in one internal table. How to do that?
Regards,
MrunalHello Mrunal Mhaskar ,
What i understand you can do one thing go in debug mode
Try this code : -
LOOP AT s_matnr_ex.
IF s_matnr_ex-low IS NOT INITIAL.
i_matnr-matnr = s_matnr_ex-low.
i_matnr-option = s_matnr_ex-option.
APPEND i_matnr.
CLEAR : i_matnr.
ENDIF.
ENDLOOP.
LOOP AT s_matnr_ex.
IF s_matnr_ex-high IS NOT INITIAL.
i_matnr-matnr = s_matnr_ex-high.
i_matnr-option = s_matnr_ex-option.
APPEND i_matnr.
CLEAR : i_matnr.
ENDIF.
ENDLOOP.
In the i_matnr table high and low values are there.
Regards,
Vandana. -
How to set values to the structure containing a node with cardinality 0..n
Hello.
I 'm trying to set values for the node with cardinality 0..n. The node type is "Fields".
<xsd:complexType name="Field">
<xsd:sequence>
<xsd:element name="fieldCode" type="xsd:string"></xsd:element>
<xsd:element name="displayValue" type="xsd:string" minOccurs="0"></xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Fields">
<xsd:sequence>
<xsd:element name="field" type="tns:Field" minOccurs="0" maxOccurs="unbounded"></xsd:element>
</xsd:sequence>
</xsd:complexType>
I need to set several values for the element "fieldCode" but it has cardinality 0..1 and BPM does not allow it but I did not find any option about how to set values for the structure of type "Fields". Could you help me?
Best regards,
Timur SemenchukHi Marcus,
If there is no way you could change the cardinality of the node, and thus it can contain 0..n items, I think you should create-and-add a new element programmatically.
Since the collection can contain zero elements, I would add a 'new' button, which upon clicking adds one new element via:
IYourNodeElement yourNodeElem = wdContext.nodeYourNode().createYourNodeElement();
wdContext.nodeYourNode().addElement(yourNodeElem);
Hope this explains a bit!
Best,
Robin van het Hof -
0FISCPER - not populates value in the look up - selection screen -(urgent)
Hi all,
Fiscal year/period ( 0FISPER )is set to user input veriable that to appears in the selection screen, when we click on the Lookup for the Fiscal Year/period - dont get the list of possible Periods to choose from.
its an Master data infoprovider and fiscal period fetching the data from T009C. Hope it might be the reason not appear the possible periods in lookup.
How to get the fiscal yesr periods in look up?
Even I am not able to edit the Master data Tab of the Onfoobject in chnage mode.
what could be reson ?Hi,
what type of search help is this.
If uou created this search help through se11 then assign values to the importing & exporting fields in the down side of the screen.
With Regards,
Sumodh.P -
Getting the name of selected Node in Adobe 3D PDF
Hello,
I'm trying to use the following code to get the name of the selected node for a 3D object in my PDF.
var c3d = this.getAnnots3D(this.pageNum)[0].context3D;
c3d.activated = true;
var select = c3d.scene.selectedNode.name;
I get the error
TypeError: c3d.scene.selectedNode is undefined
19:Console:Exec
undefined
I have placed my code at the folder level.
Can someone help please?The XPath expression for attribute is tag-name/@attribute-name
-
AST Acctype Accounts - Need a different value at the PARENT level of Time Dimension
Hi All,
We have a planning model wherein we have the following hierarchy in the account dimension:
CLOSECUSTOMERS
OPENCUSTOMERS
NET ADDS
GROSS ADDS
MIGRATE
DISCONNECTIONS
CLOSECUST and OPENCUST are AST type accounts since we need as of balance, whereas the other accounts like Gross Adds, Migrations and Disconnections are EXP type, as we need a cumulation of these values for a particular period.
Account
Jan 2011
Feb 2011
Mar 2011
Q1 2011 ( in BPC)
Q 2011 (Required)
Opening Customers (AST)
1000
1020
1070
1070
1000 (Jan opening)
Gross Adds (EXP)
50
100
60
210
210
Migrations (EXP)
-20
-30
-30
-80
-80
Disconnections (EXP)
-10
-20
-70
-100
-100
Closing Customers (AST)
1020
1070
1030
1030
1030
The business is looking for more of a summary at their quarterly level. i.e. what was the opening for the quarter, the delta changes that happened during the year, and the closing balance.
The issue is mainly with the opening value. It takes the value from the latest month. But the value is needed from the earliest month of that calculated time period.
We do not have a Flow Dimension in the planning model and the users need this in ad-hoc reporting as well. So we do not have an option of managing this at a reporting level (using EPMCopyRange or something similar)
Is there any other solution to this issue?
Any help would appreciated.
ThanksHi,
A bit not clear requirements. You are trying to create separate accounts for Opening and Closing? Looks strange! Please, use Flow dimension for this things. Trying to emulate it on the report level will create a lot of misunderstanding...
B.R. Vadim -
How to display the path of selected node of a tree table.
Hi,
I have one use case where I have to display the path of node of tree table which is selected one.
e.g.
Suppose the tree table is like this.
Folder1(root)
->folder2
->folder3
->folder4
Now when I select this folder1 then path display should be "/folder1(root)"
when i select the folder4 then path should be "/folder1(root)/folder3/folder4"
Hope this one will help to understand my use case..
ThanksHello,
try this:
jsp page:
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1">
<af:messages id="m1"/>
<af:form id="f1">
<af:tree value="#{bindings.RootNodes.treeModel}" var="node"
rowSelection="single" id="t1" expandAllEnabled="true"
rowDisclosureListener="#{Test.testDisclosureListener}"
selectionListener="#{Test.SelectionListener}">
<f:facet name="nodeStamp">
<af:panelGroupLayout id="pgl0">
<af:outputText rendered="#{empty node.Link}" value="#{node.Edesc}"
id="ot1"/>
<af:goLink rendered="#{!empty node.Link}" targetFrame="_blank" text="#{node.Edesc}" destination="#{node.Link}" id="gl1"/>
</af:panelGroupLayout>
</f:facet>
</af:tree>
<af:outputText value="#{bindings.Id.inputValue}" id="ot2"
partialTriggers="t1">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.Id.format}"/>
</af:outputText>
</af:form>
</af:document>
</f:view>
</jsp:root>
code:
package testing;
import java.util.Iterator;
import java.util.List;
import model.businessObjects.view.ZamerTreeMenuViewRowImpl;
import oracle.adf.view.rich.component.rich.data.RichTree;
import oracle.jbo.Row;
import oracle.jbo.uicli.binding.JUCtrlHierBinding;
import oracle.jbo.uicli.binding.JUCtrlHierNodeBinding;
import org.apache.myfaces.trinidad.event.RowDisclosureEvent;
import org.apache.myfaces.trinidad.event.SelectionEvent;
import org.apache.myfaces.trinidad.model.CollectionModel;
import org.apache.myfaces.trinidad.model.RowKeySet;
public class Test{
public Test(){
public void testDisclosureListener(RowDisclosureEvent rowDisclosureEvent){
RichTree tree1=(RichTree)rowDisclosureEvent.getSource();
CollectionModel model = (CollectionModel)tree1.getValue();
JUCtrlHierBinding treeBinding = (JUCtrlHierBinding)model.getWrappedData();
JUCtrlHierNodeBinding start = null;
List focus = (List)tree1.getFocusRowKey();
tree1.setRowKey(rowDisclosureEvent.getAddedSet().iterator().next());
System.out.println("testing.Test.testDisclosureListener>>"+treeBinding.getPath());
start = (JUCtrlHierNodeBinding)tree1.getRowData();
// ZamerTreeMenuViewRowImpl temp = (ZamerTreeMenuViewRowImpl)start.getRow();
JUCtrlHierNodeBinding parent=start.getParent();
String path="";
ZamerTreeMenuViewRowImpl r = (ZamerTreeMenuViewRowImpl)start.getRow();
path+="/"+r.getAdesc();
while(parent!=null){
r = (ZamerTreeMenuViewRowImpl)parent.getRow();
if(r==null){
break;
System.out.println("testing.Test.testDisclosureListener>>"+path); -
Restrict variable values in the pop-up selection screen
Hi,
I have a variable based on a caracteristic that has 0COMP_CODE as attribute in a Web Report (BW 3.1B).
This variable has to be accessible so that users can select a value.
I need to restrict the values that users can see on the selection screen according to their 0COMP_CODE value, even in the pop-up.
I have tryed authorization variable and user exit, but none worked.
The best I could do was a "several single values" variable that was preselected with the caracteristics of their 0COMP_CODE, but it didn't worked in the pop-up.
Does anybody knows how to handle this?As far as I could find out, it should be made through customer exit.
The point is : I have to use a customer exit variable that has been check as "ready for input".
I can't find a way to restrict the values displayed in the variable selection screen (in the help pop-up window for this variable).
The exit can pre-fill the selection fields with values, but whenever the user opens the window, he sees all the values.
I have tryed all the values for I_STEP (0,1,2 and 3) but none did it.
Does anybody knows how to limit those values? -
To access the value of the fields in selection screen
Hi,
I have used PNP Logical database in the report and also I have created a Report category with organizational unit,begin date and end date.so in my selection screen,I have these three fields.
Now i need to get the value of those fields in the program..so I need to how to get the value of these fields.
Regards,
KiruthiHi Kiruthi,
Goto SM31 -> V_T599F.
Write down your report category.
There u'll see the technical names of the selection screen fields.
You can use PNPXXXX name in your report.
Best regards,
Dilek -
How to capture the selected values of the filter?
Hi Everybody
I have created a dashboard using a 4 column filter. It all works well - no problem.
I now need to enhance the functionality of the dashboard which needs the selected values of each of the parameters of the filter. As far as I know, the selections of the fiilter columns are not "Inserted In" any cell, only the data values of the corresponding row not including the filter columns are inserted in the "Inserted In" row, is there a way to capture the values of the filter column selections in some cells on the spreadsheet?
An early response from you all shall be highly valued.
Also, does anyone know which is the current equivalent version of Xcelsius to the old Xcelsius Workgroup version. This Xcelsius Workgroup version supported the "XML Integration Dynamic Refresh" wherein you didn't have to reinserted the updated Excel spreadsheet into Xcelsius have an updated dashboard - as long as the corresponding XML files were updated with the latest data, the exported dashboard would refresh.
Best regards
Deepak AgarwalAlong with the PBO and PAI event, add a POV event in the flow logic of the screen
DEMO_DROPDOWN_LIST_BOX -is a good demo example.
PROCESS ON VALUE-REQUEST.
FIELD structure_name-field_name MODULE create_dropdown_box.
In the report :
MODULE create_dropdown_box INPUT.
SELECT carrid carrname
FROM scarr
INTO CORRESPONDING FIELDS OF TABLE itab_carrid.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'CARRID'
value_org = 'S'
TABLES
value_tab = itab_carrid
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
ENDIF.
ENDMODULE.
In the layout, assign a Function Code , for eg : 'SELECTED' to the listbox and lets say name of the field is SDYN_CONN-CARRID. So in the PAI module,
MODULE user_command_0100 INPUT.
CASE ok_code.
WHEN 'SELECTED'.
MESSAGE i888(sabapdocu) WITH sdyn_conn-carrid.
ENDCASE.
ENDMODULE.
sdyb_conn-carrid will contain your selected field -
Binding textbox to combobox selected value when the selected value is blank
I have a simple form that binds data to a combobox and when one of the values in the combobox is selected it fills a textbox with the corresponding column in that table. However, if that combobox value is empty(meaning that table cell is empty) then
the textbox will not fill with the correct value. I am finding this hard to explain so I will lay it out.
The table[COA] is as follows:
ID
Fund
Fund Description
Bus Unit
Bus Unit Description
Obj
Obj Description
Sub
PEC
1
2789
Account Refund
10000
General Fund
1500
ASC Voucher
10
2
2789
Account Refund
10000
General Fund
1500
Voucher
The following is my code:
private void subComboBox_SelectedIndexChanged(object sender, EventArgs e)
pECTextBox.Clear();
using (SqlConnection connection = new SqlConnection(@"Data Source=MARYANNEBORJA\SQLEXPRESS;Initial Catalog=jdeDatabase;Persist Security Info=True;User ID=Jordan;Password=*****"))
SqlCommand command = new SqlCommand("SELECT * FROM [COA] WHERE [Bus Unit]='" + bus_UnitComboBox.Text + "' AND [Obj] ='" + objComboBox.Text + "'AND [Sub] ='" + subComboBox.Text + "'");
command.Connection = connection;
connection.Open();
SqlDataReader read = command.ExecuteReader();
while (read.Read())
if (!read.IsDBNull(8))
pECTextBox.Text = (read["PEC"].ToString());
else
pECTextBox.Text = "";
obj_DescriptionTextBox.Text = (read["Obj Description"].ToString());
read.Close();
I fill my combobox with Sub values based on the Bus Unit and Obj. Since the Bus Unit and the Obj in both rows are the same the combobox is filled with 10 and "".
Here is where the problem occurs. When I select "10" in the combobox I want a textbox to fill with correct Obj Description field. So selecting "10" would give me 'ASC Voucher' in the textbox and selecting "" should
give me 'Voucher' in the textbox, but this is not the case. I can only get 'ASC Voucher' to fill the textbox. When I select "" it keeps the textbox at 'ASC Voucher'.
My guess us that is has something to do with the value being empty in that table cell because when I am selecting other values it works.
Any guess as to what I should do?Hi objectifyThat,
When Your subComboBox.Text is null, you should use "Sub is null" in your SQL like below.
private void comboBox3_SelectedIndexChanged(object sender, EventArgs e)
pECTextBox.Clear();
using (SqlConnection connection = new SqlConnection(@"Data Source=MARYANNEBORJA\SQLEXPRESS;Initial Catalog=jdeDatabase;Persist Security Info=True;User ID=Jordan;Password=*****"))
string cmdstring = "SELECT * FROM [COA] WHERE [Bus Unit]='" + bus_UnitComboBox.Text + "' AND [Obj] ='" + objComboBox.Text + "'AND [Sub] ='" + subComboBox.Text + "'";
if (string.IsNullOrEmpty(subComboBox.Text))
cmdstring = "SELECT * FROM [COA] WHERE [Bus Unit]='" + bus_UnitComboBox.Text + "' AND [Obj] ='" + objComboBox.Text + "'AND [Sub] Is Null";
SqlCommand command = new SqlCommand(cmdstring);
command.Connection = connection;
connection.Open();
SqlDataReader read = command.ExecuteReader();
while (read.Read())
if (!read.IsDBNull(8))
pECTextBox.Text = (read["PEC"].ToString());
else
pECTextBox.Text = "";
obj_DescriptionTextBox.Text = (read["Obj Description"].ToString());
read.Close();
If you have any other concern regarding this issue, please feel free to let me know.
Best regards,
Youjun Tang
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
-
my lock button and the switch to turn the volume on & off is broke. also the back of my phone is cracked. i know apple doesn't replace cracked phones so would i have to pay for a replacement even though my lock button & the switch for the volume is b
-
Garbled text after inserting a converted MS Word Doc into PDF
I am on a PC running XP professional using Word 2003 and Acrobat Pro v.8. I successfully converted a variety of MS Office (Word, Excel,PowerPoint) documents into Acrobat Pro v8 PDF files. I then took all of these individually converted PDF files and
-
Pre Fader AUX Sends....
Is it possible to set up aux sends in Logic to be pre fader? Dual G5 Mac OS X (10.4.7)
-
I used the HDMI cable from my Macbook Pro to my Panasonic TV to watch DVD's but I had no sound, so I used the community suggestion in going to system preferences>sound etc. followed the instructions and got great sound in fact very loud to my TV so
-
Haven't Seen anyone else with this problem
I installed the iTunes update that everyone seems to be having problems with, but my problem is different from everyone else's. My iTunes launches itself a couple of minutes after I quit it. I made sure I wasn't accidentally opening it by exiting eve