cancel
Showing results for 
Search instead for 
Did you mean: 

How to set default value for a drop down in Mobile Application Studio

Former Member
0 Kudos

Hi,

We have a requirement in which for a drop down - Transaction type (Activities), the value should be defaulted to 'Visit' and the Activity Category should be 'Sales Visit'. I tried debugging the code and got the piece of code where this value is referred, but i'm unable to find out the location where this value is picked from. Also while opening up the properties corresponding to this, there is a default value tab in the properties pane. I tried by giving this default value, but didn't work. When I'm trying to revert the changes i've made in the property, it is showing up an error.

Any pointers on this would be of great help.

Thanks in advance,

Rasmi.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

The issue was due to the missing of a subscription in the system. Once we created the subscription and assigned it to the site, the issue was resolved.

Regards,

Rasmi.

Former Member
0 Kudos

Hi Rasmi,

You can default the process type field of BOACTIVITY by different ways-

1.In BOL, business object BOACTIVITY loaded event, check the parameter bIsNew and then default the value of process type if you want it only for new activities.

Other attributes currently get defaulted in the attributechanged event of BOACTIVITY where field is processtype.So if processtype is defaulted it will try to default other attributes based on that.It will pick values from the customizing maintained in SPRO->CRM->Transactions->Basic Settings->Define Transaction Type->Customizing Header.

2.You can also do defaulting in the UI.If you want to default one field based on a value selected for drop down, then write the code in the onselected2 event of the drop down.

In your specific case, best way is to use option 1.

Regards

Vivek

Former Member
0 Kudos

Hi Rashmi,

You need to write explicit code for this requirement.

There will be a BO property associated with the trsanction type.The property i believe is "ProcessType".

This property will be populated with values from combo. Forst you need to get hold of all those data.

Code like

*ThisBO.GetComboEngine("Auart").GetListData() * will get you all the data(transaction types)

Now filter the recordset for your specific data(the one which you need to set as default) and then associate "Process Type" property to this record.

Regards,

Abishek