Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Pizza Tutorial missing in video

Questions related to using nuBuilder Forte.
apmuthu
Posts: 249
Joined: Sun Dec 06, 2020 6:50 am
Location: Chennai, India, Singapore

Pizza Tutorial missing in video

Unread post by apmuthu »

Ref: Pizza Video Tutorial 3
https://www.youtube.com/watch?v=40aWH3Gqn28

After setting up the invoice table's fast form, the part where the Customer is looked up is missing.

Even after manually doing all the steps, I see that the customer_id is being displayed and something is amiss in the invoice form as well where the lookedup value is shown in the right and the customer-id is being displayed!
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Pizza Tutorial missing in video

Unread post by kev1n »

apmuthu
Posts: 249
Joined: Sun Dec 06, 2020 6:50 am
Location: Chennai, India, Singapore

Re: Pizza Tutorial missing in video

Unread post by apmuthu »

Yes.

There seem to be several sets of objects pertaining to invoice and item in the objects table.
Also the date on the invoice data is set to the year 1919 instead of 2019.

Actually, just the data pertaining to the tutorial should have been there for non cluttered understanding.
You do not have the required permissions to view the files attached to this post.
apmuthu
Posts: 249
Joined: Sun Dec 06, 2020 6:50 am
Location: Chennai, India, Singapore

Re: Pizza Tutorial missing in video

Unread post by apmuthu »

Had to alter it to cus_name (both Code and Description) after making and SQL in the SQL Builder for the inv_customer_id field as:

Code: Select all

SELECT
    invoice.inv_date,
    invoice.inv_number,
    invoice.inv_grand_total,
    customer.cus_name

FROM
    invoice
        JOIN customer ON customer.customer_id = invoice.inv_customer_id
If the Code and Description are the same in any Lookup definition, then the right side display of the Description should be suppressed in the nubuilder4 code itself instead of needing any js code. What is the standard js code in such a case in the meanwhile to suppress the Description display in the form?
You do not have the required permissions to view the files attached to this post.
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Pizza Tutorial missing in video

Unread post by admin »

Hi,

Give this a go:

Code: Select all

nuHide('inv_customer_iddescription');
Could you log an issue on Github (as improvement)? Thanks a lot!
apmuthu
Posts: 249
Joined: Sun Dec 06, 2020 6:50 am
Location: Chennai, India, Singapore

Re: Pizza Tutorial missing in video

Unread post by apmuthu »

Whilst this does work in the AfterBrowse js code, the fact remains that the Description still shows up when a record is taken in for edit and the form is displayed anew.

Is there any documentation as to how each field is referred to in the js code?
apmuthu
Posts: 249
Joined: Sun Dec 06, 2020 6:50 am
Location: Chennai, India, Singapore

Re: Pizza Tutorial missing in video

Unread post by apmuthu »

@kev1n: Thanks.
The custom code did it.

Code: Select all

if (nuFormType() == 'edit') {
    nuHide('inv_customer_iddescription');
}
You do not have the required permissions to view the files attached to this post.
steven
Posts: 370
Joined: Mon Jun 15, 2009 10:03 am
Has thanked: 53 times
Been thanked: 52 times

Re: Pizza Tutorial missing in video

Unread post by steven »

apmuthu,

You can hide the Description by setting its length to 0.


Steven
A short post is a good post.
apmuthu
Posts: 249
Joined: Sun Dec 06, 2020 6:50 am
Location: Chennai, India, Singapore

Re: Pizza Tutorial missing in video

Unread post by apmuthu »

@steven: Thanks. An example js / php code snippet and screenshot would be useful.

@kev1n: Thanks for indicating the browser console to identify the field name like inv_customer_iddescription
You do not have the required permissions to view the files attached to this post.
steven
Posts: 370
Joined: Mon Jun 15, 2009 10:03 am
Has thanked: 53 times
Been thanked: 52 times

Re: Pizza Tutorial missing in video

Unread post by steven »

apmuthu,

Setting Width to 0 will hide the Description field.
descw.png

Steven
You do not have the required permissions to view the files attached to this post.
A short post is a good post.
Post Reply