tReplace not removing comma in Talend workflow - talend

I have a workflow which i am using to remove comma sign , from the data. However its is not working.
Edit: I am adding new screenshots
tMap properties
sample data
id
Shenzhen City, Guangdong, China
Rest of Hunan, China
China
Wuxi City, Jiangsu, China
Jinshan District, Shanghai, China
JingÕan District, Shanghai, China
Yangpu District, Shanghai, China

Try disabling checkbox "Whole word". If then not working as expected, follow below approach.
Instead of using treplace component, use the code like below in tMap component
row1.id.replaceAll(",","-");
The above will give you the expected result
Hope this would help you out.

Related

Huawei IAP - Currency conversion is not correct

In Huawei HMS services, i have integrated IAP kit in my application. IAP currency configured as INR, however for the region Cambodia (KH)-the converted currency value with respect to the pack is incorrect.
In my AppGallery console, product management page, the conversion is 11.99 for KHR-Cambodian currency. But the settlement the conversion is different.
Please can somebody check and let me know how to set conversion correct.
Select a country or region and its currency to be displayed by default, set Default price (tax included), and select a sorting rule. Then, select the countries and regions for which you want to convert prices based on exchange rates and click Convert prices to calculate their local prices.
For details , please refer to: https://developer.huawei.com/consumer/en/doc/distribution/app/agc-help-create-product-0000001099854866
Please Note:
After you click Convert prices, local prices for the selected countries and regions are calculated based on exchange rates and conversion rules.
You can also manually change a product price for a specified country or region on the list as required.
If a message displays, indicating that no exchange rate is found when you convert the price for a country or region, you need to manually enter the product price.
Huawei will update the exchange rates every day but will not update the product prices you have saved. You need to manually update the prices as required.
Click this link https://developer.huawei.com/consumer/en/doc/start/merchant-service-0000001053025967#section154132916309 to view tax rates of different countries and regions.

create filter from multiple data sources

I have multiple data sources that have city, state and country information.
Example -
Source 1:
ID City State Country
12345 New York New York USA
12344 Cebu City PHL
12232 Bengaluru Karnataka IND
Source 2:
ID City State Country
12345 Dallas Texas USA
12344 London UK
I would like to create a filter to show drill down option into country, state and city using both the databases. I cannot combine the source due to few sourcing issues. Not sure if a set can be created like union of the columns from the data sources to be able to show a filter that will have values from all the data sources.
Like..
Country = USA, PHL, IND, UK and then filter state and city and so on. Can someone please advise how I can achieve this?
The city, state and country columns are dynamic in my data sources
Quote from Tableau's online help.
You can union your data to combine two or more tables by appending values (rows) from one table to another. To union your data in Tableau data source, the tables must come from the same connection.
If your data source supports union, the New Union option displays in the left pane of the data source page after you connect to your data.
It's pretty easy to do inside Tableau Desktop.
https://onlinehelp.tableau.com/current/pro/desktop/en-us/union.html

Tableau Map view Continent List

I have been trying to clean my data and have a column represent the various continents and ultimately have them represented on map view.
But it doesn't consider that column to be Geography and even when i forcefully make it, the same still does not show up in map view. Any suggestions?
Africa
Asia
Europe
North America
Oceania (Tried without this too)
South America
I don't think it is possible to have continent as geographic role in Tableau.
What you could do however is look for a list which maps countries to continents and then join with your original data source on continent.
This way all your data values get replicated for each country. When you then select the country column as geographic region you can get the effect you want.
List could be something like this.

Magento displays "Sorry, no quotes are available for this order at this time" when the postal code have letters

i run a Magento CE Shop v1.7.0.2.
When customers trying to checkout with letters in the postal code (like netherlands) they getting: "Sorry, no quotes are available for this order at this time"
Without letters and whitespace there is no problem.
The other posts about this problem are about things with ups, fedEx etc... i dont have something active like this.
I only got multi tablerates and tablerates active. All countries allowed.
can someone explain to me where i can fix this? for the first time a temporary change on core classes would be ok till i get a reasonable solution.
I try to ask another way:
Where does magento decide which qotes available?
Export the tablerates.csv file in System Config > Sales > Shipping methods > Table rates. For the Netherlands the format should be like this (unless you use weight or size as well):
NLD,*,,0.0000,10.0000
NLD,*,,80.0000,0.0000
In this example you get free shipping from 80 euros up, and below that you have to pay 10 euros for shipping. For province the setting should be *, for postcode nothing between the commas. If you use a range for the postcode, that might explain your problem.

Crystal Reports 8.5 grouping

I am grouping using a formula fCity which goes like this
If {X.MailingCity} > "" Then
{X.MailingCity}
Else
{X.City}
I have two different fields in my view (Home City and Mailing City)
Now, these fields contain many rural communities and in my report I want to have these smaller rural communities included with the major city it is located near. I created another group (Specified Order) and created the major cities and was attempting to include the rural cities into these groups. IN the end I ended up with many of the communities in "OTHER" category. It was only picking up rural communities from the X.MailingCity field and not X.City or from my formula fCity.
Have I just confused you. If there is someone who understands what I am doing please respond.
You need to relate rural cities and major cities somehow, then you can just group by major cities (or by formula, returning major city for rural one).