developing custom forms based on EXT 2.0 library

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
himanshu
Posts: 723
Joined: Thu Jun 19, 2008 6:24 am
Location: India
Contact:

developing custom forms based on EXT 2.0 library

Post by himanshu »

Hi,

anyone who develop custom forms based on EXT 2.0, please HELP and suggest how can i go further...

i created a js file with the following code, in which there is a Customer name business object with two fields Name and Age,

Code: Select all

[size=9]function myfunction (objectName, objectId, objectVersion)
{
// populate the form if not a new object
if (objectId > 0)
{
// use XML to extract the data for this object name and id
}
var panel = new Ext.FormPanel ({
labelWidth: 70,
width: 300,
height: 200,
items: [
{
xtype: "textfield",
name: "Name",
id: "Name",
// We can initialize with the value obtained from the server
//value: balanceValue,
anchor: "99%",
fieldLabel: "First Name"
},
{
xtype: "textfield",
name: "Age",
id: "Age",
anchor: "99%",
fieldLabel: "Age"
}
],
buttons: [
{
text: "Save",
handler: function () { 
	SaveCustomer(panel,objectName, objectId);
	}
}
]
});
return panel;
};

function SaveCustomer(form, objectName, objectId){ 
	
	xmlStr = "<form_data object_name=\"Customer\" form_context=\"create\" object_id="+objectId+" object_version=\"1\" form_name=\"main\"></form_data>"

		//prepare xmlDoc
		var xxmlDoc = parseXMLDocument(xmlStr);

		var frmParser = new AwareApp.FormParser(xxmlDoc,true,true,true,null);
		frmParser.m_formPanel=form;
		var customPanel = frmParser.parse();	
	
	var options = {};
	var tmp = new AwareApp.CustomPostFormDataAction(frmParser,options);
	
	};[/size]
here i want to submit data and get it saved only!!
:idea:
From,
Himanshu Jain


AwareIM Consultant (since version 4.0)
OS: Windows 10.0, Mac
DB: MYSQL, MSSQL
himanshu
Posts: 723
Joined: Thu Jun 19, 2008 6:24 am
Location: India
Contact:

no one is there..

Post by himanshu »

:(

no is there who ever implement or deal with custom programming,

please help if have a anything little about subject..

Thanks
:)
From,
Himanshu Jain


AwareIM Consultant (since version 4.0)
OS: Windows 10.0, Mac
DB: MYSQL, MSSQL
himanshu
Posts: 723
Joined: Thu Jun 19, 2008 6:24 am
Location: India
Contact:

invalid object id error

Post by himanshu »

here i updated the last code, but now there is some internal awareIM error is showing of invalid object id in post_form_data_action,

here is the post_form_data_action string detail
<post_form_data_action object_name=\"Customer\" object_id=\""+this.mmm_objectId+"\" object_version=\"1\" form_name=\"CustomForm\" form_context=\"create\" > <post_attribute_data attribute_name=\"Name\" >TestA</post_attribute_data> <post_attribute_data attribute_name=\"Age\" >22</post_attribute_data> </post_form_data_action>
when i click on my custom form to create a new object it display sending data and then display invalid object id in post form data action..

please suggest :!: :!: [/quote]
From,
Himanshu Jain


AwareIM Consultant (since version 4.0)
OS: Windows 10.0, Mac
DB: MYSQL, MSSQL
himanshu
Posts: 723
Joined: Thu Jun 19, 2008 6:24 am
Location: India
Contact:

Post by himanshu »

at last i have done it...

prev it was a bug in the awareim but it was resolved by awareim support

in the latest rel

thanks

:)
From,
Himanshu Jain


AwareIM Consultant (since version 4.0)
OS: Windows 10.0, Mac
DB: MYSQL, MSSQL
aware_support
Posts: 7525
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

The bug was fixed in build 1142
Aware IM Support Team
Post Reply