NetTalk Central
		NetTalk Web Server => Web Server - Ask For Help => Topic started by: agustinh2000 on October 17, 2013, 10:41:01 AM
		
			
			- 
				Hi Bruce, from the new updates when I want to insert a new record into a child table lost the focus of the parent table. the record is saved well but I have to refresh the system and going out again. I Attach a picture.
 
 thanks
 
 Agustín
 
 [attachment deleted by admin]
- 
				7.27 is out today - let me know if it's still happening there.
 
 cheers
 Bruce
 
- 
				Bruce, the problem persists in version 7.28
 
 regards
 
 Agustín
- 
				I wasn't able to duplicate in the Books (71) example. So I'm guessing it might be related to your filter on the _Child_ browse. ie your Browse on Ordenes. What is your filter set there?
 
 cheers
 Bruce
- 
				The problem is in the filter (form)
 
 On set filter (parent browse):
 
 Thisview {Prop: Filter} = 'SQL' & |
 '(' & |
 '(A.IdSucursal =' & p_web.GSV ('Loc: FiltroDropSucursal') & ')' & |
 'AND' & |
 '(A.TipoTrat = <39>' & CLIP (LEFT (p_web.GSV ('Loc: TipoTrat'))) & "<39>) '& |
 ')'
 
 Thanks
 
 Agustín
- 
				what is the contents of ThisView{prop:filter} after this call?
 
 Any why set the filter like this, and not via the template?
 
 cheers
 Bruce
 
- 
				A.IdSucursal is a field in the browse = Variable form (filter drop)
 
 If necessary I send the app with the filter (form) and the 2 browse(It is in mysql)
 
 I'm working on version 7.10, I can not update the following versions
 
 attached an example
 
 [attachment deleted by admin]
- 
				I don't think you answered my questions.
 
 a) What is the contents of ThisView{prop:filter} after this call?
 b) Any why set the filter like this, and not via the template?
 
 >> I'm working on version 7.10, I can not update the following versions
 
 ok, but if you can't update there's not much I can do to help.
 
 Cheers
 Bruce
 
- 
				Ok, the first answer: it is a sql filter
 the second answer is: do not use the template to make the filter
 
 What I was saying about updates is that until version 7.10 I can work properly, after that I could not update because I have all filters with this method.
 
 But for better understanding I attached a code sample (filter, child browse and browse)
 
 Recall that the problem is that when I insert a record in the child lose focus browse
 
 we are in contact
 
 Agustín
 
 [attachment deleted by admin]
- 
				I don't think you're understanding my questions properly;
 
 >> a) What is the contents of ThisView{prop:filter} after this call?
 
 > Ok, the first answer: it is a sql filter
 
 What I mean is - tick on the Send Filter & Order to Debugview template option, cut the filter from Debugview, and post it here.
 
 The second question could be worded better.
 
 >> b) Any reason why you set the filter like this, and not via the template?
 
 I understand what you are doing, I don't understand _why_ you are doing it.
 
 Let me add another question;
 
 c) If you set the template in the filter as normal, then does the problem persist?
 
 cheers
 Bruce
 
- 
				Bruce, I send an example of the filter in Example 71. and 2 images.
 
 Use the template to make the filter.
 
 greetings and sorry for the lack of expression
 
 Agustín
 
 [attachment deleted by admin]
- 
				Please post instructions on the path I need to take to duplicate the error in the example.
 
 cheers
 Bruce
 
- 
				Ok.
 
 1) I create a form (Filter) to add the filter (menu link invoice)
 2) From the Filter tab procedure call (BrowseInvoices)
 3) In Browse (BrowseInvoices) -> Actions-> Filter-> Conditional filters-> Child of Filter
 4) In the Browse (BrowseInvoices) -> Actions -> Children (BrowseLineItems)
 
 Insert a new record in BrowseLineItems and loses focus
 
 regards
 
 Agustín
- 
				Ok, I see what is happening. The fix is not trivial though, so I'm investigating further.
 
 cheers
 Bruce
 
 
 
 
- 
				Hi Bruce, in the future you believe that you can fix the bug?
 
 I am working with version 7.10
 
 regards
 
 Agustín