Domino Designer: Create view based on profile values - view

In a Notes Application I have a (global) profile form (only one instance).
In this document there is a field containing different newsletters stored as a single string separated by commas.
On the other hand I have a form for customers.
Each customer can be nominated for some of these newsletters by a dialog list.
The code behind the choices:
#Explode(#GetProfileField( "Profile_form";"newsletter");",")
I want to build a view where each o´f the newsletters is a category containing the nominated customers.
I have actually no idea, how to do that. I'm quite new to Domino programming.
I tried to show the structure as follows:
---------- **Profile_form** --------------
(...)
newsletter = "Hardware, Software"
(...)
-------------------------------------------
(Only one instance!)
---------- **Customer_form** --------------------
name = John
lastname = Smith
company = Example Corporation
newsletter_nomination = [Hardware; Software]
-----------------------------------------------------
(one instance for each customer)
---------- **Newsletter_view** --------------------
Hardware
+---- John Smith Example Corporation
+---- Lucy Potter Another Corporation
Software
+---- John Smith Example Corporation
(...)
----------------------------------------------------- .
First of all it would be very helpful for me if you can tell me how to list each newsletter as an entry within my view. If I simply select "newsletter" by the field option no entries appears in my view.
I hope you can help me!

#GetProfileField does not work in Views.
From Notes Designer Help for #GetProfileField:
This function does not work in column, hide-when, section editor, or
view selection formulas. You can use it in toolbar buttons or agents.
You can change the aplication to use regular Notes documents to store these information and these can be displayed in the view.
If that is too complex due to dependencies on the profiles, you can write a script which creates documents which reflect the profile documents. These could be then displayed in a view.
I am not sure if the customer profiles in your application are Notes Profile documents. If I understand you correctly, I think these should be regular documents and can be displayd in a view. If that assumption is correct you can create a view which displays the customer profiles with 4 columns:
Column 1: newsletter_nomination field of the customer form as a categorized column
Column 2: lastname (flat column)
Column 3: name (flat column)
Column 4: company (flat column)
Hope that helps.

Related

Libreoffice-base subform_sales_desc inside form_order . first form cannot enter items as number and show as names and not gst,unit etc automatically

I am creating free accounting package in libreoffice-base to compete already available ones your contribution is appreciated. the package include tables:
items
item_groups
order_details
sales_bill_desc
cash
units
companyinfo
bill sales
Customer_ledger
etc.
and created two forms
first to enter items in items table with following fields:
id
List item
particulars
units from units table linked with id gst chooses from
tax table related as id basic price basic stock, barcode, group,
subgroup,
second form is sales bill entry form
it contains a form which relates to order_details table selects customers name from ledger where its state code is also defined e.g. for punjab its 03 basically it is picked from customer's GSTIN number
a subform which is connected to sales_bill_desc table related to order_details table with bill number in both tables.
now in subform when we enter one item, its name is displayed which is same entered in sales_desc table additionally it also need automatically display item units, gst, price(editable field but basic price must be displayed there).but it does not. how to do that i have studied books but am lacking i created same in access 2016 somewhere which worked fine (full working package accounts with inventory).At this time,I am trying to use same database but advanced with features such as barcode. Of course the issue is to be resolved if someone can help. I am loading code of the package.Please rectify and update.

Google sheets: transpose data

I'm trying to solve an issue in google sheets concerning the transpose function.
Now for the sake of the problem, imagine I have 4 sheets: 1. Tracing: where there is a dropdown list of customer and invoice number 2. Invoice database: where all data regarding invoices are stored. 3. Validation list for the dropdownlist for the invoice number as in Sheet 1: Tracing. The 4th sheet is basically a data sheet to select the customer.
I would like to have in sheet 3. Validation list: 1. A transposed list of all invoices regarding the specific customer. So, based on the specific choice of customer, one should be able to only select invoices from the specific customer
Beneath some links to pictures of the example sheet:
Tracing tab: The overview of the tracing tab
Invoice database: The overview of the invoice database
Validation list: The overview of the validation list
What I have tried in the validation list: =IF(A3=Tracing!A2,transpose(offset('Invoice Database'!B3:B,,match(A3,'Invoice Database'!E$2:E$8,0)-1)),"")
Currently, this formula displays all invoices of all company, I would like the formula to return only invoices that are for the respective company.
This formula would work perfectly if all the customers in the invoice database have their own section. But, what I would not want to do in the invoice database is to split each customer into its own section containing the different headers.
Preferably, I would not want to work with =QUERY function. But if no other choice I will accept using the =QUERY function.
Could anyone offer me some insight?
See example sheet here: https://docs.google.com/spreadsheets/d/1Oe6OBumGhioK2-AesD7hnh6xyfhq16qyA_2BBwO47ts/edit?usp=sharing
See screenshot of how desired output should look like here:
Screenshot of desired output
EDIT1: Added an example sheet
EDIT2: Added a screenshot
On your 'Validation list' tab, cell B27, try this to only bring back invoice numbers related to one company (contents of A3 below):
=transpose(filter('Invoice Database'!A:A,'Invoice Database'!E:E=A3))

Make names not selected, anonymous

Please help, I am building a power bi report, where I have to reference a table I created for a different name for a Supplier.
E.g. if on Supplier slicer I select supplier A, then all other suppliers shown on that table should change automatically
The View I want
In reality the data would look like
But there would be a slicer where I select the supplier name who I am presenting to, but dont want them to view competitor names , only competitor results, without having to make these changes manually in excel.
THANK YOU GUYS

APEX_ITEM displays only one row

I have created a form region "Form on a SQL query" with this query
SELECT
APEX_ITEM.TEXT(1,TEAM_MEMBER) TEAM_MEMBER,
APEX_ITEM.TEXT(2,HOURS) HOURS
FROM APEX_TEAM_MASTER
WHERE TEAM_DATE = :P2_TEAM_DATE
AND UPPER(TEAM_LEAD) = UPPER(:P2_TEAM_LEAD)
ORDER BY 1
TEAM_MEMBER and HOURS are the exact columns in the APEX_TEAM_MASTER table
The :P2_TEAM_DATE and :P2_TEAM_LEAD are select lists. When i run the page and select values in the lists, the form displays just one row of text boxes.
The purpose of this page is, a manager can login to this application, select a date and a team lead under him, which lists the members under the lead. He can then record the hours each team member worked for the day. There are multiple team leads under each manager and different number of team members under each team lead. So the form has to be dynamic.
What you described looks more like an Interactive Grid (IG) (or former Tabular Form). There's no need for you to reinvent that functionality, so - switch to the IG and let Apex take care about everything else.

Report Region based on POP-LOV in Oracle APEX

Hi to all respected gurus.
I have a POP-UP LOV in Oracle APEX Form. I want to have a report region to retrieve data from another table, against selected value in POP-UP LOV.
Please guide me, how to do it?
Information Related to Form
"JO Number" is the POP-UP LOV based on table CPS_JO contains information Job Order Description and Vendor Name. I want to retrieve Job Order Description and Vendor Name against selected JO Number.
Thanks in Advance.
Regards
Muhammad Uzair Awan
Item names cannot contain spaces, so I will assume your pop up LOV is called JO_NUMBER.
You can refer to the selected value in JO_NUMBER by using :JO_NUMBER in your SQL. So the region source for the report would look something like this:
SELECT * FROM ANOTHER_TABLE WHERE COLUMN_NAME = :JO_NUMBER
I advise going through the 2 day developer guide as Tom suggested above.

Resources