Backendless API documentation incorrect? - swift

Here is the code:
let queryBuilder = DataQueryBuilder()
queryBuilder.setWhereClause(whereClause: "age = 47") <---but this doesn't exist in the code.
The "setWhereClause" is not a member of queryBuilder. Is there updated documentation somewhere?
is there something wrong in my pod? I just verified I have the latest version.

I got it to work with this statement:
queryBuilder.whereClause = "age = '47'"
I wish they would update their tuts.

Related

youtube_explode_dart package has wrong documentation

I am trying to use flutter youtube_explode_dart package but I am facing some errors mainly two
with video.property
Code:-
var video = yt.videos.get('https://youtube.com/watch?v=Dpp1sIL1m5Q');
var title = video.title; // Error in this line
with streamManifest
Code:-
// Error saying streamManifest is not defined
var streamInfo = streamManifest.muxed.withHigestVideoQuality();
Link to the documentation code :- https://pub.dev/packages/youtube_explode_dart
If anyone has used the package or knows the fix PLEASE HELP!
use
manifest=yt.videos.streamsClient.getManifest(url);
after getting manifest then
var streamInfo = manifest.muxed.withHigestVideoQuality();
then use this hopefully your error will be solved please let me know if solved

Key value in AWSIoTDataManager

I am working with a project where I don't get it the value of
awsiotdatamanager is static string or it generated from AWS. I found it like this in sample code Also I read code this and this but I am getting more and more confused.
let AWSIoTDataManager = "MyIotDataManager"
let iotDataManager = AWSIoTDataManager(forKey: AWSIoTDataManager)
Thanks in advance :)

What Happened to UnitPrice in Intuit.Ipp.Data.Qbd?

Sorry, this gets curiouser and curiouser: I just updated my IPP in NuGet (VS2010) and now the UnitPrice property has disappeared from Intuit.Ipp.Data.Qbd.Item. It's in the SDK Docs and it's in the online docs, just not in the DLL.
I'll always admit it COULD be me, but I'd sure like to know how. :)
Any help appreciated (I'll submit a Support Ticket on Monday if I can't get this straightened out over the weekend).
Intuit.Ipp.Data.Qbd.Item item = new Intuit.Ipp.Data.Qbd.Item();
//Set UnitPrice
Intuit.Ipp.Data.Qbd.Money unitPrice = new Intuit.Ipp.Data.Qbd.Money();
unitPrice.Amount = 22;
unitPrice.AmountSpecified = true;
item.Item1 = unitPrice;

How do i set a label on an issue using the JIRA SOAP API

Is there a way to set the "Labels" field for a ticket when creating or updating a JIRA ticket using the SOAP API? A search for "label" in the WSDL reveals nothing, and when getting a ticket using the API which I know has labels set, there is no indication in the result that a label exists.
You can update the label of an existing issue using the field id 'labels'. Here is the code I'm using (C#):
public void LabelIssue(string issueKey, string label)
{
RemoteIssue issue = jiraSoapService.getIssue(token, issueKey);
List<RemoteFieldValue> actionParams = new List<RemoteFieldValue>();
RemoteFieldValue labels = new RemoteFieldValue { id = "labels", values = new string[] { label } };
actionParams.Add(labels);
jiraSoapService.updateIssue(token, issue.key, actionParams.ToArray());
}
I'm pretty sure there's no method to do this in JiraSoapService
http://docs.atlassian.com/rpc-jira-plugin/latest/com/atlassian/jira/rpc/soap/JiraSoapService.html
~Matt
Try updating custom field id 10041. I looked forever and I finally found it.
Here is sample code in python:
update_str = [{"id": "customfield_10041", "values":["my_label"]}]
ret = jira_handle.service.updateIssue(auth, key, update_str)
Hope that helps!!

How to get Column Name With Zend DB

How to get Column Name With Zend DB
This is the correct answer, the older answers are wrong or outdated:
$cols = $table->info(Zend_Db_Table_Abstract::COLS);
$metadata = $db->describeTable($tableName);
$columnNames = array_keys($metadata);
http://framework.zend.com/manual/en/zend.db.html#zend.db.adapter.list-describe
Previous answer applies only to version < 2.
For current version of ZF (2.2) use:
$table = new Zend\Db\TableGateway\TableGateway('table', $Dbadapter, new Zend\Db\TableGateway\Feature\MetadataFeature());
$columns = $table->getColumns();
http://framework.zend.com/manual/2.2/en/modules/zend.db.table-gateway.html#tablegateway-features
http://framework.zend.com/manual/2.2/en/modules/zend.db.metadata.html
You could use the describeTable method
I like this way:
$table->info('cols');