This is my Api and i need to pass values for Passport number Expiry data and other fields i know to pass data when its just normal values. I am not sure how to pass data inside the Dictionary Passport field  { "CustomerID":0, "UploadType":"String", "Passport":   {   "PassportNumber":"String",   "ExpiryDate":"\/Date(-62135596800000-0000)\/",   "CountryOfIssue":"String",   "FileName":"String",   "FileDescription":"String",   "FileExtension":"String",   "MimeType":"String",   "FileData":"AA=="   },  "RequestID":"String" }   I tried this but it didnt work out  NSString *urlString =[NSString stringWithFormat:@"UploadPassport/?CustomerID=%@&amp;UploadType=%@&amp;Passport=&amp;PassportNumber=%@&amp;ExpiryDate=%@&amp;CountryOfIssue=%@&amp;FileName=%@&amp;FileDescription=%@&amp;FileExtension=%@&amp;MimeType=%@&amp;FileData=%@",customerID,uploadType,passportNumber,expiryDate,CountryIssue,fileName,fileDesc,fileExtn,mimeType,fileData];
122621
With all the URL-handling objects lying around in the standard Cocoa libraries (NSURL, NSMutableURL, NSMutableURLRequest, etc), I know I must be overlooking an easy way to programmatically compose a GET request.  Currently I'm manually appending "?" followed by name value pairs joined by "&amp;", but all of my name and value pairs need to be manually encoded so NSMutableURLRequest doesn't fail entirely when it tries to connect to the URL.  This feels like something I should be able to use a pre-baked API for.... is there anything out of the box to append an NSDictionary of query parameters to an NSURL? Is there another way I should approach this?
52193
I have an object in which there are two fields i.e Phone no. &amp; email. The combination of these fields should be unique Right now I can create just one unique field But I want their composite to work like a unique field.   I know that I can create composite key in SQL but I dont know how to achieve this in salesforce.
8021
So... let's come to a topic i do not seem to fully understand: The function AttributeValue, especially in combination with the cloudpagesurl function.  I will present three scenarios, two are working and one is not working as expected. Both use the CloudPagesUrl function inside an Email to pass variables to the encrypted cloudpages qs parameter. The DataExtension used for sending the email contains colums named "country", "language" and an id which name is "area". We do not have SubscriberAttributes that are named this way, because we handle everything over dataextensions.   Not working scenario, all variables presented in this case are working and contain correct values inside the newsletter.  Inside the e-Mail:  set @href = RedirectTo(CloudPagesURL(404,'param1',@country,'param2',@language ,'area',@area))   Inside the Cloudpage:  set @country = AttributeValue('param1') set @language = AttributeValue('param2') set @area = AttributeValue('area')   Output on the cloudpage for debug purposes:     @country is empty (does not display a value)      @language is empty (does not display a value)      @area is filled correctly       Working scenario1:  Inside the e-Mail:  set @href = RedirectTo(CloudPagesURL(404,'country',@country,'language',@language ,'area',@area))   Inside the Cloudpage:  set @country = AttributeValue('country') set @language = AttributeValue('language') set @area = AttributeValue('area')   Output for debug purposes on the cloudpage:     @country is filled correctly      @language is filled correctly      @area is filled correctly       Working scenario2:  Inside the e-Mail:  set @href = RedirectTo(CloudPagesURL(404))   Inside the Cloudpage:  set @country = AttributeValue('country') set @language = AttributeValue('language') set @area = AttributeValue('area')   Output for debug purposes on the cloudpage:     @country is filled correctly      @language is filled correctly      @area is filled correctly       Now i got several Questions:   Do the parameters with the AttributeValue function have to be exactly named like the columns in the sending dataextension to be retrieved via AttributeValue when using the CloudpagesUrl function? Does the CloudPagesURL function actually encrypts all attributes from the sending dataextension to the qs parameter by default? Does the AttributeValue function actually needs the parameter attachments from the CloudPagesURL call? (it seems not) Is the AttributeValue function bound to the dataextension column names? Does the AttributeValue function still work when the sending dataextensions records get overwritten, updated or deleted?   Should you better switch to usual parameters to be more failsafe?  Why does the first (not working) scenario not populate any fields that are not dataextension column names?    Do you actually have to use RequestParameter in this scenario to retrieve the data, because the column names are not matching the sending dataextension and the AttributeValue function will actually not be able to retrieve any data?        Thanks for reading any help is greatly appreciated. If you have more documentation to share please attach it ;)
83826
I'm a Canadian citizen with a Canadian passport. I booked a flight with American Airlines to Mexico City From Toronto Pearson and it says that "Passenger details are needed to check in".  Flight 1: YYZ -> DFW -> MEX Flight 2: MEX -> DFW -> YYZ     They already took my name, gender and such. It is now asking for my passport number and expiry date. That all seems reasonable. However, when I enter that I am a Canadian resident it asks for:  1) Street or hotel in US 2) City in US 3) State in US    My trip to DFW is only for a connecting flight. The fields are required so I can't submit my passport information without filling this in.    Is there something I'm missing?
104290
In alert I am getting value in data.d.results[0](This is the value that I am getting from other list using rest).Subsystem.Title and also if I use only title column then the value is inserted in the list but when I use a lookup column i.e. Subsystem, then it goes to error function.  $.ajax({         url: "https://sharepoint.com/teams/_api/web/lists/GetByTitle('Features')/Items",         type: "POST",         data:  JSON.stringify({ '__metadata': { 'type': 'SP.Data.FeaturesListItem' },    'Title': data.d.results[0].Title,'Subsystem':data.d.results[0].Subsystem.Title}),         headers: {              "accept": "application/json;odata=verbose",             "content-type":"application/json;odata=verbose",             "X-RequestDigest": $("#__REQUESTDIGEST").val()         },         success: function(d) {alert("Items Inserted!");          //window.location.href=referrer;             },         error: function() {alert("Failed to Insert Items!");} });
87988
I have Data in JSON format, and I want to insert and update that data into Drupal. I have to update all the records which I got from an external link.  How can I achieve this?
39591
I have nested dictionaries:  {'key0': {'attrs': {'entity': 'p', 'hash': '34nj3h43b4n3', 'id': '4130'},           u'key1': {'attrs': {'entity': 'r',                               'hash': '34njasd3h43b4n3',                               'id': '4130-1'},                     u'key2': {'attrs': {'entity': 'c',                                         'hash': '34njasd3h43bdsfsd4n3',                                         'id': '4130-1-1'}}},           u'key3': {'attrs': {'entity': 'r',                               'hash': '34njasasasd3h43b4n3',                               'id': '4130-2'},                     u'key4': {'attrs': {'entity': 'c',                                         'hash': '34njawersd3h43bdsfsd4n3',                                         'id': '4130-2-1'}},                     u'key5': {'attrs': {'entity': 'c',                                         'hash': '34njawersd3h43bdsfsd4n3',                                         'id': '4130-2-2'}}}},  'someohterthing': 'someothervalue',  'something': 'somevalue'}   given an id  - one of all the ids like 4130 to 4130-2-2.                       whats the easiest way to navigate to the correct dictionary?  Like if the given id is 4130-2-1 then it should reach the dictionary with key=key5  non xml approaches please.  Edit(1): The nesting is between 1 to 4 levels, but I know the nesting before I parse.  Edit(2): Fixed the code.  **Edit(3):**Fixed code again for string values of ids. Please excuse for the confusion created. This is final I hope :)
69888
I have a custom object, with a Text Name (ID) field. When I upsert two records with identical Name/ID, but otherwise different values, in two separate upsert statement, one record results, as expected.  When I create a list, add these records to the list, and then upsert the list, I get a DUPLICATE_VALUE error. What gives? By definition, upsert should not do this, should it? Even worse: it doesn't matter whether a record with the identical Name already exists or not, the upsert will fail in both scenarios.  By the way: by default upsert a does not use the Name/ID field as identifying/unique field, as you might expect. You need to do upsert a Name  Complete code:  List&lt;Flight__c&gt; flights = new List&lt;Flight__c&gt;(); Flight__c f1 = new Flight__c(); f1.Name = 'ABC123'; f1.Flight_Number__c = 'ABC'; flights.add(f1);  Flight__c f2 = new Flight__c(); f2.Name = 'ABC123'; f2.Flight_Number__c = '123'; flights.add(f2);  upsert flights Name;      Error message: Line: 12, Column: 1 System.DmlException: Upsert failed.   First exception on row 0; first error: DUPLICATE_VALUE, Duplicate   external id specified: ABC123: [Name]   Name being the standard identifying field of a custom object. You cannot edit the properties of this field, e.g. making it unique or not unique.
117870
I can't figure out how to do this.  There seems to be no global constant for blank/null associated with Date fields.  If I attempt to add {!$GlobalConstant.EmptyString}, or {!$GlobalConstant.Null} to the assignment I get a validation error.  If I leave the assignment field empty, then it doesn't do anything to the date. Below is a picture of my options.    Is this even possible?
116191
The simple answer to this question appears to be "No"; quoting from the pgf manual:     The setting of a key is always local to the current TeX group.   However, this is very annoying because it means that you can't do something like:  \foreach \mykey/\myvalue in {   long/list,   of/keys% } {   \pgfkeyssetvalue{\mykey}{\myvalue} }   So my next best shot is:  \makeatletter \pgfkeys{/applicant/.code 2 args={\expandafter\global\expandafter\def\csname applicant@#1\expandafter\endcsname\expandafter{#2}}} \foreach \mykey/\myvalue in {   long/list,   of/keys% } {   \pgfkeys{/applicant={\mykey}{\myvalue}} } \makeatletter   but that's not very transparent since to get at the "value", I have to use the macro \csname applicant@whatever the key name was\endcsname.  (Also, I'm not very au fait with pgfkeys, this being my first foray, so I should probably have used something like /.expand once or /.store in, but that's by the by.)  Is there a better way to circumvent this restriction?  I'd be happy with a new macro for defining the key, so \pgfglobalkeys would be okay (though in the spirit of \pgfkeys it feels more like it ought to be \pgfkeys{key name/.global=...} but let's not quibble), but when using the key's value then it ought be be accessible via the traditional means, say pgfkeysgetvalue.
60076
I am looking to encrypt some data using  in  using a specific key and  value. Are there any good function libraries or COM components that would be good to use?  I looked at ; it allows a passphrase only, and won't allow setting specific key and IV values.
71324
I want to get records from custom object sort by a field as number. The field I want to sort is string type. Is there any way to do that? I am storing result in list, is there a way to sort list based on the string field but sort it as number?
39468
I have a form on my front-page. It sends the entered address to Google API and returns the JSON to wp_options. That works fine. I am using update_option to do that, so it rewrites the meta_key each time. How would I go about having each address entered remain?    $address = esc_html( $_POST['address'] );    //assign JSON object to var using  geocodeing function('address') input    $address_results = gmap_geocode($address);    // transfer data to options array   $options['py_name'] = $py_username;   $options['address'] = $address;   $options['coords']  = $address_results;    // create and name the option_name and set fields with $options array   update_option( 'row_name', $options );
103320
I am an Indian student and am going to Japan for my Summer Internship this May. There is no Surname field on my Indian passport and only my single initial name, XXXXX, in the Given names field in passport. How should I fill the name fields in the Visa form then? Should I write my first name (Given name on passport) in the Surname field and FNU in the Given and middle names field?    My passport Surname field :
30825
I'm writing an operator for which it is crucial that every time it gets called all the properties are set to their default values.   The ops.object.delete has 1 param. use_global. It is always false, no matter what the user put in last time it got called. I would like to replicate exactly that.   (For example: I want to modify delta scale. The default val for my_factor is 1, so nothing happens until the user alters that number. If the user calls the operator again, it will have stored whatever number the user has used last, however I want it to always start with 1.)
10508
Problem: I have an address field from an Access database which has been converted to SQL Server 2005. This field has everything all in one field. I need to parse out the address's individual sections into their appropriate fields in a normalized table. I need to do this for approximately 4,000 records, and it needs to be repeatable. Assumptions:  Assume an address in the US (for now)  assume that the input string will sometimes contain an addressee (the person being addressed) and/or a second street address (i.e. Suite B)  states may be abbreviated  zip code could be standard 5 digits or zip+4  there are typos in some instances   UPDATE: In response to the questions posed, standards were not universally followed; I need need to store the individual values, not just geocode and errors means typo (corrected above) Sample Data:  A. P. Croll &amp; Son  2299 Lewes-Georgetown Hwy, Georgetown, DE 19947  11522 Shawnee Road, Greenwood DE  19950  144 Kings Highway, S.W. Dover, DE  19901  Intergrated Const. Services 2 Penns Way Suite 405 New Castle, DE  19720  Humes Realty 33 Bridle Ridge Court, Lewes, DE  19958  Nichols Excavation 2742 Pulaski Hwy Newark, DE  19711  2284 Bryn Zion Road, Smyrna, DE  19904  VEI Dover Crossroads, LLC  1500 Serpentine Road, Suite 100 Baltimore MD  21  580 North Dupont Highway Dover, DE  19901  P.O. Box 778 Dover, DE  19903
5171
Here is the dictionary I have  propertyList = {     "id":           "int",     "name":         "char(40)",      "team":         "int",     "realOwner":    "int",      "x":            "int",     "y":            "int",      "description":  "char(255)",      "port":         "bool",     "secret":       "bool",     "dead":         "bool",     "nomadic":      "bool",      "population":   "int",     "slaves":       "int", }   But when I print it out with "\n".join(myDict) I get this  name nomadic dead port realOwner secret slaves team y x population id description   I know that a dictionary is unordered but it comes out the same every time and I've no idea why.