NetTalk Central

Author Topic: Help with Form / Browse Layout  (Read 3466 times)

Neil Porter

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • Email
Help with Form / Browse Layout
« on: April 15, 2014, 04:19:34 AM »
I have created a netwebform with a newwebbrowse and a date range embedded within it. (See attached screen grab)

I have 2 issues with the layout that I don't like, and I wonder if someone can help me out.

1) the date range at the top. If I tick to span Prompt/value/comment my values don't align. If I don't tick to span, the fields get spread out across the screen because my browse is so wide.
2) I'd like to have my print button next to the Export button. There is an option in the Browse, Form tab that mentions a print button, but I can't get it to display. The print button that shows on the screen grab is actually populated on my form.

As an aside, I'd also like to be able to combine the delivery address lines into 1 column, but that's in a separate post.

Any advice would be very welcome,

Regards,

Neil.



[attachment deleted by admin]
Clarion 11.0.13244
NetTalk 11.04

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Help with Form / Browse Layout
« Reply #1 on: April 15, 2014, 11:34:48 PM »
Hi Neil,

1.
I would probably create a small css style to add to the prompt fields on that form;

.minprompt{
min-width:200px;
}


I don't know the exact right number of pixels to use, but start with something big, and then reduce it to find the optimum.

This will have the effect of aligning the prompt (although if the prompt gets a lot bigger in the future, it'll still be visible, just mis-align again).

>>  I'd like to have my print button next to the Export button.

that's hard to do because the Export button is part of the browse control, and the Print button is not (it's a part of the Form I'm guessing). If this was critical then probably the way to start is to add an Export button to the form, which in turn calls the Browse with the right settings to make it do the export. That would take some careful examination, but is likely do-able.

Cheers
Bruce




Neil Porter

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • Email
Re: Help with Form / Browse Layout
« Reply #2 on: April 16, 2014, 12:53:16 AM »
Hi Bruce,

Thanks for the input on the Prompt issue. I'll experiment.

With regard to my Print Button, is there no way I can "Activate" the Print button on the Browse, rather than having to add a print button onto the form? There is a print button listed along with Insert, Change, Copy, Export, etc. but I can never get it to display at the bottom of a browse

Regards,

Neil.
Clarion 11.0.13244
NetTalk 11.04

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Help with Form / Browse Layout
« Reply #3 on: April 16, 2014, 01:27:36 AM »
Hi Neil,

Way back when there was an idea to be able to "Print" the browse, but I haven't really gone down that road at all to see where it leads. It might be as simple as "calling a report", but I think it would be more like formatting the browse according to an alternate CSS file.

So I'm hesitant to go that route at the moment.

Cheers
Bruce

Neil Porter

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • Email
Re: Help with Form / Browse Layout
« Reply #4 on: April 16, 2014, 01:32:03 AM »
OK Bruce,

Well at least I wasn't being dull ;)

I just want to call a print routine so that my user has the option to either print the browse to a PDF, or Export the contents of the browse to excel, so I'll go back to the buttons example, and see if I can add a custom button to the bottom of the browse to call my print routine.

Regards,

Neil.
Clarion 11.0.13244
NetTalk 11.04