IBM MDM Component level getParty but as per requesterTimeZone [closed] - master-data-management

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
We have existing code to retrieve user detail by component level getPetrson call. Perhaps the last developer did component level getPerson due to performance benefits.
But now I have requriement that all the date fields in the getPerson response must have dates in timezone as per the defined value in requesterTimeZone field.
I have 2 options
Convert all component level getParty into controller level and set timezone. 2. Manually write codes to convert list of 20 - 25 date field values into a timezone defined in requesterTimeZone.
Which one is really performance benificial . is there a way at component level getPerson call to set requesterTimeZone as say IST or PST but the stored value in DB is by default GMT.

I will choose 1st option as per IBM standards. Manually converting timestamp fields which avaialble in most of the BOBjs is tedious job and it is not as per recommendations. I hope you guys enabled OTS, Hence adding controller flow doesn't impact much. If your invoking getParty more than once then save the response instead of calling many times..
Are you calling at business proxy? like Maintain?
Possible let us know the behaviour exactly.

Finally I used the ObjectHierarchyMetadata.addHandler(BusinessObjectTimeZoneConverterHandler); & ObjectHierarchyMetadata.execute(anyBobj);
to convert a anyBObj got using component level get call.

Related

Need RegEx to filter dataset according to specific position in string [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
Want to filter dataset with SQL query using RegEx to filter entries based on the time (hour) e.g. 19:XX or 09:XX. The hour part of the string would be in position 12 and 13.
Checked a few other questions and articles, but I'm very new to this and can't figure it out. Don't know which SQL database it is, but I work with it on Google BigQuery.Thanks for your help!
Screenshot of data entries
The standard way to access the hour in a date/time is:
where extract(hour from timecol) = 19
Not all databases support extract. All should have something similar.

Sabre- BARGAIN FINDER MAX (OTA_AirLowFareSearchRQ) ResponseType="" [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm currently working on the development of Sabre SOAP API's for Air(Flights) and using BargainFinderMax(OTA_AirLowFareSearchRQ) to search for flight availability. so in the request, there is a parameter ResponseType that defines the type of response to the requested data.
My Question is: if there is any responsetype which will bring the result grouped based upon the prices. ForExample: a group with one price = $1000 will contain multiple Options of flights (having different timings). For now, I can only get the OTA and GIR response type. which shows separate itineraries having the same price, as shown in the image below:
It has two itineraries with the same data(same price) but different Legs. What I'm actually looking for is that Itineraries with same price be grouped together in a single element.
Same as the response returned in TravelPort if we make LOWFARESEARCH Request and set SolutionResult="false". it gives PricePoint results i.e. Itineraries grouped in a single pricepoint. Can this be possible in sabre?
ResponseType can only have those 2 values, as stated in the request documentation: ResponseType, specify type of the response, valid values: "OTA" - regular OTA response, "GIR" - Grouped Itinerary Response.
If not used, it will default to OTA.
Anyway, even though it is harder to read (by a person), GIR groups almost everything, in order to avoid duplicating data. But, since the price of the whole itinerary is inside the itinerary element, the only way to do what you want is by looping through the itineraries and grouping them together, and it can be achieved using either OTA or GIR. There's nothing built in for that.

Cross Checking a SQL server report [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have a report that runs daily. I want to send the output of this report to a csv file. Due to the nature of the report, from time to time some data can be lost (new data is generated when the job is executing so sometimes, some is lost during this process as it is a lengthy job).
Is there a way to cross check on a daily basis that there is not any data from the previous day that has been lost- Perhaps with a tick or cross at the end of each row to show that the data has not been exported as a csv?
I am working with sensitive information so cant share any of the report details.
This is a fairly common question. Without specifics, it's very hard to give you a concrete answer - but here are a few solutions I've used in the past.
Typically, such reports have "grand total" lines - your widget report might be broken down by month, region, sales person, product type, etc. - but you usually have a "total widgets sold" line. If that's a quick query (you may need to remove joins and other refinements) then running that query after you've generated the report data allows you to compare your report grand total with the grand total at the end of the report. If the results are different, you know that the data changed while running the report.
Another option - SQLServer specific - is to use a checksum over the data you're reporting on. If the checksum changes between the start and end of the reporting run, you know you've had data changes.
Finally - and most dramatically - if the report's accuracy is critical, you can store the fact that a particular row was included in a reporting run. This makes your report much more complex, but it allows you to be clear that you've included all the data you need. For instance:
insert into reporting_history
select #reportID, widget_sales_id
from widget_sales
--- reporting logic here
select widget.cost,
widget_sales.date,
widget_sales.price,
widget_sales......
from widgets inner join widget sales on ...
inner join reporting_history on widget_sales.widget_sales_id = widget_sales.widget_sales_id
---- all your other logic

Does someone know how can I connect multi-DB-servers for clearing code or samples [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I have found out a lot of messages from stack overflow but it is too much information to me , and I didn't see any clear code ,I wish I can use like as below URLs with easy way
Querying data by joining two tables in two database on different servers
Selecting data from two different servers in SQL Server
PS: sorry for all , maybe my English isn't very well ,so that I cannot understand or know , hopefully someone can give me a very simple code
This sample is very easy , hopefully it is you want
1.Data Source <=Server ip or ServerName
2.Initial Catalog <= DB Name
3.User ID <= Account ID
4.Password <= Account PWD
5.[*****].[dbo].[awards] <= which table you want to find out
SELECT *
FROM OPENDATASOURCE('SQLNCLI',
'Data Source=10.***.***.***;Initial Catalog=B2C**;User ID=****;Password="****"')
.[*****].[dbo].[awards]
PS: more detail you can see
https://msdn.microsoft.com/zh-tw/library/ms179856(v=sql.120).aspx
or Querying data by joining two tables in two database on different servers
or Selecting data from two different servers in SQL Server
it will be gave you more detail ways or methods

How to update a row automatically when the time is right? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a table with 2 columns
Time Status
2015/3/10 12:00:00 NEW
What I want to do is to automatically update the Status to "On Going" when the Time comes.
How to do that? Thank you!
The normal accepted practice would be to run a periodic job (once a minute, once every five minutes, depending on your needs) with an SQL statement like:
update mytable
set status = 'ongoing'
where status = 'new'
and time < getdate()
Whether you do this with SQL Server Agent, or a scheduled task, or a service is up to you. Given it's really an SQL Server function, I'd probably opt for the first one.