61
Web Server - Ask For Help / Re: checkboxes and radio buttons
« Last post by rjolda on October 18, 2024, 03:29:23 AM »Mike,
Maybe look at the page in developer mode and see what is happening in css for respective form. Getting overwritten by different settings in form? You may have to tweak the custom css - especially if you are playing with the built in nt identifiers and not your unique one.
Ron
Maybe look at the page in developer mode and see what is happening in css for respective form. Getting overwritten by different settings in form? You may have to tweak the custom css - especially if you are playing with the built in nt identifiers and not your unique one.
Ron
62
Web Server - Ask For Help / checkboxes and radio buttons
« Last post by MikeR on October 18, 2024, 02:17:19 AM »I have a form within a form
it is a memory form with generate form tag switched off
It has checkboxes and radio buttons
when the inside form refreshes it appears to loose the jquery "Boxes' and show as normal ticks and radio buttons until the form is refreshed again and they come back ?
any body have any tips ?
it is a memory form with generate form tag switched off
It has checkboxes and radio buttons
when the inside form refreshes it appears to loose the jquery "Boxes' and show as normal ticks and radio buttons until the form is refreshed again and they come back ?
any body have any tips ?
63
Web Server - Ask For Help / Re: Change background color of entire app
« Last post by jking on October 15, 2024, 05:45:50 PM »Hello all,
I think I found the mistake. I forgot the hash mark (#) in the hex of the color! Here is the working code now:
.nt-body{
background-color: #e6e6fa;
}
Thanks,
Jeff
I think I found the mistake. I forgot the hash mark (#) in the hex of the color! Here is the working code now:
.nt-body{
background-color: #e6e6fa;
}
Thanks,
Jeff
64
Web Server - Ask For Help / Re: Change background color of entire app
« Last post by rjolda on October 15, 2024, 05:33:37 PM »Jeff,
This CSS thing is for the young kids - not for old guys like me! Anyway, there are so many things going on here. The first question I have is did you get the css into your working custom.css file? You can look at the web page and put it in developers mode ( IE or Firefox. I have started using Stylizer 7 for some work as I learn css) - is your NEW CODE in the css? Is it being over written? if it is there, what is overwriting it?
That is supposed to be the power of css - one change and voila - the whole site is transformed.
Th --site--background is a built in variable I think.
This will give you a start. BTW, I hired a young kid to help me move around CSS - was well worth it. ( These kids will make a web site do all kinds of tricks - but they don't have a clue about the data behind it and what it represents or how to manage it. My 2 cents...
Ron
This CSS thing is for the young kids - not for old guys like me! Anyway, there are so many things going on here. The first question I have is did you get the css into your working custom.css file? You can look at the web page and put it in developers mode ( IE or Firefox. I have started using Stylizer 7 for some work as I learn css) - is your NEW CODE in the css? Is it being over written? if it is there, what is overwriting it?
That is supposed to be the power of css - one change and voila - the whole site is transformed.
Th --site--background is a built in variable I think.
This will give you a start. BTW, I hired a young kid to help me move around CSS - was well worth it. ( These kids will make a web site do all kinds of tricks - but they don't have a clue about the data behind it and what it represents or how to manage it. My 2 cents...
Ron
65
Web Server - Ask For Help / Change background color of entire app
« Last post by jking on October 15, 2024, 04:14:17 PM »Hello all,
For a current client, I maintain three versions of an app: one for training, one for testing and one for production. They want me to set the background color of the test and training versions to a lighter pastel color. I thought about adding the following to my custom.css file:
--site-background:e6e6fa;
.nt-body{
background-color:var(--site-background);
}
After running the GzipAll.bat, and doing a CTRL-F5, the background color is not changed. Any thoughts as to where I went wrong?
Thanks,
Jeff King
For a current client, I maintain three versions of an app: one for training, one for testing and one for production. They want me to set the background color of the test and training versions to a lighter pastel color. I thought about adding the following to my custom.css file:
--site-background:e6e6fa;
.nt-body{
background-color:var(--site-background);
}
After running the GzipAll.bat, and doing a CTRL-F5, the background color is not changed. Any thoughts as to where I went wrong?
Thanks,
Jeff King
66
Web Server - Ask For Help / Re: How to call a "secondary" form after saving main update form?
« Last post by jking on October 15, 2024, 04:08:36 PM »Hi Ron,
After looking at a few other posts here, I came to the same conclusion, use an in-row button on the browse. I can call a test report from this button now. This is not as "automatic" as the user wants but it should do.
Thanks!
Jeff
After looking at a few other posts here, I came to the same conclusion, use an in-row button on the browse. I can call a test report from this button now. This is not as "automatic" as the user wants but it should do.
Thanks!
Jeff
67
Web Server - Ask For Help / Re: How to call a "secondary" form after saving main update form?
« Last post by rjolda on October 15, 2024, 03:31:43 PM »Jeff,
I am not sure of a good way to call the MemForm Procedure now that I look at it.
I would consider putting a Button on the Browse that says "Print Report". It sounds like each record should have the Print report button so you don;t need to hide/unhide it. Make It an Action: Other . For th "On Click" action, use the second line the Procedure: In there put the NewStudyReport. No need for a MemForm now that I see what you are trying to do. Just the button. Make the NewStudyReport a Report procedure itself. It is the one that gets called with the Print Button. The Target Frame is '_blank' ( this opens the PDF report in a new tab). The NewStudyReport procedures has the Prototype/ Parameter (<NetWebServerWorker p_web>). You just need to make sure that the highlighted record p_web.GSV('Study_Id') is in focus so that you get the correct report. You can put code in the "Client-Side" tab.
For my Browse, I actually flag that the report was printed. so I send the Button click to the server, I have this in the SERVER CODE:
! for marking printed...
JSRV:GUID = p_web.GSV('JSRV:GUID')
if access:J_SRVREQ.fetch(JSRV:GUID_KEY) = Level:benign
p_web.SSV('JSRV:reqPRINTED',1)
access:J_SRVREQ.Update()
JSRV:reqPRINTED = 1
end
And I Refresh browse row DATA after server code runs.
Jeff, I think that this is really all you need.
Yell at me if it isn't going right for you and I can help you.
Ron
I am not sure of a good way to call the MemForm Procedure now that I look at it.
I would consider putting a Button on the Browse that says "Print Report". It sounds like each record should have the Print report button so you don;t need to hide/unhide it. Make It an Action: Other . For th "On Click" action, use the second line the Procedure: In there put the NewStudyReport. No need for a MemForm now that I see what you are trying to do. Just the button. Make the NewStudyReport a Report procedure itself. It is the one that gets called with the Print Button. The Target Frame is '_blank' ( this opens the PDF report in a new tab). The NewStudyReport procedures has the Prototype/ Parameter (<NetWebServerWorker p_web>). You just need to make sure that the highlighted record p_web.GSV('Study_Id') is in focus so that you get the correct report. You can put code in the "Client-Side" tab.
For my Browse, I actually flag that the report was printed. so I send the Button click to the server, I have this in the SERVER CODE:
! for marking printed...
JSRV:GUID = p_web.GSV('JSRV:GUID')
if access:J_SRVREQ.fetch(JSRV:GUID_KEY) = Level:benign
p_web.SSV('JSRV:reqPRINTED',1)
access:J_SRVREQ.Update()
JSRV:reqPRINTED = 1
end
And I Refresh browse row DATA after server code runs.
Jeff, I think that this is really all you need.
Yell at me if it isn't going right for you and I can help you.
Ron
68
Web Server - Ask For Help / Re: How to call a "secondary" form after saving main update form?
« Last post by jking on October 14, 2024, 04:34:25 PM »Hi Ron,
I have tried your suggestion. In the Post Insert embed I have:
NewStudyIDForm(p_web) !!Call Memory Form
This does not seem to work as the memory form does not appear when inserting a new record. Am I calling the memory form correctly?
Thanks,
Jeff
I have tried your suggestion. In the Post Insert embed I have:
NewStudyIDForm(p_web) !!Call Memory Form
This does not seem to work as the memory form does not appear when inserting a new record. Am I calling the memory form correctly?
Thanks,
Jeff
69
Web Server - Ask For Help / Re: How to call a "secondary" form after saving main update form?
« Last post by jking on October 14, 2024, 03:59:46 PM »Hi Alberto,
Your suggestion is interesting. The normal process is to open a browse, do an insert and then return to the browse after a save or cancel. With your suggestion I think the user would be taken from the form to the secondary form and no longer be returned to the browse. Is this correct? If so this would not be what the client wants.
Thanks,
Jeff
Your suggestion is interesting. The normal process is to open a browse, do an insert and then return to the browse after a save or cancel. With your suggestion I think the user would be taken from the form to the secondary form and no longer be returned to the browse. Is this correct? If so this would not be what the client wants.
Thanks,
Jeff
70
Web Server - Ask For Help / Re: How to call a "secondary" form after saving main update form?
« Last post by rjolda on October 14, 2024, 03:19:47 PM »Jeff,
In the Form there is a Routine - Post Insert - which I use occasionally to do some secondary work. Maybe call a MemoryForm with the Print button. If you save the Study_ID in p_web.SSV('Study_Id', Study_ID) then you can add the net talk (<NetWebServerWorker p_web>) in Prototype and Parameters for your report. Then, in your report, in Init, Enter procedure setup embed or just after that one, thisStudyID = p_web.GSV('Study_Id'). thisStudyID is a local variable in your Report and it becomes the filter for the report. You can use the Report part only with maybe the method Alberto suggested. However, I find that it is easier to make a MemForm for specific things.
Ron
In the Form there is a Routine - Post Insert - which I use occasionally to do some secondary work. Maybe call a MemoryForm with the Print button. If you save the Study_ID in p_web.SSV('Study_Id', Study_ID) then you can add the net talk (<NetWebServerWorker p_web>) in Prototype and Parameters for your report. Then, in your report, in Init, Enter procedure setup embed or just after that one, thisStudyID = p_web.GSV('Study_Id'). thisStudyID is a local variable in your Report and it becomes the filter for the report. You can use the Report part only with maybe the method Alberto suggested. However, I find that it is easier to make a MemForm for specific things.
Ron