通过Android本地搜索按钮SUP个性化的关键 [英] SUP Personalization Key via Native Android Search button

查看:183
本文介绍了通过Android本地搜索按钮SUP个性化的关键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在本地设立SUP的一个简单的演示在Android,但我有关于如何使用个性化按键几个疑惑。

I'm setting up a simple demo of SUP on android natively but I'm having a few doubts regarding how to use personalization keys.

使用SUP101样品作为基础(<一href=\"http://www.sdn.sap.com/irj/scn/downloads?rid=/library/uuid/00e60d76-0d86-2f10-9e86-91b6ccdc0cb8\"相对=nofollow>这里),我创建了一个state_pk个性化钥匙由国家来筛选客户。我希望能够通过使用搜索按钮,从机器人(我已经有安装并正确显示)来获取这些数据。

Using the SUP101 sample as a basis (here), I've created a 'state_pk' personalization key to filter customers by state. I'd like to be able to get this data by using the "search button" from Android (which I already have setup and showing correctly).

我还添加了一个findByState对象查询客户MBO要能过滤器,但我的(小)了解正确的方法是使用个性化的关键筛选数据。

I've also added a findByState object query to the customer MBO to be able to filter, but to my (little) understanding the correct way is to use the personalization key to filter data.

鉴于此,任何人都可以点我如何使用个性化的关键state_pk?
我已经生成的code,它添加到Android应用程序,但我不知道/似乎无法找到我会如何使用PersonalizationParameter获取数据,并在主更新客户的ListView活性(在显示客户列表)。

Given this, can anyone point me on how to use the Personalization Key 'state_pk'? I've already generated the code, added it to the Android app but I don't know/can't seem to find how I am going to use the PersonalizationParameter to fetch the data and update the customer ListView on the main activity (where the customer list is displayed).

谁能帮助?

我使用SUP 2.1.3和Android API 15(4.0.3)。

I'm using SUP 2.1.3 and Android API 15 (4.0.3).

推荐答案

使用个性化按键很简单:

Using Personalization Keys are simple:

PersonalizationParameters pk = (Your DB Class).getPersonalizationParameters();
pk.setXXXX("set Value Here!!!");
pk.save();

一旦您设置个性化钥匙,你现在可以打电话给你的DB类中使用同步方式:

Once you set the Personalization keys, you can now call your DB classes Sync method using:

DB.synchronize("your Sync group name goes here!!!");

一旦做到这一点,你可以叫你的findAll对象查询检索客户的列表中显示

Once this is done, you can call your FindAlL Object Query to retrieve a List of Customers to Display

这篇关于通过Android本地搜索按钮SUP个性化的关键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆