on 10-17-2014 3:14 PM
the problem was my server. I changed my server with new version. Now everything working thank you all.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Renos,
Try to start launching the modified client with the open UI class in debug mode from Eclipse.
Set a breakpoint in the beginning of each method from the adapter class that you created and assigned to your field to check if something is going wrong there.
The getExtensionString should be executed at least once when you show the screen with a field containing the update rule
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marçal, firstly thanks for your attention.
This is my openui codes
package com.sap.mobile.platform.client.openui.extensions;
import android.content.Context;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.sap.mobile.platform.client.openui.adapters.StringDisplayAdapter;
import com.sap.mobile.platform.client.openui.models.StringDisplayModel;
import com.sap.mobile.platform.core.openui.ActionEnableType;
import com.sap.mobile.platform.core.openui.ActionResult;
public class ZMyexternaldata extends StringDisplayAdapter{
StringDisplayModel _model;
Context _context;
TextView text;
LinearLayout layout;
String action;
Button btn;
TextView txtdebug;
ActionResult ar;
public void initialize(StringDisplayModel model, Context context) {
// TODO Auto-generated method stub
_model=model;
_context=context;
}
@Override
public View getView() {
//ExternalValue22=_model.executeAgentryAction("ShowMessage").toString();
// TODO Auto-generated method stub
layout=new LinearLayout(_context);
text=new TextView(_context);
btn=new Button(_context);
text.setText("my value"+_model.getValue());
txtdebug=new TextView(_context);
btn.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
//ActionEnableType enableType=_model.getAgentryActionEnableState("ShowCollection");
ActionEnableType aet = _model.getAgentryActionEnableState("OpenZMYStringEdit");
if (aet.name().equalsIgnoreCase(ActionEnableType.ActionEnable.name()))
{
ar = _model.executeAgentryAction("OpenZMYStringEdit");
}
txtdebug.setText(" tet"+aet.name());
}
});
layout.addView(btn);
layout.addView(text);
layout.addView(txtdebug);
return layout;
}
@Override
public String getExtensionString(String name)
{
if (name.equalsIgnoreCase("externalvalue1"))
{
return "new1";
}
else if (name.equalsIgnoreCase("externalvalue2"))
{
return "new2";
}
else
{
return "no value!";
}
}
}
*************** txtdebug.setText(" tet"+aet.name()); show me that message "tetActionNoOperation"
also my external fields return null.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.