How to solve this issues in magento for update Currency Rate? - magento-1.9

Currency update warnings:
WARNING: Cannot retrieve rate from http://www.google.com/finance/converter?a=1&from={{CURRENCY_FROM}}&to={{CURRENCY_TO}}
I got this message in my email during cron job call. Please help me for this problem.

The URL you are calling does not work anymore.
You need to edit the file app/code/local/Payserv/GoogleFinance/Model/Google.php (or the one you are using) and replace
https://www.google.com/finance/converter?a=1&from={{CURRENCY_FROM}}&to={{CURRENCY_TO}}
with
https://finance.google.com/finance/converter?a=1&from={{CURRENCY_FROM}}&to={{CURRENCY_TO}}

Related

Get new Invoice ID when created via API using JSON

I have been using XML to create invoices but I am updating my code and switching to using JSON.
When using XML I would get a set of XML returned and part of the data was the new Invoice ID.
However, so it seems at least, when I create a new invoice via the API using JSON, I just get "http/200" (or something like that) returned and no info about what the new invoice ID is!
I need the invoice ID so I can post an attachment.
I tried adding "?summarizeErrors=false" to the end of the URL but nothing was returned unless there was an issue - kinda what it says it does :-)
Can anyone point me in the right direction?
Thanks, Jeremy
Its Ok....I resolved it. Wrong value populated in a property in the HTTP control I was using...ugh.

ora-01403 at run time environment Only [duplicate]

This question already has an answer here:
enable-update-delete-insert a row when radio buttons pressed
(1 answer)
Closed 7 years ago.
after i had alert one of my tables column and change its type from
number to varchar2 and changing the data type also for the text item
I tried also the data block wizard to refresh the data block and also
write the DISPLAY_ERROR at each step but nothing show up !
I had tried to delete the FMX file and recompile the form and generate the FMx file but thats was not help !!
frm-40508 oracle error unable to insert record !
at run time environment Only but when I run the from from developers
it is works fine !
i know it should be sample error to solve but all my tried had fail
whats the problem please !
is their any cache or something I need to refresh it ?!
should I delete the whole datablock and re-builded cause of that little change ?!
Just for sharing my problem that I was navigating through multiple forms using
OPEN_FORMS which is by default has NO_SHARE_DATA_LIBRARY I had replace it with
CALL_FORM which is has same parameters as OPEN_FORMS but it is allow forms to do update insert and delete transactions for more understanding Please refer to oracle forms builder help search for OPEN_FORM AND CALL_FORM key words
Thanks

zabbix regex to trigger for wrong data type

I have an item of type float, but sometimes a string is received in case of error instead of a number. How can I make a trigger regexp to fire in this case?
I have no idea now to check for "wrong data type".
Actually this is by design and what I'm trying to do is this: if the data gathering fails, I send an error message in order to see it on zabbix end.
I tried with nodata(0), but this doesn't seem to work.
In you case zabbix will not store the "wrong" value for the item. And if you don't care what the string is then you can just setup a trigger for "nodata" for the period of your interval. Look in the triggers manual and search for the "nodata".
Edit: scratch that, didn't read the whole question ....
Edit2: if you are certain that this is not working by design and not because your trigger interval misses the data interval, then you can try to catch the unsupported status. There is an open request for the functionality, but you can setup a side script similar to this. Or you can wrap the monitored item on the node into a UserParameter script that reads the value and prints -1 or something if it is not a number. Then proceed with a normal numeric trigger.

PowerBuilder Find function throws an error "expression is not valid"

What is wrong with this code. I am checking whether there is an available record in the database before inserting a new serial number. When I enter any record whether available or not, it throws an error message:
"Expression is not valid". (PowerBuilder Classic 12.5 and SQL Server
2008)
If This.GetColumnName() = "serial_No" Then
long ll_serial
ll_serial=dw_newrecord.find(data, 1, dw_newrecord.rowcount())
if ll_serial>0 then
messagebox("validation error", "The record already exists")
return 1
end if
End If
It is likely that your data expression has a syntax error. It can be some misformed code -like missing quotes- or maybe that the column name is incorrect.
To help for tuning a filter or find expression, you can test it in the datawindow design screen via the Rows / filter menu.
A better solution for long-term coding design would be to integrate the Datawindow Debug Machine (made by a colleague of mine) to your project. It is a precious tool to prototype datawindow expressions for finding, filtering but also for dynamic objects creation / modification in a datawindow. And while correctly interfaced with a datawindow ancestor of your project, it can help with filters and find expression errors like here.
EDIT: As RealHowTo noticed, the tool has been updated. Here is the current latest version (but there is no updated demo screencast though).

MySQL Getting Data from SQL Query (phpmyAdmin)

So I figured out (got some help from this site too) how to insert a data into my query, but now I go on another tab on my C# tool at visual express 2008 where there is a textBox5 and I want all of the data to show up there(textBox5) after I click on the Update Button(button3). How Will I be able to do this? Here is the code at pastebin (please alter it yourself and re-upload it at pastebin.com and send me the link, many thanks!): http://pastebin.com/g975HB1r
Make a string to parse the data you want to display and set the textbox.text property to this string.
Also, change the textbox5_textchanged, because you will clear it, after the updating.
EDIT :
Added the suggested corrections on pasteBin. You can extend it, by using also the other columns.
http://pastebin.com/r0xEjKWj