ModelService.saveAll method details - maximo-anywhere

Could anyone please explain ModelService.saveAll and ModelService.save difference. In saveAll array is passed? Please explain below code
ModelService.saveAll([startedWorkOrder.getOwner(), woTimer.getOwner()]).then(function(){
Here woTimer is local resource and startedWorkOrder is actual MBO. So how is data saved in server?
Thanks

Related

How can I get the input value of a text field that has been created with airtable in wordpress?

I am trying to make some further adjustments to an address text field. But the problem is that its made with airtable. I want to get the input of that address and use it to get some data from zillow API for the user. How can I do this? I have viewed the source HTML and I only see the airtable script.
This probably went unanswered for being too vague. I'll try to leave some pointers if anyone stumbles upon this in the future.
Are you the host of the WP page? do you have access to the Airtable base in question? Is the "frontend" viewable? Airtable's API is pretty well-documented, simple as it may be. Whatever you need, if it's from a shared view, it can be fetched with a curl request.
Other than that,if the base is public, or shared publicly, and particularly if you need this data at a steady rate or in larger quantities, you'd be better off requesting access and collecting the information with a script from the Scripting app. Since ES6, this is as trivial as doing something like
let query = await base.getTable
(cursor.activeTableId)
.selectRecordsAsync()
let payload, selectAll = query.records.map(rec => rec.name),
selectAll ?
payload = { records: JSON.stringify(selectAll) }
: console.error('something went wrong')
remoteFetchAsync(('your scraping endpoint', payload)=>
//rock'n'roll past this point
})

Using cfs:http-publish

I'm trying to use the cfs:http-publish package at https://github.com/CollectionFS/Meteor-http-publish. While I've got the GET - /api/list functionality working, I don't know how to obtain a single document:
(GET - /api/list/:id - find one published document).
Can someone provide a curl example of this, assuming a certain collection of objections.
eg: {a:3, b:2}, {a:4, b:3}, and requiring to obtain the object with {a:3}.
Thanks.
You need to put it in the query function.
HTTP.publish({collection: myList},function( ){
return myList.find(this.query);
});
this.query contains the data you sent with your request.
curl http://localhost:3000/api/myList?a=3
I don't know enough about mongo to know if this is a potential security risk, if anyone can comment on that please do.

what are PayPal CallBack parameters

Update 2:
I have found the right QueryString.
Update 1:
I think, QueryString should be the right type to use in this case.
But I tried to use it and found it's not the ASP.NET WebForm Response.QueryString instead, it is
Microsoft.Owin.QueryString.
Do I need to add some references in order to use the Response.QueryString?
Thank you for any feedback and help
I'm very close to the right direction, but need you help.
I have a PayPal callback method in my ASp.NET MVC controller called: PayPalCallBack(FormCollection form)
The problem is I cannot get any values(e.g. cm(custom), st(payment_status) etc.) from this form variable.
But when the method is finished, I did see the return url came with those values
https://www.mywebsite.net/Event/PayPalCallBack?tx=4KT34448LJ0584918&st=Completed&amt=0%2e11&cc=AUD&cm=3%2f23%2f2014%2011%3a00%3a00%20AM%7c3%2f23%2f2014%2012%3a00%3a00%20PM%7cWinTech%7cmr%7cWinston%7cFan%7cfranva008%40gmail%2ecom%7c0425620666%7c1&item_number=
So, I guess, I am using a wrong type of variable to receive its return values.
My question are
1. what should be the right type of parameter used in my PayPalCallBack( values)?
what parameters can the return_url have?
I am so close to the last step, my friends please help me out.
Note: I am asking the return values/parameters in return_url, not the notify_url which is used in PayPal IPN. Thanks
Thank you!

How to confirm If current request from EP AX 2012

I am sure there will be some helper method/class to confirm whether the current request originated from Enterprise Portal or from Client in AX2012R2. I just cant find it. Can you please point me to it?
Thanks
Look in \Classes\TradeWorkflow
The method: activatingFromWeb will tell you if it is being triggered from EP.
Hope this helps.
You could check if Global::webSession() returns a valid object:
if (webSession())
{
// Do some web-specific stuff
}

How to integrate Payseal in ASPNET

Anyone, plz, provide me the details of integrating payseal(ICICI) in my website.. They hav given some testing code.. But, I couldn't understand it.. If I get any code sample, it will be useful for me.
Thanks in Advance
Ok..I found the solution.. Just add the dll which is provided by them. They hav given the sample test pages. In that, run the aspx file, "testssl.aspx" by changing the function setmerchantdetails with your information like merchant id,response page etc., like
objMerchant.setMerchantDetails("00001212", "00001212", "00001212", "", transactionid, "Orderno", "http://localhost/SFAClient/SFAResponse.aspx", "POST", "INR", "INVoiceno", "req.Preauthorization", "1550.00", "GMT+05:30", "Ext1", "Ext2", "Ext3", "Ext4", "Ext5");
That will take u to the icici payseal page. From that the customer hav to response. After finishing the payment, it will directly return to the response page designed by you(http://localhost/SFAClient/SFAResponse.aspx).
Hope, it will help others!!!!

Resources