NetTalk Central

Author Topic: Some help with printing (again)  (Read 2591 times)

oggy

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • Email
Some help with printing (again)
« on: February 20, 2014, 03:15:47 AM »
Hello, I need to solve this, lets say, problem...  :)
My question is how to "refresh" or reset browse row without clicking on "browse", lets say it that way... I have a browse with print button. Printing of particular document is well, but... I must first click on browse row, and then on print button... When I just click on print button which in NOT on selected browse row,
I got report that is not pointed on newly row, but an  "old" one...
I have a screenshot of my browse to explain my problem.

I forgot: this is source of fetching data, and that code get good position in table, but only if I put this code on embed:User clicked on a row in the browse.
This code is NOT working on server side click on button print?!?!
----------------------------------------------------------------------------------------------

p_web.ssv('KeyComponent',p_web.GetValue('TRK:SIF_POD')&p_web.GetValue('TRK:GDOK')&p_web.GetValue('TRK:SIF_PJ')&p_web.GetValue('TRK:BR_KNJIGE')&p_web.GetValue('TRK:RBRS'))
TRK:SIF_POD      = sub(p_web.gsv('KeyComponent'),1,3)
TRK:GDOK         = sub(p_web.gsv('KeyComponent'),4,4)
TRK:SIF_PJ       = sub(p_web.gsv('KeyComponent'),8,3)
TRK:BR_KNJIGE    = sub(p_web.gsv('KeyComponent'),11,2)
TRK:RBRS         = sub(p_web.gsv('KeyComponent'),13,6)
If Access:KNJ_TRG.TryFetch(TRK:poRbrs) = Level:Benign
    p_web.Ssv('pSif_Dok',TRK:SIF_DOK)
    p_web.Ssv('pSif_Pj',TRK:SIF_PJ)
    p_web.Ssv('pSif_Odj',TRK:SIF_ODJ)
    p_web.Ssv('pBR_Blg',TRK:BR_BLG)
    p_web.Ssv('pBrdok',TRK:BRDOK)
    p_web.Ssv('pSIF_STS','9')
END
! ---------------------------------------------------------------------------------------------------------



[attachment deleted by admin]
« Last Edit: February 20, 2014, 03:27:02 AM by oggy »

oggy

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • Email
Re: Some help with printing (again)
« Reply #1 on: February 20, 2014, 04:47:34 AM »
OK, solved. I figured it out how to solve this.
The solution is to put exactly same piece of code for fetching with multi-component key into processed code part in netwebpage where I choose what print report to use. All works welll...
Regards, Oggy.