[SOLVED] Â Assign XML obtained data as default value |
5/2/2018 4:45:08 PM |
PHPRunner General questions | |
U
ustunsoz author
I am getting a USD currency exchange rate from official provided XML and need to use as default value. On this purpose, trying to create a session variable in the Add page:before process event as follow:
|
|
![]() |
Admin 5/2/2018 |
You need to check what value $veri->Currency[0]->BanknoteBuying holds. Try to print it on the page instead of assigning to session variable. |
U
|
ustunsoz author 5/3/2018 |
I have checked and it is working well, I have seen the currency showing as in XML |
![]() |
Admin 5/3/2018 |
How exactly you checking this? |
U
|
ustunsoz author 5/6/2018 |
Well, I have tried to print as follow on List Page:Before process event with following code
|
![]() |
Admin 5/6/2018 |
$data[$dolartl] is completely meaningless here. Where this $data is coming from? |
U
|
ustunsoz author 5/7/2018 |
It is what I have found from topics as "how to assign value to session variable" |
U
|
ustunsoz author 5/7/2018 |
Now Okey, with following code I can see the values on the page $veri=simplexml_load_file("http://www.tcmb.gov.tr/kurlar/today.xml");
|
U
|
ustunsoz author 5/7/2018 |
Now All is working well with following code, thanks for your time and effort... $veri=simplexml_load_file("http://www.tcmb.gov.tr/kurlar/today.xml"); |