cancel
Showing results for 
Search instead for 
Did you mean: 

textedit uielement

Former Member
0 Kudos

I am having one inputfield and one textdit uielement in a view.while i am clicking on the submit button the data have to be stored to the corressponding database table and the field corresponds to the inputfield is working fine but what i am entering in the textedit is not storing in the database table..............I have binded both the uielements to the corresponding attributes of the database table............

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi ,

For a text edit UI element , the value property can be bound to a attribute of type STRING_TABLE.

Please check if you have done this.

Thanks,

Aditya.

Former Member
0 Kudos

Hi Aditya,

But i need to save it to data base table... wat type i should give in data base table..

Former Member
0 Kudos

HI ,

STRING_TABLE is just a table of strings,

so loop at it into string variables and update the DB.(Assuming that you have used STRING as the type in tables).

Thanks,

Aditya.

Former Member
0 Kudos

Hi,

am using the coding..

LOOP AT STRU_ROLE-zrole_desc into wa_tab.

CONCATENATE description STRU_ROLE-zrole_desc into description.

ENDLOOP.

where zrole_desc is the attribute with type string_table..

description is of type string...

now stru_role-zrole_desc contains value of the textedit..

now am getting error in line CONCATENATE description STRU_ROLE-zrole_desc into description.

please find me a solution... wat is the field name of table to retrieve..

Former Member
0 Kudos

Hi,

am using the coding..

LOOP AT STRU_ROLE-zrole_desc into wa_tab.

CONCATENATE description STRU_ROLE-zrole_desc into description.

ENDLOOP.

where zrole_desc is the attribute with type string_table..

description is of type string...

now stru_role-zrole_desc contains value of the textedit..

now am getting error in line CONCATENATE description STRU_ROLE-zrole_desc into description.

please find me a solution... wat is the field name of table to retrieve..

Former Member
0 Kudos

hi ,

Try this

LOOP AT STRU_ROLE-zrole_desc into wa_tab.

CONCATENATE description wa_tab into description SEPERATED BY SPACE.(SPACE is optional)

ENDLOOP.

thanks,

Aditya.

gill367
Active Contributor
0 Kudos

What is the error you are getting there in the concatenate.

and also if the backend table has a type string then you dont need to use any string table kind of logic.

string is sufficient.

thanks

sarbjeet

Former Member
0 Kudos

hi sarbjeet and Aditya Karanth,

data description type string.

data wa_tab like LINE OF STRU_ROLE-zrole_desc.

DATA WA TYPE ZAC_ROLES.

LOOP AT STRU_ROLE-zrole_desc into wa_tab.

CONCATENATE description wa_tab into description.

ENDLOOP.

wa-zrole_name = stru_role-zrole_name.

wa-zrole_desc = description.

INSERT INTO ZAC_ROLES VALUES WA.

the above code is working correctly if we use "string_table"..........

yes if we use "string" in the particular field of the database table,the above code is not required and the below code is enough........

data wa TYPE zac_roles.

MOVE-CORRESPONDING stru_roles to wa.

insert into zac_roles values wa.

if something is wrong in the above codes,let me know as of i am very new to webdynpro.......

Thanks a lot for both of you..................

Answers (1)

Answers (1)

gill367
Active Contributor
0 Kudos

HI

Put a breakpoint and check what is the value that is getting passed from the text edit.

regards,

Former Member
0 Kudos

I have checked with that.....but no values are passed....

gill367
Active Contributor
0 Kudos

wt is the attribute type for the attribute bound to textedit and

check the binding once again.