I am new to powerbi world.. I need your help to set up cascading parameters from different data sources.
Example:
I have two data sources:
Data source1 = Contact
Data source2 = DataFact
I created two datasets from the data sources.
DatasetContact from Contact Data source,
DatasetFact from DataFact Data source
Contact has data fields:
Email Address, Name, Fax, Address
DataFact has data fields:
Name, Date, Sell, Measure
Now, what I want is, i have two parameters: Name (from Datafact) and Email Address (from Contact). When i select a name from Name parameter, Email Address parameter shows only email address associated with Name (from Datafact).
Related
Create an item in the Navigation Menu.
Create an Angular view component.
Create input entries, input and text area.
Locate the selected company name and companyID from the code and put a label that displays the company name.
The Save button should take all the entries including the companyID and write them to the console as a single JSON.
A web API will be created that will take that JSON and store it on the database.
Code, site.component.ts
Code, site.component.html
I tried using the Formcontrol methods to create a form for the input data in the typescript file. My partner on this project gave me the following instructions that I need to complete:
Get CompanyId
Get CompanyName
Create a JSon
Assumptions
replace label with dropdown list
get dropdown values from CompanyServices.getAllCompanies()
get all company names
make a map of company names to company ID
display list of company names
onSubmit
get all the companyIDs, use all of the companyIDs to get the company names, pair the IDs to the company name, and then in the drop-down,
display the company name, but save the companyID, make sure that onSubmit() passes all the fields that you need (description, companyInfo)
and then JSONify the output.
{"address":"ddd",
"description":"xxx",
"companyId":
let json = JSON.Stringify(obj)
Get list of companies
// Google how to create dropdowns
map company name to ID
// Google how to map,
add new list of names/ID's to companyID formGroup
onSubmit(){
var companyUpdateDTO = {
address: this.companyInfo.get("address").value,
description: this.companyInfo.get("description").value,
contactInfo: this.companyInfo.get("contactInfo").value,
companyId: this.companyInfo
}
console.log(this.companyInfo);
console.log(JSON.stringify(this.companyInfo));
}
}
I am creating a spreadsheet to document rental data.
I have client information on one sheet (Clients), and rental info on an other sheet:
Rental.
[ID] [Name] [Phone] [Product Code] [Product Name] [Price]
Clients:
[Name] [e-mail] [Phone]
The unique identifier for the clients are their phone number.
To be user friendly, on the Rental sheet the name of the client is used to by receptionist to log the rented equipment, and the unique ID (phone number) is used as a hidden data in the record.
When there are multiple clients with identical names, I use a popup window with HtmlService.createTemplateFromFile and SpreadsheetApp.getUi().showModalDialog where the receptionist can click on the phone number of the actual client in question.
I am stuck at the part, where I look up the list of phone numbers from the sheet Clients based on the data in getRange(SpreadsheetApp.getActiveSpreadsheet.getActiveRange.getRow(),2 (the 2nd column of the active row on the Rental sheet.
I can't use the built-in functions of sheets like Filter or query form the API script.
I really want to avoid migrating the whole project to google sql database if possible.
Any suggestions or pointers are appreciated.
1) Define the lookup field for the Clients sheet ('Name')
2) Use the onEdit(e) trigger to handle edit events in the Rental sheet and check if the 2nd column (Name) was edited. More info on simple and installable triggers
https://developers.google.com/apps-script/guides/triggers/
https://developers.google.com/apps-script/guides/triggers/installable
3) Get the values from the 1st column of the Clients sheet ('Name'):
var rows = sheet.getRange(2, 1, sheet.getLastRow - 1, 1).getValues()
and filter them based on user input.
rows = rows.filter(function(row){ return row[0] == userInput });
If more than 1 value is returned, display the popup, passing the variable to the HTML template. More on how to do that
if (values.length > 1) { //do something }
If you are not confident enough using GAS, please refer to the official documentation.
I am using the Marketo API V1 to get lead data from a customers Marketo account. I have successfully connected to the API (by going through their documentation).
I can get data for a single lead however it only displays the default data (id, firstName, lastName, email) and I know there are a lot of custom data fields (company, salutation, jobTitle etc.) but this does not show from the API - do you know how I can access this custom data?
Below is the API URL I am using which works fine just not showing all the data I require:
https://<<url>>/rest/v1/leads.json?access_token=<<token>>&filterType=email&filterValues=oliver#test.com
This returns:
{"requestId":"1261b#14f40fc3156","result":[{"id":2755951,"updatedAt":"2015-08-18T10:58:42Z","lastName":"wells","email":"oliver#test.com","createdAt":"2015-06-02T09:36:48Z","firstName":"oliver"}],"success":true}
Thank you very much!
You need to include a parameter, 'fields', which has a comma-separated list of field names to retrieve a given set of fields: http://developers.marketo.com/documentation/rest/get-multiple-leads-by-filter-type/ See example 2, there.
We are creating customers on SAP CRM and replicate these customers to SAP ECC.
User needs to filter postal codes by the district code they choose while creating customer.
This functionality has provided by SAP ECC.
But in CRM we couldnt find any relation between postal codes and district codes.
How can we filter postal codes by district codes in SAP CRM?
Take a look at get_v_postl_cod1 method of ZL_ICCMP_BP_BUPAADDRSTD_CN00 class, this is the getter method for post codes in account overview.
Inside you'll find something like this:
country_id = get_s_struct( attribute_path = 'STRUCT.COUNTRY'
component = 'COUNTRY'
iterator = iterator ).
...
...
...
SELECT * FROM adrpstcode INTO TABLE lt_adrpost_code
WHERE country = country_id.
You can fetch region value in the same way as country value and modify select query to include your region data.
These tables should provide with all required data: ADRPSTCODE, ADRCITY, ADRCITYT, ADRPCDCITY, ADRPOBOX, ADRCITYPRT, ADRSTREET, ADRSTREETT, and ADRSTRPCD.
I'm trying to retrieve a list of all payments received/entered into a Sage Line 50 database. The company I work for are members of the Sage developer program, so I have access to the SDK, help files and the like but I have been unable to find any specific information regarding payments.
Some of the .dta files contain references to payments (SPLITS.DTA & HEADER.DTA) alongside Invoice rows.
Does anyone know whether or not there is a separate file which contains only payment information, and if so what is it? Alternatively, will I have to pull the full list of rows from the SPLITS/HEADER files and filter them by type?
Many thanks in advance
I pulled data from the Header and Split files for a test customer this afternoon, and they contain (as near as I can tell) all customer activity - Invoices, Invoice payments and Credits are all reflected in both data files (the split data file containing more in depth data) and can be filtered by bank_code and transaction type.
To get the data - first create a reference to a customer object and from there link to all of the header (assuming you have an existing connection and workspace).
dynamic workspace = this._workspaces[workspaceName];
dynamic customer = workspace.CreateObject("SalesRecord");
bool added = customer.AddNew();
customer.MoveFirst(); //find first customer
dynamic headerObject = customer.Link;
bool headerFound = headerObject.MoveFirst(); //use .MoveNext() to cycle headers
You can then pull data from the header object using :
string AccountRef = headerObject.Fields.Item("ACCOUNT_REF").Value;
Where ACCOUNT_REF is a field in the HeaderData object.
Use the following code to get split data
dynamic splitObject = headerObject.Link;
bool splitFound = splitObject.MoveFirst() //and so on