API Forum

This forum is in read-only mode.
Please refer to our API support in case you have any questions.
We can be reached at api@e-conomic.com
e-conomic API developer forum

get debtor and display it's data

0
please help me i cant make this work!!

            $debtorHandle = $client-Debtor_FindByNumber(array('number' = $_POST'debtornr'))-Debtor_FindByNumberResult;
            $num_debtors = count($debtorHandle);
            if($num_debtors == 1)
                {
                $debtorDataObjects = $client-Debtor_GetData(array('entityHandle' = $debtorHandle))-debtor_GetDataResult;
                print_r($debtorDataObjects);
                echo der er fundet count($debtorDataObjects);
                foreach ($debtorDataObjects as $i = $debtorData)
                    {       
                    echo $debtorData-Number, ;
                    echo $debtorData-Name, ;
                    echo $debtorData-PostalCode, ;
                    echo $debtorData-Address, ;
                    echo $debtorData-City, ;

                    }
                }
created May 19, 2012 by bahn
0% Accept Rate
Q 10 A 10 C 5

2 Answers

0
What happens?


Best regards,
answered May 21, 2012 by Christian Estrup
0
it was my mistake
           $debtorDataObjects[] = $client-Debtor_GetData(array('entityHandle' = $debtorHandle))-debtor_GetDataResult;
changed to            $debtorDataObjects[] = $client-Debtor_GetData(array('entityHandle' = $debtorHandle))-[u:1d9xw0j4]D[/u:1d9xw0j4]ebtor_GetDataResult;
answered May 21, 2012 by bahn
Visma e-conomic A/S
...