Get the search text count values

Explorer ,
Aug 02, 2020

Copy link to clipboard

Copied

Hi Professionals,

 

For our concern company we aredeveloping an plugin in which I want to get search text values count but till now I have fetched the search text in the alert. So please guide me to get the count value of search text.

 

InterfacePtr<IControlView> view(this, UseDefaultIID());
WidgetID widgetid = view->GetWidgetID();
if (widgetid == kFindButtonWidgetID)
{
CAlert::InformationAlert("1");
InterfacePtr<IWidgetParent> myParent(this, UseDefaultIID());
InterfacePtr<IPanelControlData> panel((IPanelControlData*)myParent->QueryParentFor(IID_IPANELCONTROLDATA));
IControlView* EditTextBoxView = panel->FindWidget(kSearchTextEditBoxWidgetID);
InterfacePtr<ITextControlData> textData(EditTextBoxView, UseDefaultIID());
if (textData)
{
CAlert::InformationAlert("not nil");
PMString temp;
temp = textData->GetString();
PMString returnText = temp;
int32 searchtextcount = returnText.GetAsNumber();
//searchtextcount++;
PMString textcount;
textcount.AppendNumber(searchtextcount);
CAlert::InformationAlert(textcount);

}

}

-Monisha
TOPICS
Feature request, How to, SDK, Server developers

Views

30

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Get the search text count values

Explorer ,
Aug 02, 2020

Copy link to clipboard

Copied

Hi Professionals,

 

For our concern company we aredeveloping an plugin in which I want to get search text values count but till now I have fetched the search text in the alert. So please guide me to get the count value of search text.

 

InterfacePtr<IControlView> view(this, UseDefaultIID());
WidgetID widgetid = view->GetWidgetID();
if (widgetid == kFindButtonWidgetID)
{
CAlert::InformationAlert("1");
InterfacePtr<IWidgetParent> myParent(this, UseDefaultIID());
InterfacePtr<IPanelControlData> panel((IPanelControlData*)myParent->QueryParentFor(IID_IPANELCONTROLDATA));
IControlView* EditTextBoxView = panel->FindWidget(kSearchTextEditBoxWidgetID);
InterfacePtr<ITextControlData> textData(EditTextBoxView, UseDefaultIID());
if (textData)
{
CAlert::InformationAlert("not nil");
PMString temp;
temp = textData->GetString();
PMString returnText = temp;
int32 searchtextcount = returnText.GetAsNumber();
//searchtextcount++;
PMString textcount;
textcount.AppendNumber(searchtextcount);
CAlert::InformationAlert(textcount);

}

}

-Monisha
TOPICS
Feature request, How to, SDK, Server developers

Views

31

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 02, 2020 0

Have something to add?

Join the conversation