Form with a control block
I have a form with no database block. there is only one control block with a button
when a user presses the button I insert record into a table and then commit;
I am getting no changes to save message. how can I avoid that.
(setting record-status to query?) any other way?
Change your design of logic. In the case insert and commit in procedure on the server side.
Try to play with :system.message_level.
Well, consider using the FORMS_DDL command, of course.
Similar Messages
-
Adding Controls dynamically in the Infopath/Web form with dynamic controls
Hello,
The client requirement is to create SharePoint solution for the below image. A web form/Info-path form will be created where user can enter the details and data will be submitted. I am looking for a solution to implement the requirements in SharePoint .
if not possible then using customizations and SQL server.
User can enter the Title , Overview in the form , which we can make Single line and multiple line of Text. The problem is with third , fourth and fifth fields.
1) In third field , i.e. Qualification Summary , User can add/delete , dynamic text boxes..This can be achieved I think using repeating tables/sections in Infopath...How data will be saved in SharePoint columns as it is not fixed that how many
columns user can enter , how columns(static) will be created in the list ??
2) For fourth field , user will select one or many Project description title n descriptions which are there in the system..User will not write anything just select..But how many project descriptions they can select , again its not fixed..How
we can manage it in SharePoint List OR any custom solution ?
3) For fifth field , user will select one or many Awards which are there in the system.User will not write anything just select..But how many awards they can select , again its not fixed..How we can manage it in SharePoint List OR any custom
solution ?
Vipul Jain>Lets say , the data for user selection is stored in two separate lists
secondary data connection is only for one list so you can get data from only single list by creating list connection. Later you can drag & drop that connection as repeating table or bind with any control so display in form. If you have mulitiple list
then you may use lookup column or would need to create two seperate data connection.
>Do you think its a right approach ?
multi selection listbox is helpful if requirement is select multiple records or filter records. You can almost achieve most of the requirement but still depends on business need. Ofcource some limitation is also there.
>I'm planning to propose a custom .net form
Of course custom form is always better than OOTB in some cases but i always prefer OOTB solution if my requirement is being achieved by it.
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
How to create a JClient form with one master block & multiple detail block?
Hello,
I am using Jdevelopver 10.1.2
I want to have a JClient Form with one master table A and two detail tables B, C.
But in the JClient Form wizard, I can only create a one master with one detail relationship. Can I create multiple details in that wizard ?
Thanks
StephenCreate a JPanel based on the second detail table with the wizard and add manually the JPanel to the Master-detail Form.
Regards
Fred -
Two rows instead of one in the database when form with 2 data blocks.
Hi All,
I have created a form having 2 data blocks
data block one to populate table A
data block two to populate table B .
now when i save the data after pressing the save option ....i find 2 records instead of one in the database table A and Table B.
it should have been just one per table ....can some one suggest pls
Sunnyok : step by step :
do you have a trigger created named "ON-INSERT" on
the block?Many thanks for your support....
I do not have an ON-insert trigger.....
I will explain my scenerio.....
I have 2 data blocks one-below the other in the form
accessing 2 different tables....
now on the canvas of this form I have added a
button....and on that button i have written a trigger
'when-button-pressed' Trigger....
it takes the data from the various text_items of the
form and inserts them into their corrosponding
tables....and I have added 'COMMIT' at the end this
trigger
so when I press this button ....the data 2 records
get inserted into the 2 tables instead of one each..
TIA
Sunnythe above form looks something like this.....
-------------------------------------------------------------------------------------------------------|
|------------------------------------------------------------------------------------------------------|
| |
| ---data_block1------------------------------------------------------ |
| | | |
| | some data entry here for emp1 table | |
| |__________________________________________ | |
| |
| |
| |
| ---data_block2------------------------------------------------------ |
| | | |
| | some data entry here for dept1 table | |
| |__________________________________________ | |
| |
| button1 |
|------------------------------------------------------------------------------------------------------- -
Cannot do Picking with Legal control block
Hi,
We have activated the legal control check (with license or not).
Currently, if the outbound delivery is block due to legal control, it does not allow to post goods issue.
with the error message "Item 000010 cannot be copied due to legal control"
We want to also prevent the delivery from pick & pack if it has legal control issue, not just during PGI.
Can we do this by configuration?Hello G Dy,
You need to move your question to component 'SAP Global Trade Service', it is a GTS related issue.
SAP Global Trade Services (GTS)
To your question, I think you can get some ideas from SAP Note 579357.
Thanks,
Derek -
C++ form with awt controls do not respond
I have created mfc project in visual studio c++ 6.0. Then I modified MainFrm.cpp.
Here in CMainFrame::OnShowWindow I initialize jvm, create WEmbeddedFrame and put Button in it. Is runs ok, but 2 problems:
1. I can't click button. Just as there is some panel over java gui and it catches all mouse and keyboard events.
2. java gui some times do not repaints itself, or repaints only part of it
The form was inspired by http://www.codeproject.com/KB/cpp/OOJNIUse.aspx (but I do not use OOJNI, as you can see).
There is a bug in WEmbeddedFrame, but it deals with swing, not awt: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4982522. To work around it I call addNotify() method.
Can someone help me with this code?
// MainFrm.cpp : implementation of the CMainFrame class
#include "stdafx.h"
#include "mfc.h"
#include <jni.h>
#include <string.h>
#include <jawt.h>
#include <jawt_md.h>
#include <comdef.h>
#include "MainFrm.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CMainFrame
IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd)
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
ON_WM_CREATE()
ON_WM_SHOWWINDOW()
END_MESSAGE_MAP()
static UINT indicators[] =
ID_SEPARATOR, // status line indicator
ID_INDICATOR_CAPS,
ID_INDICATOR_NUM,
ID_INDICATOR_SCRL,
jobject obj_frame;
JNIEnv *env;
jclass class_JString;
// CMainFrame construction/destruction
CMainFrame::CMainFrame()
// TODO: add member initialization code here
CMainFrame::~CMainFrame()
//jvm->DestroyJavaVM();
TRACE0("JVM destroyed\n");
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
return -1;
if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_wndToolBar.LoadToolBar(IDR_MAINFRAME))
TRACE0("Failed to create toolbar\n");
return -1; // fail to create
if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators,
sizeof(indicators)/sizeof(UINT)))
TRACE0("Failed to create status bar\n");
return -1; // fail to create
// TODO: Delete these three lines if you don't want the toolbar to be dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
return 0;
void CMainFrame::OnShowWindow(BOOL bShow, UINT nStatus) {
CFrameWnd::OnShowWindow(bShow, nStatus);
//******************************** JAVA
JavaVM * jvm;
long status;
JavaVMOption options[2];
JavaVMInitArgs vm_args;
options[0].optionString = ".Djava.class.path=.;c:\\";
options[1].optionString = "-verbose:jni";
memset(&vm_args, 0, sizeof(vm_args));
vm_args.ignoreUnrecognized = true;
vm_args.version = JNI_VERSION_1_4;
vm_args.nOptions = 2;
vm_args.options = options;
status = JNI_CreateJavaVM(&jvm, (void**) &env, &vm_args);
if (status == JNI_ERR) {
return;
TRACE0("JVM created\n");
//class_JString = env->FindClass("foo/Test");
TRACE0("Class found\n");
//create frame
//jmethodID id_Test = env->GetMethodID(class_JString, "<init>", "(J)V");
TRACE0("Method found\n");
//obj_frame = env->NewObject(class_JString, id_Test, m_hWnd);
TRACE0("Object created\n");
jclass class_Button = env->FindClass("java/awt/Button");
TRACE0("Class Button found\n");
jclass class_WEmbeddedFrame = env->FindClass("sun/awt/windows/WEmbeddedFrame");
TRACE0("Class WEmbeddedFrame found\n");
jclass class_Container = env->FindClass("java/awt/Container");
TRACE0("Class Container found\n");
jmethodID b_const = env->GetMethodID(class_Button, "<init>", "(Ljava/lang/String;)V");
TRACE0("Constructor Button found\n");
jmethodID f_const = env->GetMethodID(class_WEmbeddedFrame, "<init>", "(J)V");
TRACE0("Constructor WEmbeddedFrame found\n");
jmethodID f_add = env->GetMethodID(class_Container, "add", "(Ljava/awt/Component;)Ljava/awt/Component;");
TRACE0("Method WEmbeddedFrame.add found\n");
jmethodID f_setSize = env->GetMethodID(class_WEmbeddedFrame, "setSize", "(II)V");
TRACE0("Method WEmbeddedFrame.setSize found\n");
jmethodID f_show = env->GetMethodID(class_WEmbeddedFrame, "show", "()V");
TRACE0("Method WEmbeddedFrame.show found\n");
jmethodID f_addNotify = env->GetMethodID(class_WEmbeddedFrame, "addNotify", "()V");
TRACE0("Method WEmbeddedFrame.addNotify found\n");
jobject button = env->NewObject(class_Button, b_const, env->NewStringUTF("qqq"));
TRACE0("Button created\n");
jobject frame = env->NewObject(class_WEmbeddedFrame, f_const, m_hWnd);
TRACE0("WEmbeddedFrame created\n");
env->CallVoidMethod(frame, f_addNotify);
TRACE0("Frame added Notify\n");
env->CallVoidMethod(frame, f_setSize, 100, 100);
TRACE0("WEmbeddedFrame setSize called\n");
env->CallVoidMethod(frame, f_add, button);
TRACE0("Button added\n");
env->CallVoidMethod(frame, f_show);
TRACE0("Frame shown\n");
//******************************** JAVA
ShowWindow(SW_NORMAL);
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
if( !CFrameWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return TRUE;
// CMainFrame diagnostics
#ifdef _DEBUG
void CMainFrame::AssertValid() const
CFrameWnd::AssertValid();
void CMainFrame::Dump(CDumpContext& dc) const
CFrameWnd::Dump(dc);
#endif //_DEBUG
// CMainFrame message handlersDon't post new questions on old threads.
...in C calling a Java Applet. And your program do it.How do you figure?
I seriously doubt that the fundamental problem here is a JNI problem versus just a java one. I would expect that the applet viewer either calls a Sun class or even a Java API class. Nothing more. Asking a carefully phrased question in one of the GUI forums might get the answer as well as getting the Sun source for any recent jdk and looking at the code for the applet viewer. -
Debug form with message control
Hello,
I' need debug a form (SE71) when a message is printed. For example, type message ZFRG, transaction ME42, i save the new message but not activing debug (before, i go to se71 and 'utilities' -> Activer Debug)
How can i do?,
thanks very muchTry to activate UPDATE DEBUGGING while saving through ME42.
Regards
Vinod -
What is equal to Forms control blocks in Jdev
I need to create users in db and manage their passwords. In forms there are control blocks and there is available libraries to make the "create user" and "alter" statments usable.
In jdev 9ias beta I am not seeing how it would be implemented. Bc4j and forms blocks are kind of similar. What am I missing? All suggestions are appreciated.
ThanksHi,
Try to use <af:resetActionListener>
<af:commandButton>
<af:resetActionListener/>
</af:commandButton> -
Form level Trigger Vs Block Level trigger
I have a form with single Database Block. I need to write a
transaction Trigger for this Block. I need to know r there any
advantages of writing the triggers at Form Level rather than at
Block Level.
Thanx in advance
--- Moneesh Walia
nullHello,
If you have to handle this stuff in more than one block, it seems more generic to put the code in a form-level trigger if you don't want to duplicate it several times.
Francois -
Hi,
I have problem when i try to open a form with No_Session the blocks didn't retrive any data.
Regards,The "NO_SESSION" parameter to Open_Form built-in simply instructs the new form to use the same session as the Form that opened it. I don't believe this would prevent the new form from being able to retrieve data as this is the default SESSION_MODE parameter value. Could you please give us a code sample so we can see how you are opening your form?
Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
Is it possible to update (=change) control block items in a query only form ?
From Form.A we call Form.B with the parameter query_mode = query_only.
This works fine.
But in Form.B we have a non table block (=control block) with an poplist item.
Allthough in query_only mode we like to change (it's not a real update cause it's control block) the poplist.
But because of query_only mode this item is not updateable.
Is there a workaround to make the poplist updateable in query_only mode ?Hi,
It is not possible to change the BOX position using the Layout painter like changing windows position.
You have change in the page Windows text elements only by changing their co ordinates.
Regards,
Anji -
Change to display field on control block not reflected until form refreshed
Hi guys, hope someone out there can help me with this query.
I'm currently developing a form that will allow users to generate offer letters and contracts via a custom form which is used within Apps 11i. This form is a fairly standard multi-text field form with tickboxes which hold the applicant details, two buttons (one to Select All, the other to Clear All) and another button to produce the actual contracts selected.
There is also a display field which is part of the control block attached to the form; both it and the Produce Contracts button are part of this control block. I've added a bit of code to change the text in the display field to inform the user that the contract or contracts they've requested are being generated, but although the call to the relevant code to do this appears before kicking off the concurrent request to generate the contracts, the update to the field fails to appear until after the concurrent request is complete and its output appears on another screen.
Does anyone know why this is? I've racked my brains over it and can't seem to understand why. I've pasted the code in below if anyone has any ideas!
Many thanks, Geoff
--- procedure display_status_message ---
--- Displays a status message in the request_extract_ctrl.query_information ---
--- display item informing user what is going on ---
--- Changes: ---
--- G Butler 21/08/08 First version ---
procedure display_status_message(p_tab_count in binary_integer default 0) as
c_proc_name constant varchar2(50) := 'display_status_message';
v_position pls_integer;
v_msg_string varchar2(500);
v_status_msg varchar2(2000);
begin
v_position := 1;
--- go to the request_extract_ctrl block
go_block('REQUEST_EXTRACT_CTRL');
--- check how many records have been sent for generation
--- get the correct message from the message dictionary
if p_tab_count = 1 then
fnd_message.set_name('XXJSDATA','SSL_CA_LETTER_CONTRACT_SUBMIT');
elsif p_tab_count > 1 then
fnd_message.set_name('XXJSDATA','SSL_CA_LETTER_CONTRACTS_SUBMIT');
end if;
v_position := 2;
--- copy the message into the display item field
v_status_msg := fnd_message.get;
:request_extract_ctrl.query_information := v_status_msg;
-- synchronize the change in the display item field with the form on screen
synchronize;
v_position := 99;
exception
when others then
v_msg_string :='Unexpected error occurred in display_status_message procedure, position: '||v_position;
v_msg_string := v_msg_string||'. SQL error: '||sqlerrm;
fnd_message.set_string(v_msg_string);
fnd_message.error;
raise form_trigger_failure;
end display_status_message;I had a similar problem, but it was with the message line. I found that with Web Forms, I had to issue the Synchronize; a second time, but in Client/Server Forms 6i, the first synchronize worked. Here is the code I used:
<pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy"> SYNCHRONIZE;
if Get_Application_Property(User_Interface) = 'WEB' then
synchronize;--first does not work on web
end if;</font></pre>
Let us know if this works. -
I am receiving the following message.
FRM-30371: Warning! (MY_CONTROL.MY_CONTRIL$CCN_REL) Relation's master block is a control block.
Created form file C:\ORANT\FORMS45\cdff003.fmx
I have a control block( MY_CONTROL) with no DB tables associated with it, but I have a relation to the detail block as referenced above. The two blocks are related by customer number.
How do I eliminate the warning message?Difficult to get to the perfection in this case. Forms informs you that you have a control-block based relation. If you keep this control-block relation, you keep the warning message...
Francois -
Sorting the data of control block in oracle form 10g
I have two block....both are the control block..
in first block i select the date and in second block the data of that date is populated.but the data is populated
using cursor in when-button-pressed trigger of that first block button...
in cursor the data is selected and placed in field of detail block using into clause.... each field..
.and one item of detail block is srno which is create in post-query of detail block using
:sysyem.trigger_record.
Now i want after populated the detail block the data is sorted desc one of the field of the detail block...
Can this possible using set_block_property() of block although the block is control block if yes where i should do
this??????
Please explian...????but with the cursor of repopulate ...how the block is in desc by one field..because if i use again the same cursor to poulate than whats this benefits???
if i write a cursor in button when-button-trigger in first block like this code....
go_block('');
cursor emp_cur is
select empno,date,sal
from emp;
begin
for i in cur loop
select i.empno,i.date,i.sal
into :empno,:date,:sal
from emp
end loop
end;
this loop populate the block which is controll block..
syntax error should be ignored ...i wana to explain what i want to do...
this is not the actual query i have another query but the concept is that...
how i can do this... -
How to make a jsf parameter form with a selectOneChoice and data control
I want to make a parameter form with a selectOneChoice and store this value in a backing bean, so I can use as a bind variable in query. I already made it happen without data control
Can someone show how to do it in adf data control. With the wizard it tries put the value
in a viewobject but I don't have base or destination viewobject. I can change the pagedef
so it works to fill the selectOneChoice but then I want to store the selected value in a session beab
here is solution with the application module and request / session bean, I don't
think it is the right solution
thanks edwin
jsf page
<af:selectOneChoice label="Desk" value="#{selectDesk.desk}"
id="DeskID"
binding="#{selectDesk.deskBinding}"
autoSubmit="true"
valueChangeListener="#{selectDesk.deskChangeListener}">
<f:selectItems value="#{selectDesk.deskSelectItems}"/>
</af:selectOneChoice>
Selektdesk backing bean
public SelectDesk(){
FacesContext facesContext = FacesContext.getCurrentInstance();
ValueBinding valueBinding = facesContext.getApplication().createValueBinding("#{userInfo}");
userInfo = (UserInfo) valueBinding.getValue(facesContext);
public List<SelectItem> getDeskSelectItems() {
if ( userInfo.getSelectItems() != null ) {
selectItems = userInfo.getSelectItems();
return selectItems;
if ( getBindings() != null ) {
userInfo.setBindings( getBindings());
else {
setBindings(userInfo.getBindings()) ;
if ( selectItems == null ) {
selectItems = new ArrayList<SelectItem>();
DCBindingContainer bc = getBindings();
SicmaService sicma = (SicmaService)bc.findDataControl("SicmaServiceDataControl").getDataProvider();
ViewObject desk = sicma.findViewObject("DeskSelectView1");
desk.executeQuery();
RowSet rows = desk.getRowSet();
while (rows.hasNext()) {
Row a = rows.next();
String DskId = a.getAttribute(0).toString();
String DskOms = a.getAttribute(1).toString();
selectItems.add( new SelectItem(DskId ,DskOms ));
rows.closeRowSet();
userInfo.setSelectItems(selectItems);
return selectItems;
faces-config.xml
<managed-bean>
<managed-bean-name>selectDesk</managed-bean-name>
<managed-bean-class>org.tennet.sicma.view.backing.SelectDesk</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>bindings</property-name>
<property-class>oracle.adf.model.binding.DCBindingContainer</property-class>
<value>#{bindings}</value>
</managed-property>
</managed-bean>The SRDemo has an example of a selectOneRadio bound to a parameter being used to pass to an ExecuteWithParams action (to automatically feed a view object's named bind variable. This is in the SRStaffSearch.jspx page.
Also, if you check out example # 72 from my blog:
http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#72
There is another example of using a selectOneListbox to do the same type of thing.
The steps involved in creating something like this are to:
(1) Define your named bind variables on your view object
(2) Drop the "ExecuteWithParams" action in the operations folder of that view object from the Data Control Palette to your page as a "Parameter Form"
(3) Drop the specific attribute (nested child of the "ExecuteWithParams" action from step (2) as whatever kind of selectOneXXXX control you want
(4) Delete the extra field on the form you don't want.
Maybe you are looking for
-
Connection to server on port 25 timed out
Can't send mail. Connection to the server "smtp.ca.astound.net" on port 25 timed out. I keep getting this error when sending mail. I can receive mail but just can't send. I noticed this problem sometime after installing the Security Update 2006-005,
-
Difference in Stock account , Custom clearing account
Hi All. I found the amount difference issue when GR document is reversed. The background is as follows. 1. Material is procured from import vendor for which PO order currency is CNY. 2. The conditions maintained in PO are indian standard customes con
-
I recently did the update and my text message notification was no longer working. Then I did a reset and now my locking function no longer works. What is going on???
-
Hello Guru's, I need to verify somethings because I am getting a bit lost. I need to have a scenario from SRM to MDM with XI. Only there is a problem because the MDM server is Linux. Linux only supports secure FTP and XI only supports FTP(s). So the
-
What notebook is better the air or pro
i have a mac i am going to get another computer with notebook is better the air or pro.