cancel
Showing results for 
Search instead for 
Did you mean: 

Inserting Data!

Former Member
0 Kudos

Hi All!!

My scenario is to insert data from a jsp page in MI client to backend.

I created a syncbo which makes use of the create bapi wrapper to push data. At the frontend i used row descriptors and field descriptors to push data on to the local database(db2e) and synchronise it with backend. All is fine but ,

My problem is the method im using to push data is "rowobj.setFieldvalue(FieldDescriptor arg0, object arg1)" which is depricated one.I could not find the replacement for it being new here.

Can someone help me with the new method which has come in place, or someother way to handle this insertion of data.

Thanking you in Advance,

Regards,

krishna.

Accepted Solutions (1)

Accepted Solutions (1)

kishorg
Advisor
Advisor
0 Kudos

Hi Krishnamohan,

You can go through these links. We have already discussed the insertion of new data , modification of data etc.. in these forums.

i have already written some sample codes in these forums..(for inserting new top row and item row..)..

refer these links also,,

Moreover a <b>Tips and Tricks for Developing High-Performance, Stable MI Applications</b> is available as Best Practice in Service Market Place. In this , they have mentioned that ,

<b>Use Row.modifyFieldValue(Object) instead of Row.setFieldValue().</b> .

Every time the Row.setFieldValue() method is called, a full DB-update with transaction commit is

performed.

To overcome this problem, an unlinked row has been introduced that needs fewer resources, although

the row is cloned and various other precautions have to be taken.Row.modifyFieldValue(Object) modifies a single field without triggering a DB-operation.

SyncBo.modifyRow(Row) finally performs the DB update for all changes.

Regards,

Kishor Gopinathan

Former Member
0 Kudos

Hi kishor!

Thanks a lot !! I could do insertion and modification with the method " row.modifyFieldvalue()" .

i have another question ! can u give some link or thread which gives me an idea about displaying the data in tabular format in a jsp page. I tried searching but couldnot find.

Thanks in Advance!

regards,

krishna.

Former Member
0 Kudos

hello krishna,

trying using <a href="http://sourceforge.net/project/showfiles.php?group_id=119331&package_id=130895">TableTag</a> . i haven't tried using it as i usually code html/css manually

for tabular display.

regards

jo

Answers (0)