Add include to CloudSearch in CLoudBoost - cloudboost

I'm trying to do the same as
query = new CB.CloudQuery('Class');
query.include('columnName');
But using CloudSearch, SearchQuery or SearchFilter. Is it possible? For example:
var cs = new CB.CloudSearch(Class);
cs.searchFilter = new CB.SearchFilter();
cs.searchQuery = new CB.SearchQuery();
cs.include('columnName');
// or
cs.searchQuery.include('columnName');
Thanks!

It's actually, cs.searchFilter.include('columnName');

Related

How to display ArticleResults in a ListView

I am new in developing android application and I am having this error "Argument 3: cannot convert from 'NewsAPI.Models.ArticlesResult' to 'int'" while trying to put the ArticleResults in a listview, Could you guys please help me solve this problem.
Thanks in advance.
This is my code:
var newsApiClient = new NewsApiClient("574c805a2730461ba4e8243dc3ca0519");
ArticlesResult articlesResponse = newsApiClient.GetEverything(new EverythingRequest
{
Q = "Ultraviolet",
SortBy = SortBys.PublishedAt,
Language = Languages.EN,
});
mList = FindViewById<ListView>(Resource.Id.List);
ArrayAdapter<ArticlesResult> adapter = new ArrayAdapter<ArticlesResult>(this, Android.Resource.Layout.SimpleListItem1, articlesResponse);

Set new placement in Group Criterion via API

How can I add new placement (website, for example www.example.com) in AdGroup using AdWords API?
I have found
AdGroupCriterionService->mutate,
but I need to know ID of website
$adGroupCriterion->criterion = new Criterion($criterionId);
So my question:
How I can found ID for any website or exist another way to add new Placement in AdGroup?
I found an answer:
$adGroupService = $user->GetService('AdGroupCriterionService', 'v201509');
$AdGroupCriterionOperation = new AdGroupCriterionOperation();
$AdGroupCriterionOperation->operator = 'ADD';
$AdGroupCriterion = new BiddableAdGroupCriterion();
$AdGroupCriterion->adGroupId = $adGroupId;
$AdGroupCriterion->criterionUse = 'BIDDABLE';
$AdGroupCriterion->AdGroupCriterionType = 'PLACEMENT';
$Placement = new Placement();
$Placement->id = null;
$Placement->CriterionType = 'PLACEMENT';
$Placement->type = 'PLACEMENT';
$Placement->url = $url;
$AdGroupCriterion->criterion = $Placement;
$AdGroupCriterionOperation->operand = $AdGroupCriterion;
$operations = array($AdGroupCriterionOperation);
// Make the mutate request.
$result = $adGroupService->mutate($operations);

IBuildDetail.RequestedFor doesn't get populated after calling QueryBuilds()

I call IBuildServer.QueryBuilds(), and look at the returned IBuildDetails:
TFS2010: They are populated with user aliases.
TFS2012: They are null.
How can I get the user names in TFS2012?
var collection = new TfsTeamProjectCollection(new Uri(_txtCollection.Text));
var buildServer = collection.GetService<IBuildServer>();
var spec = buildServer.CreateBuildDetailSpec(Settings.Default.ProjectName);
spec.QueryOptions = QueryOptions.Definitions;
spec.QueryOrder = BuildQueryOrder.StartTimeDescending;
spec.InformationTypes = null;
return buildServer.QueryBuilds(spec).Builds;
Add batchedrequests:
spec.QueryOptions = QueryOptions.Definitions
| QueryOptions.BatchedRequests; // Tell TFS2012 to populate RequestedFor / RequestedBy

RightFax 10.0 Integration With C#

If I insert the values into the corresponding tables of RightFax, does it FAX automatically or do i need to write the following code for that?
RFCOMAPILib.FaxServerClass faxserver = new RFCOMAPILib.FaxServerClass();
faxserver.ServerName = "ServerName";
faxserver.Protocol = RFCOMAPILib.CommunicationProtocolType.cpNamedPipes;
faxserver.UseNTAuthentication = RFCOMAPILib.BoolType.True;
faxserver.OpenServer();
RFCOMAPILib.Fax fax = (RFCOMAPILib.Fax) faxserver.get_CreateObject(RFCOMAPILib.CreateObjectType.coFax);
// set up your 'fax' object the way you want it, below is just some sample options
fax.ToName = "John Doe";
fax.ToFaxNumber = "4255551111";
fax.ToVoiceNumber = "4255550000";
fax.ToCompany = "ACME";
fax.FromName = "My Company";
fax.FromVoiceNumber = "4255552222";
fax.Send();
Can you please provide me sample code for attachments? If RightFax sends the FAX automatically then which tables do I need to fill-in in order to do that?
Thanks
the below code is vb.net but will show you how to send a fax and add attachment as well, hope this helps. I've written a post about this here but here's the code below ....
Dim FaxAPI As RFCOMAPILib.FaxServer
Dim fFax As RFCOMAPILib.Fax
FaxAPI = New RFCOMAPILib.FaxServer
FaxAPI.ServerName =something
FaxAPI.Protocol = RFCOMAPILib.CommunicationProtocolType.cpTCPIP
FaxAPI.UseNTAuthentication = RFCOMAPILib.BoolType.False
FaxAPI.AuthorizationUserID = something
FaxAPI.AuthorizationUserPassword = something
FaxAPI.OpenServer()
fFax = FaxAPI.CreateObject(RFCOMAPILib.CreateObjectType.coFax)
fFax.Attachments.Add(“D:\FilePickupIn\2222222222-20110322142718-01.tif”)
fFax.HasCoversheet = RFCOMAPILib.BoolType.False
fFax.ToFaxNumber = something
fFax.ToName = something
fFax.Send()
FaxAPI.CloseServer()
FaxAPI = Nothing
fFax = Nothing
happy to help if you get stuck with anything...

Adding contact to the phone book using code?

In WP7.5(Mango), is it possible to add a contact to the phone book through code?
Currently there is no API to save the contact directly from the code as it deals with user data.
But you can save the contact from your application by using the SaveContactTask with user intervention.
you can use the following code
SaveContactTask saveContactTask = new SaveContactTask();
saveContactTask.Company = "WindowsPhoneGeek";
saveContactTask.FirstName = "John";
saveContactTask.LastName = "Smith";
saveContactTask.HomePhone = "000-125-547";
saveContactTask.HomeAddressCity = "London";
saveContactTask.HomeAddressCountry = "UK";
saveContactTask.HomeAddressStreet = "123 Bake Road";
saveContactTask.HomeAddressZipCode = "W11 2BQ";
saveContactTask.JobTitle = "Software Developer";
saveContactTask.Show();
You can refer this blog for the more information.
Yes there is. You should use the new API,
using Microsoft.Phone.Tasks;
SaveContactTask newContact = new SaveContactTask();
newContact.FirstName = "x";
newContact.LastName = "Y";
newContact.MobilePhone = "0123456789";
newContact.Show();
Also refer this http://msdn.microsoft.com/en-us/library/hh202995(v=vs.92).aspx

Resources