NetTalk Central

Author Topic: NT Mem Form/Browse using DIV issues  (Read 4665 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
NT Mem Form/Browse using DIV issues
« on: April 25, 2020, 07:39:05 AM »
Hi, this is my first NT app using DIV, it was made using the nt wizard.
1- NetWebBrowse (BrowseAsientos) always opens in full with page. Ive tried modifying Table width(pixels) in the browse Options tab and nothing. Any way of change that width?
    see pic Brw.
2- Same Browse included in a Mem NetWebFrom (mOrdenesDeSalida) is shown using a very small width, Ive done nothing but include it in the form, same browse. How to solve this?
    see pic MemForm.
3- How to set the FECHA (Date) width, it always is set at the page full width, Ive tried changing the width(chars) in the Date tab and nothing, its always 100%
    see pic MemForm.
4- In a Cel Phone view, how to keep Prompt and Entry in the same row? Ive tried combinig last in cell, spam, etc and cant do it. Ive tried deleting the Prompt but it is printed blancked.
    See pic Cell_1
5- In a Cel Phone view if you set a column CSS as RightAlign the column name and the cell are pinted to the right and not in the same row like the others using Custom.
    See pic Cell_2
Thanks
« Last Edit: April 25, 2020, 08:03:04 AM by michelis »
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: NT Mem Form/Browse using DIV issues
« Reply #1 on: April 28, 2020, 03:21:16 AM »
All of the answers to these questions are the same;

CSS.

Use the site inspector, understand how the CSS if getting the effects you see, and from there create your own CSS.

cheers
Bruce

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: NT Mem Form/Browse using DIV issues
« Reply #2 on: April 28, 2020, 05:16:44 AM »
Regarding the Browse width using DIV
Ive change the table width, tryed with a custom class and deriving the nt class using:
/*ARMi custom.css*/
.my-basimovs-table {
    width: 222%;
}
.nt-browse-table {
    width: 222%;
}
It solves the problem when the browse is INSIDE a memory form but it makes the browse 220% bigger when the browse is in a simple NetWebBrowse proc.
How can I change the browse width when its in a memory form but not when its in a netwebbrowse?
Thanks
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: NT Mem Form/Browse using DIV issues
« Reply #3 on: April 28, 2020, 07:40:02 PM »
width has to do wtih the size of the container.
ie - 100% means it takes up 100% of the container.

So maybe what you want to be addressing is not the width of the browse, but the width of the container it is in?

cheers
Bruce

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: NT Mem Form/Browse using DIV issues
« Reply #4 on: April 29, 2020, 03:40:26 AM »
Hi Bruce,
What I need is to change the width of the container (DIV) depending on where is the NetWebBrowse included
I the NetWebBrowse is included in a Form I need width=200%, if its called directly from the menu I need it to be 100%
How to do it in my class:

.my-browse-table {
    width: 200%;
}
-----------
Regards
Alberto

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
Re: NT Mem Form/Browse using DIV issues
« Reply #5 on: April 29, 2020, 08:45:05 AM »
take a look attached example..

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: NT Mem Form/Browse using DIV issues
« Reply #6 on: April 30, 2020, 09:37:27 AM »
Dont know what do you want me to see, your example does not has any CSS but...
Your example shows exactly my problem.
If you go to the invoices menu item you get a browse using 100% of the page width.
If you go to a Customer/INvoice Tab... THE SAME BROWSE has a random width where you cant clearly see the row data.
So, you need to make this browse width bigger using CSS, Ive done this, you need to set it to 200% and it works but...
When you go back to the BrowseInvoice using the menu item it is bigger than the page width, 200%
Then what I need is a way to set the browse width depending on what page the browse is inserted to.
Regards
-----------
Regards
Alberto

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
Re: NT Mem Form/Browse using DIV issues
« Reply #7 on: April 30, 2020, 11:59:50 AM »
mira el  Extender Shippers en el menú es lo mismo que el  Customer/Invoice Tab, a ese procedimiento no le puse el   ' nt-width-100'  en el tab de CSS Wrapper Div Class, añadele eso para que veas que si funciona

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: NT Mem Form/Browse using DIV issues
« Reply #8 on: April 30, 2020, 12:28:59 PM »
Perfecto! Gracias!
-----------
Regards
Alberto