partial trigger on the declarative elements
Hello
I have a declarative component with many facets and a high component < af:panelGroupLayout >. I would like to refresh the entire component with PPR. In my page, I have a selectOneChoice with autoSubmit = 'true', but now I have to set the property partialTriggers to the declarative elements.
So I created a new myPartialTriggers to attribute for declarative components as a string and changed the top element to < af:panelGroupLayout partialTriggers = "#{attrs.myPartialTriggers}" >. So now I can define the component property myPartialTriggers declarative the ID of the SelectOneChoice. It is not work that I get an exception:
Error occurred: Houston-29000: Unexpected exception caught: java.lang.IllegalArgumentException, msg = cannot convert: c42:iflt9:dc_r2:dc_c2:naturalPersonSoc of type java.lang.String class at class [Ljava.lang.String;
Thank you
JDev 11.1.2.4
Essentially, you surround the declarative component with a container and the container ppr. Read the whole story http://www.oracle.com/technetwork/developer-tools/adf/learnmore/005-how-to-bind-decl-comp-169123.pdf
Timo
Tags: Java
Similar Questions
-
The declarative elements (DC): how to access to the #{component} out
Hello
I created a DC of JSF, defind an attribute on it, has added a unlimited workflow, created a bean and added to it as a backingBean.
In the bean, I have:
The code works fine, when it is called from within the DC. But when it is called from a page of your, I get a NPE.public final String getAttrValue(String attrName) { ExpressionFactory ef = FacesContext.getCurrentInstance().getApplication().getExpressionFactory(); ELContext ec = FacesContext.getCurrentInstance().getELContext(); RichDeclarativeComponent rdc = (RichDeclarativeComponent)ef.createValueExpression(ec, "#{component}", Object.class).getValue(ec); return (String)rdc.getAttributes().get(attrName); }
I need to note that a component call the getAttrValue and the DC are in the same branch of the hierarchy, that is the calling component is inside the facet of the DC.
All the abovesaid was done in JDEV 11.1.1.3.0.
I think that #{component} should be changed.
Could someone advise me how to do the code works?Hello
"component" is an internal variable of the component declarative which has no visibility to the outside. To access his property of binding component using declarative and create a Set/getter accessor in a managed bean that creates an entry of type RichDeclarativeComponent. This allows you to access the component.
Frank
-
How to define an attribute of the declarative component with the list of options
12.1.3 jdev
I'm trying to define a declarative component UOM. It has a text box with a selectOneChoice of the optional codes for this type of unit of MEASURE.
I have uomType as one of the attributes of my unit of MEASURE. It may be of WEIGHT, VOLUME, LENGTH, etc. Is it possible to provide a list of the channels supported for my uomType? So, when the user uses this component, they can select a type they want in the list, instead of typing in themselves.
< afc:attribute > < afc:attribute - name > uomType < / afc:attribute - name > < afc:attribute - class > java.lang.String < / afc:attribute - class > < afc: required > true < / afc: required > < / afc:attribute > Thank you.
Hello
Unfortunately the lists are not an option with the declarative elements
Frank
-
How to use the declarative component without deployed as JAR
Hi all
I want to create a reusable component (declarative component) for PanelHeader with default features packed in I want to use in my application. Because this component will be used only in my project, I don't see a use to go through the process of creating a jar and deploying it before using it. Is it possible to use this component without creating a JAR.
Thank you
-Srini.User 895137,
your welcome to ignore the best practices in the development of the ADF. The declarative elements are deployed in the libraries of the ADF. If you keep the declarative component in the application then project you will have a chance to deploy independent of the application (which means that your ADF library contain more than just the source of the component (which is where your nightmare begins)). Therefore, best practices
1. create the declarative component in a new project in JDeveloper. Follow
http://download.Oracle.com/docs/CD/E21764_01/Web.1111/b31973/af_reuse.htm#BABJBFDD
2. If you don't ant to deploy components in a tag library, use declarative dynamic components (will not deploy-able in many applications, as you mentioned your future plan is), as shown here
http://download.Oracle.com/docs/CD/E21764_01/apirefs.1111/e12419/tagdoc/af_declarativeComponent.html
http://download.Oracle.com/docs/CD/E21764_01/apirefs.1111/e12419/tagdoc/af_componentDef.html
http://download.Oracle.com/docs/CD/E21764_01/apirefs.1111/e12419/tagdoc/af_xmlContent.htmlFrank
-
When to use the declarative components?
What is the declarative elements and when to use them?You will find all kinds of documentation/Articles by searching.
http://technology.AMIS.nl/Blog/2562/JDeveloper-11g-declarative-components-rapid-no-programming-composition-of-custom-JSF-components is the one I've used in the past.
John
-
11g - partial trigger on table master / detail does not
Hello
I do slip and fall a child vo to a page as a 'master table of detail. " It creates two tables, one for the parent and the other for the child. The childTable has parentTable as his partial trigger, when the selection on modified parentTable, childTable the data as changed.
Now, all this is broken when I join parentTable with panelCollection. The error in the editor said that the childTable cannot find any component with the id indicated in the partialTrigger property.
So, how can I enable 'partialTrigger' ing when using panelCollection?
Thank you.
Kind regards
RudiClick the Edit to the partialtrigger option and then browse to choose your table.
Note that you need to provide an I would for bounding Panel collection first. -
How to create the trigger WHEN-LIST-CHANGED to the text at the level of the item element
Hi all
I have a requirement that is to say that I developed on the form that contains an emp (empno, sal, job) details in the field of the form.job table (text element) contains lov. My requirement is when I select values in the lov it must create a new record in this tabular form. I did ' t get trigger WHEN-LIST-CHANGED at the level of the element for the work of i.e text point.
I tried this requirement by making the point of work as working fine.i of an item.it list used NEXT-ITEM KEY also to make the this.but is not our business requirements.
When lov changes he needs to create a new line.
How we do that. Can someone give me an idea please
Thank youHello
In the text element, you can use trigger KEY-LISTVAL and try to use the code as...LIST_VALUES; IF :FORM.ITEM_NAME IS NOT NULL THEN CREATE_RECORD; END IF;
When list change trigger only for the LIST_ITEMS and fires when you try to change the list_item
-Clément
-
What trigger use to change the value of the front element validate trigger
Hello
I would like to have an element of the DATE where it is possible to enter values as 1 + 12,-1, which should respond to the evolution of the value of the element to SYSDATE-/ + X. How should I do?
Now, when I get out of the question, I get a validation error because the value of the element is not a valid date. How can I change the value of the date before it is validated?
ConcerningCreate a non-base of data-element with the char data type.
Fill the element in the POST-QUERY-trigger with the value of the date element of the basis of something like:BLOCK.THECAHRITEM:=TO_CHAR(:BLOCK.THEDATEITEM, 'DD.MM.YYYY');
Then in the WHEN-VALIDATE-ITEM, check if the user entered a valid date, then simply write to the database column, otherwise check a valid value you want to treat, make the appropriate conversion and rewrite the date you got in the article database and the database element.
-
How to assign values to the current element where the cursor is?
Hi all
I have a block of "tabular" data, B_Emp (from the Employee table) and the other non-database & non tabular block consisting of a text_items B_Test.
'Emp_id' is one of the column in the Employee table and I want to attribute all the values of the Emp_id in all text_items of the B_Test in order, when you press a particular key.
Here's what I wrote in the trigger
Declare
i the number;
number of l_last_record;
next varchar2 (40); -to hold the values of cursor system of the next item in the block of B_Test
next_r varchar2 (40); -to hold the values of cursor system of the next record in the block of B_Emp
Begin
go_block ('B_Emp');
Set_Block_Property ('B_EMPLOYEES_ALL', DEFAULT_WHERE, "Emp_id is not null");
execute_query (no_validate);
last_record;
l_last_record: =: system.cursor_record;
premier_enregistrement;
next_r: =: SYSTEM. CURSOR_ITEM;
go_block ('B_Test');
Next: =: SYSTEM. CURSOR_ITEM;
because me in 1.l_last_record
Loop
go_item (Next);
: next: =: B_Emp.Emp_id;-here is the problem
next_item;
Next: =: SYSTEM. CURSOR_ITEM;
go_item (next_r);
next_record;
next_r: =: SYSTEM. CURSOR_ITEM;
WHEN THE OUTPUT: SYSTEM. LAST_RECORD = "TRUE";
End loop;
End;
Now, this gives me the expected bad Bind Variable error as there is no block of data with the name "next".
However, I checked the value of 'next' and 'next_r' (message (' value = ' | next)) and I'm getting the expected values.
So if somewhere, I am able to put my value in the current item the cursor (because at the beginning of the loop, my cursor system is exactly to the text element where I need to insert the value) so I did not have to use this " : next: =: B_Emp.Emp_id;"
OR
If somewhere, I am able to return the items in my B_test block dynamically so I can simply use
Loop
": B_test." dynamic reference for the element ": = : B_Emp.Emp_id;
next_record;
WHEN THE OUTPUT: SYSTEM. LAST_RECORD = "TRUE";
Please help me out of this!
Guy! I found a solution for the same thing.
We can use integrated a 'copy' to set the values of the element where currently is cursor system.
The syntax will be
Copy ((new_value): System.Cursor_Item); -where new_value is the variable that contains the data to be assigned.
In addition, we can assign the values from the system cursor to any variable.
The syntax will be '
new_value: =: System.Cursor_Value;
Thanks a lot guys for your help and concern
See you soon!
-
partial trigger for a component in a pageFragment to pagefragment of parent?
Experts,
How do we set a partial trigger in a component (i.e. graphic) in a pageFragment for the pagefragment parent button?
Okay, it is not good to use one pagefragment inside the other, but still any way to do this?
Use case:
Having a home page - contains the fragment on the page with the dashboard element and buttons. Component dashboard a panelbox each pageFragment fill in the necessary data. How to configure partial trigger to these pageFragements of the key.
thnks
11.1.1.5 JdevContextual events is a way to go. Check out the video of Franks
For an overview of http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/adf-region-interaction/adf-region-interaction.htmlADF area Interaction - contextual events
Contextual event is used as a communication channel between the parent view and confined in the regions, as well as between the regions. For example, this session explains how to put in place the contextual events, how to define producers and listeners events and how to set the message payload.
http://download.Oracle.com/otn_hosted_doc/JDeveloper/11gdemos/AdfInsiderContextualEvents/AdfInsiderContextualEvents.html
>or check out parent action http://adfblogs.blogspot.com/2011/03/region-interaction-example-4-using.html
Andrejus or simple interaction case http://andrejusb-samples.blogspot.com/2010/04/jdevadf-sample-communicating-between.htmlTimo
-
Manage the editable elements to read only by Backing Bean!
Hello
Updating JDeveloper/ADF 11 g 2
I find that how to handle the editable by any listener action elements against button/link/object such solution.
Details:_
Suppose I have a table EMP VO entry form and want to show as read that during the form load, but when I will enter / click on a button (created manually) to change all items will be changed to edit. and after the present and commit files then everything appears as read-only.
I want to manage read and editable only receding from class / listener of the action to change the button (created manually) . Is this possible? If possible, please give me such a solution.
Please help me.
Zed
===OK, here you go:
Code of the bean (put the bean in the flowrate of session or page range):package demo.clickenable; import javax.faces.event.ActionEvent; import oracle.adf.view.rich.component.rich.input.RichInputText; public class ClickEnableBean { Boolean enable = Boolean.TRUE; public ClickEnableBean() { } public void setEnable(Boolean aEnable) { this.enable = aEnable; } public Boolean getEnable() { return enable; } public void flipEnable(ActionEvent actionEvent) { if (getEnable().booleanValue()) setEnable(Boolean.FALSE); else setEnable(Boolean.TRUE); } }
JSPX page:
The real work is done by a partial trigger button (id = box). This trigger is used to update the panelGroupLayout now the text input fields that are enabled/disabled via the Boolean value of the bean. Each click on the button toggles the Boolean value and updates the page.
Timo
-
I have this QML who have a ListView with datasource to a full ArrayDataModel from the CPP file for creationcompleted, I loop in the table to add the hour together to appear as a label on the page, what works. However, when I want to view these items in the list, it will display only the first element of the QVariantMap within the table, no error on the log of the device. Also, triggered more does not work, but when I click it, it will have a blue border surrounding it, but the onTriggered does not fire.
Here is an excerpt of the CPP on the table fill
This-> eventsModel = new ArrayDataModel();
QVariantMap event;
event ['EventName'] = "Event1";
event ["EventHour"] = "00";
event ["EventMinute"] = "01";
event ["EventSecond"] = '02 ";
QML-> setContextProperty ("eventsModel", it-> eventsModel);
Here's the QML
{Of container
ID: eventListContainer
{To ListView
ID: eventList
dataModel: eventsModel
Use a ListItemComponent to customize the appearance of the list view
listItemComponents:]
{ListItemComponent}
type: 'point '.
{StandardListItem}
Title: 'Event' + ListItemData.EventName;
Description: "time:" + ListItemData.EventHour + ":" + ListItemData.EventMinute + ":" + ListItemData.EventSecond; "»
}
}
]
onTriggered: {}
var selectedEvent = dataModel.data (row);
var eventDetailPage = eventDetailDefinition.createObject ();
eventDetailPage.txtEventName.text = selectedEvent ['EventName'];
eventDetailPage.pickEventTime.value = picker.dateFromTime(selectedEvent["EventHour"]+":"+selectedEvent["EventMinute"]+":"+selectedEvent["EventSecond"]);
eventDetailPage.open ();
}
}
Any help would be appreciated.
Thank you.
ListView determines ItemType of the element by calling the function itemType of the dataModel. By default, an ArrayDataModel returns an empty string for this call (see https://developer.blackberry.com/cascades/reference/bb__cascades__arraydatamodel.html).
This leaves you with a few options:
(1) If you have no header and all the elements are the same, you can make
ListItemComponent { type: "" ...
(2) If you have headers or different elements, you can extend ArrayDataModel and implement your own function of itemType
(3) you can define a function of ItemType on your ListView in QML. Documentation:
ListView called DataModel::itemType() for each item in order to know the type. QML, this can be overridden by declaring the itemType function (data, row) on the ListView element. ListView then call this function instead of the function DataModel.
Here's how to create a list in QML which creates a header for all items on the high level and aStandardListItem for each item below the top level:
-
Result passage of PL/SQL code for the page element
Hello
I have created a process in after the header to fill data to the page of the form elements. The pl/sql code is like bellows. Then I got the error message:
ORA-06502: PL/SQL: digital or value error: character number conversion
My question is that I do not see the difference in format between the page element and block pl/sql variables (e.g. : P31_STUDY_ID vs v_P31_STUDY_ID), they are either numeric or text field (in fact I have hidden field, but don't see conversion back to the digital field solved the problem). And don't see needs to set the format mask. Is there another way to detect the column that causes the problem, or if there is a syntax error with my assignment (from the variable element on the page)? Thank you very much!
============================
Declare
number of v_P31_STUDY_ID;
number of v_P31_STUDY_SITE_ID;
v_P31_STUDY_SITE_NAME VARCHAR2 (255);
v_P31_STUDY_SITE_NUM varchar2 (10);
number of v_P31_STUDY_SITE_NAME_NUM_ID;
number of v_P31_STUDY_SITE_OPEN_STATUS;
v_p31_comments VARCHAR2 (255);
Start
Select
tbl_study_site.study_id,
tbl_study_site.study_site_id,
study_site_name,
study_site_num,
STUDY_SITE_NAME_NUM_ID,
STUDY_SITE_OPEN_STATUS,
Comments
in
v_P31_STUDY_ID,
v_P31_STUDY_SITE_ID,
v_P31_STUDY_SITE_NAME,
v_P31_STUDY_SITE_NUM,
v_P31_STUDY_SITE_NAME_NUM_ID,
v_P31_STUDY_SITE_OPEN_STATUS,
v_p31_comments
of tbl_study_site, tbl_study_site_attrib
where tbl_study_site.study_id =: p30_study_name
and tbl_study_site.study_site_id = tbl_study_site_attrib. STUDY_SITE_ID
and tbl_study_site_attrib. STUDY_SITE_ATTRIB_ID =: P31_STUDY_SITE_ATTRIB_ID;
: P31_STUDY_ID: = v_P31_STUDY_ID;
: P31_STUDY_SITE_ID: = v_P31_STUDY_SITE_ID;
: P31_STUDY_SITE_NAME: = v_P31_STUDY_SITE_NAME;
: P31_STUDY_SITE_NUM: = v_P31_STUDY_SITE_NUM;
: P31_STUDY_SITE_NAME_NUM_ID: = v_P31_STUDY_SITE_NAME_NUM_ID;
: P31_STUDY_SITE_OPEN_STATUS: = v_P31_STUDY_SITE_OPEN_STATUS;
: P31_COMMENTS: = v_p31_comments;
end;
=============================
Identify the root cause. He's always on the format of the column, there is an error. Thanks for your help.
-
Ask why partial trigger does not?
Hi Expert,
I use JDeveloper 11.1.1.6
When I run the partial relaxation in the Module of the Application, it works but when I run in weblogic server, the partial value field trigger his does not work. in fact I use the button run as a work-around to deal with.
Here is the source:
===============
<? XML version = "1.0" encoding = "UTF - 8"? >
" < = xmlns:jsp jsp:root ' 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 binding = "#{backingBeanScope.backing_CreateActivityLine.m1} '"
ID = "m1" / >
< af:form id = "f1" >
< af:pageTemplate viewId = "" / Template.jspx "id ="pt1">"
< f: facet name = "center" >
< af:panelStretchLayout binding = "#{backingBeanScope.backing_CreateActivityLine.psl1} '"
ID = "PSL1" >
< f: facet name = "center" >
< af:panelGroupLayout layout = "scroll".
xmlns:af=" http://xmlns.Oracle.com/ADF/faces/rich "" "
Binding = "#{backingBeanScope.backing_CreateActivityLine.pgl1} '"
ID = "pgl1" >
< af:trainButtonBar value = "#{controllerContext.currentViewPort.taskFlowContext.trainModel} '"
Binding = "#{backingBeanScope.backing_CreateActivityLine.tbb1} '"
ID = "tbb1" / >
< af:commandLink actionListener = "#{bindings." CreateInsert.execute}.
Text = "add role".
Disabled = "#{!}" bindings. CreateInsert.enabled}.
Binding = "#{backingBeanScope.backing_CreateActivityLine.CL1} '"
ID = "cl1" / >
< af:table value = "#{bindings." ActLineEOView2.collectionModel}.
var = "row".
lines = ' #{bindings. " ActLineEOView2.rangeSize}.
emptyText = "#{bindings." ActLineEOView2.viewable? "{'No data to display.': 'Access Denied.'}".
fetchSize = "#{bindings." ActLineEOView2.rangeSize}.
rowBandingInterval = '0 '.
selectedRowKeys = ' #{bindings. " ActLineEOView2.collectionModel.selectedRow}.
selectionListener = "#{bindings." ActLineEOView2.collectionModel.makeCurrent}.
rowSelection = 'single '.
Binding = "#{backingBeanScope.backing_CreateActivityLine.T2} '"
ID = 't2' partialTriggers =': cl1 cl2 ">"
< af:column sortProperty = "ActivityHeaderId" sortable = "false".
headerText = "inventive".
ID = 'c4' >
< af:selectOneChoice value = "#{row.bindings.ActivityHeaderId.inputValue} '"
label = "#{row." Bindings.ActivityHeaderId.label}.
required = "#{bindings." ActLineEOView2.hints.ActivityHeaderId.mandatory}.
shortDesc = "#{bindings." ActLineEOView2.hints.ActivityHeaderId.tooltip}.
ID = "soc1' autoSubmit ="true">
< f: selectItems value = "#{row.bindings.ActivityHeaderId.items} '"
ID = "si1" / >
< / af:selectOneChoice >
< / af:column >
< af:column sortProperty = 'Amount' sortable = "false".
headerText = "#{bindings." ActLineEOView2.hints.Amount.label}.
ID = 'c3' >
< af:inputText value = "#{row.bindings.Amount.inputValue} '"
label = "#{bindings." ActLineEOView2.hints.Amount.label}.
required = "#{bindings." ActLineEOView2.hints.Amount.mandatory}.
columns = "#{bindings." ActLineEOView2.hints.Amount.displayWidth}.
maximumLength = "#{bindings." ActLineEOView2.hints.Amount.precision}.
shortDesc = "#{bindings." ActLineEOView2.hints.Amount.tooltip}.
ID = "it2" >
< f: validator binding="#{row.bindings.Amount.validator}"/ >
< af:convertNumber groupingUsed = "false".
model = ' #{bindings. " ActLineEOView2.hints.Amount.format}"/ >
< / af:inputText >
< / af:column >
< af:column sortProperty = "HeaderAmount" sortable = "false".
headerText = "budgeted amount.
ID = "c2" >
< af:inputText value = "#{row.bindings.HeaderAmount.inputValue} '"
label = "#{bindings." ActLineEOView2.hints.HeaderAmount.label}.
required = "#{bindings." ActLineEOView2.hints.HeaderAmount.mandatory}.
columns = "#{bindings." ActLineEOView2.hints.HeaderAmount.displayWidth}.
maximumLength = "#{bindings." ActLineEOView2.hints.HeaderAmount.precision}.
shortDesc = "#{bindings." ActLineEOView2.hints.HeaderAmount.tooltip}.
ID = "it1" partialTriggers "si1" = >
< f: validator binding="#{row.bindings.HeaderAmount.validator}"/ >
< af:convertNumber groupingUsed = "false".
model = ' #{bindings. " ActLineEOView2.hints.HeaderAmount.format}"/ >
< / af:inputText >
< / af:column >
< af:column sortProperty = 'Reserved' sortable = "false".
headerText = 'Amount' reserved
ID = "c1" >
< af:inputText value = "#{row.bindings.AmountReserved.inputValue} '"
label = "#{bindings." ActLineEOView2.hints.AmountReserved.label}.
required = "#{bindings." ActLineEOView2.hints.AmountReserved.mandatory}.
columns = "#{bindings." ActLineEOView2.hints.AmountReserved.displayWidth}.
maximumLength = "#{bindings." ActLineEOView2.hints.AmountReserved.precision}.
shortDesc = "#{bindings." ActLineEOView2.hints.AmountReserved.tooltip}.
ID = "it3" partialTriggers "si1" = >
< f: validator binding="#{row.bindings.AmountReserved.validator}"/ >
< / af:inputText >
< / af:column >
< af:column sortProperty = "ActivityLineId" sortable = "false".
headerText = "#{bindings." ActLineEOView2.hints.ActivityLineId.label}.
ID = "c5" >
< af:commandLink actionListener = "#{bindings." Delete.Execute}.
Text = "remove."
Disabled = "#{!}" bindings. Delete.Enabled}.
ID = "cl2" / >
< / af:column >
< / af:table >
< / af:panelGroupLayout >
< / f: facet >
< f: facet = 'Start' name / >
< f: facet = 'top' name >
< af:train value = "#{controllerContext.currentViewPort.taskFlowContext.trainModel} '"
Binding = "#{backingBeanScope.backing_CreateActivityLine.T1} '"
ID = "t1" / >
< / f: facet >
< / af:panelStretchLayout >
< / f: facet >
< f: attribute name = value "title" = "Create PAP inventive Anak" / >
< / af:pageTemplate >
< / af:form >
< / af:document >
< / f: view >
<!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_CreateActivityLine-->
< / jsp:root >
Thank you
Hello
label = "#{bindings." ActLineEOView2.hints.HeaderAmount.label}.
required = "#{bindings." ActLineEOView2.hints.HeaderAmount.mandatory}.
columns = "#{bindings." ActLineEOView2.hints.HeaderAmount.displayWidth}.
maximumLength = "#{bindings." ActLineEOView2.hints.HeaderAmount.precision}.
shortDesc = "#{bindings." ActLineEOView2.hints.HeaderAmount.tooltip}.
ID = "it1' partialTriggers ="soc1">
Kind regards
Ruben.
-
How to extract values of classic report column in the text element
Hi all
I've created a classic report (select id, name,' < input type = "button" value = "add" id = "add" name = "add" > "as" add details "details ;) with a single column as column values want link.i in the text element when I click on the link of that particular record of the report)
(1) in the link this link column property I've specified the URL as [javascript:insert_in_table(#ID#,#NAME#)]
(2) text two article P_ID, P_NAME
(3) in the header of the page, I've specified as javascript
< script type = "text/javascript" >
function insert_in_table (id, name) {}
var regId = ' #detail #'.substr (1);
var req = new htmldb_Get (not null, $v ('pFlowId'), 'APPLICATION_PROCESS = add', $v('pFlowStepId'));
Req.Add ('P_ID', ID);
Req.Add ('P_NAME', Name);
forced. GetAsync (function () {}
If {(p.readyState is 4)
$a_report (regId);
}
});
}
< /script >
(4) created a (add) process whose point: on demand, run this process when requested by ajax
pl/sql: insert into name_detail (id, name) values (: P_ID,: P_NAME)
now the problem is I m not getting the values of column in the report in the text element, it only shows white.
Kind regards
Ketan
Hello Ketan,
Assuming that you want to insert the values into the table, this is why you want to set values for the element,
If this is the case, then no need to define values for the element to insert.
Follow the steps below, it is one of the embodiment of your condition.
Step 1: Put the code below in your classic report query
assuming that the id is of type number and the name is of type varchar, that's why I am attaching the name to apostrophe, see line 3
select id , name , '' as "Add to detail" from detail
Edit 'Add details' column-> column attributes-> view-> column of Standard report
Step 2: Create a process in the processing of the Page
Name: INSERT_DATA
Address the point: on demand, run this process when requested by ajax
Process: putting the code below
Declare P_ID number ; P_NAME varchar2(50); Begin P_ID := apex_application.g_x01; P_NAME := apex_application.g_x02; insert into name_detail(id,name) values (P_ID,P_NAME); End;
Step 3: Create a java script function to call your insert ajax process.
Change the Page-> the function and the global variable declaration-> put the code below
function insert_in_table(id,name) { apex.server.process ( "INSERT_DATA", { x01: id,x02: name }, { success: function( pData ) { } }); }
Hope this helps you,
Kind regards
Jitendra
Maybe you are looking for
-
Satellite L500 - no wireless after installing Win7
After you perform a clean installation of Windows 7 Professional 32 to my laptop Satellite L 500, I realized that I do not see my wireless network.When I click in "open network and sharing center", I see the message that "the map is not connected.By
-
Presario V2036AP / PP967PA #UUF: Compaq Presario V2000 laptop / laptop SSD upgrade
I have a Compaq Presario model No. Laptop computer V2036AP. It's Nr is PP967PA #UUF. Other details are, Processors:-Intel Centrino RAM:-upgrade to 2 GB (1 GB x 2) OS:-upgrades to Windows 7 Home Edition, Service Pack 1, 32-Bit The HARD original di
-
Hello!So I'm at the end of my rope with this one... it lasts for months, and I keep revisitng every two weeks to try and fix that and every time to be completely frustrated. I found this forum tonight, so here goes... We downloaded a few games on th
-
Windows live family safety... .What is where it comes from and how do I get rid of him? This thing has invaded my machine, prevented me to access my most used and very general web sites and it's driving crazy me. Won't someone please help me get this
-
Hey guys, just ordered ive and xperia z2 read much comments how the camera gets really hot even with the use of a module, any ideas?