cancel
Showing results for 
Search instead for 
Did you mean: 

NWDS

Former Member
0 Kudos

i want to design the following:

inbox( x )

where x should be the no of messages for the user and should be taken from the database.

how can i do it ? What the UI Elements and its properties ?

please help.

Accepted Solutions (0)

Answers (2)

Answers (2)

vmadhuvarshi_
Contributor
0 Kudos

Vikranth,

You can use a 'Table' UI element to display all user messages once you retrieve them from Database using a RFC or JDBC connection - whatever the case may be. Afterwards you can use event 'onLeadSelect' or use a 'Supply function' as per your context structure to display the message when user clicks on a message row.

[This tutorial|/docs/DOC-8061#46] about Table UI element may help you.

[ This excellent ebook|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60086bd5-9301-2b10-6f97-a14366a5602b] about supply and dispose functions may be helpful as well.

Regards,

Vishwas.

sureshmandalapu6
Active Contributor
0 Kudos

Hi vikranth julius ,

You can do it very easily. First you need to Write a BAPI which can take the user name or number as input and retrives all the messages from database.

After that , you can designe the interface and display them in your desired order.

If u have any doubts , please let me know.

points if useful

thanks

Suresh

Former Member
0 Kudos

hi,

to design the interface what UI elements should be used?

eg : i have used Link to Action for "inbox"

what UI element should be used for X to receive the data.

there shouldn't be any space between "inbox" and "(x)".

it should be :inbox(X) where the value of X will come from database.

Former Member
0 Kudos

Hi ,

1) create a Value attribute named inboxnumber

2)use the code below

int num = wdcontext.node<output>....get<X>();

wdcontext.currentContextElement.setInboxNumber("inbox(" + num +")" );

3)Insert a textView and map the text Property to inboxnumber

Regards,

Sunitha Hari.