Group by Grouping sets in obiee11g query
Hi Experts
I have few unbalanced heirarchies in the rpd. I have created level beased heirarchy for those ragged and skipped hierarchy but while generating the report using those hierarchy generates a huge SQL involving 20-30 UNION ALLs . Instead it should have generated comparatively smaller query using Group by Grouping Sets but it is not.
I have also tried enabling this parameter in DB properties in OBIEE11g ( changed the default DB from 9i to 11g in obiapps 7.9.6.3 rpd) but still no use .
As a result of huge query geenration the performance is badly impacted.
Any thought on this pls.
I have run into the same problem. Any hints about what might be the reason or, even better, how to address it, will be more than welcome.
thanks in advance
Similar Messages
-
Hi,
Is there a way to read group members of site owner group via SharePoint hosted app . The "Who can view the membership of the group? " is set to Group members only. As per my research SCA can only view the group members of site owner group
if this settings is applied.
Thanks,
Sudhir
Sudhir rawatSee this.
Avoid changing the MaxPageSize LDAP query policy
http://jeftek.com/219/avoid-changing-the-maxpagesize-ldap-query-policy/
Regards~Biswajit
Disclaimer: This posting is provided & with no warranties or guarantees and confers no rights.
MCP 2003,MCSA 2003, MCSA:M 2003, CCNA, MCTS, Enterprise Admin
MY BLOG
Domain Controllers inventory-Quest Powershell
Generate Report for Bulk Servers-LastBootUpTime,SerialNumber,InstallDate
Generate a Report for installed Hotfix for Bulk Servers -
Hello everybody,
I have this query
SELECT ALL
M_PAGAMENTO||' '||D_TIPO MPAGA,
grouping(F.KIND_F),
DECODE (grouping(F.KIND_F), 0 , 'Totali IVA',F.KIND_F) a1,
case
when grouping(F.KIND_F) = 1 then F.KIND_F
when grouping(F.KIND_F) = 0 then 'Totali IVA'
end TIPOF,
F.KIND_F TIPOF,
COUNT(*) NFATTURE,
sum(F.TOT_FT) TFATTURA, sum(F.BOLLO) TBOLLO,
K_IVA, SUM(FA.IPBFA) TIMP, SUM(FA.IPSFA) TIPS
FROM A_FATTURE F,A_PAZIENTI A,TIPOLOGIA_PAGAMENTI p ,A_FATTURE_ALIQUOTE FA
where (F.TIPORD = A.TIPORD AND F.K_CODE = A.K_CODE AND F.ANNO = A.ANNO)
AND (FA.TIPORD = F.TIPORD AND FA.K_CODE = F.K_CODE AND FA.ANNO = F.ANNO AND FA.N_FATT_D = F.N_FATT_D)
and p.ID_TIPO = f.M_PAGAMENTO
&MYWHERE
GROUP BY grouping sets (M_PAGAMENTO||' '||D_TIPO,F.KIND_F),K_IVA
ORDER by 1
Why I get this result(A1, tipof) = NULL but they would be = 'D' (F.KIND_F ='D'
MPAGA GROUPING(F.KIND_F) A1 TIPOF TIPOF NFATTURE TFATTURA TBOLL K_IVA TIMP TIPS
01 Contante 1 5 3183,24 7,24 20 250 50
01 Contante 1 3 2342,43 5,43 FC 5,43 0
01 Contante 1 50 7024,61 9,91 ES 24458,91 0
02 Assegno 1 1 780,81 1,81 FC 1,81 0
02 Assegno 1 2 816,96 1,81 ES 755,15 0
02 Assegno 1 1 780,81 1,81 20 50 10
04 Carta di credito 1 1 780,81 1,81 FC 1,81 0
04 Carta di credito 1 1 780,81 1,81 20 50 10
04 Carta di credito 1 1 780,81 1,81 ES 719 0
0 Totali IVA Totali IVA D 53 8622,37 23,53 ES 25933,06 0
0 Totali IVA Totali IVA D 5 3904,05 9,05 FC 9,05 0
0 Totali IVA Totali IVA D 7 4744,86 10,86 20 350 70where I am wrong?
thanks for any helpRosario,
Those rows where grouping(f.kind_f) = 1 are superaggregate rows where you are grouping by M_PAGAMENTO||' '||D_TIPO,K_IVA. So f.kind_f doesn't come into play for these rows, and it shows a null value.
You can of course hard code a 'D' value in there, but values of the f.kind_f column are always null at this grouping level.
See this example:
SQL> select deptno
2 , job
3 , extract(year from hiredate)
4 , sum(sal)
5 , grouping(job)
6 from emp
7 group by deptno
8 , grouping sets (job,extract(year from hiredate))
9 /
DEPTNO JOB EXTRACT(YEARFROMHIREDATE) SUM(SAL) GROUPING(JOB)
10 CLERK 1300 0
10 MANAGER 2450 0
10 PRESIDENT 5000 0
20 CLERK 1900 0
20 ANALYST 6000 0
20 MANAGER 2975 0
30 CLERK 950 0
30 MANAGER 2850 0
30 SALESMAN 5600 0
10 1981 7450 1
10 1982 1300 1
20 1980 800 1
20 1981 5975 1
20 1982 3000 1
20 1983 1100 1
30 1981 9400 1
16 rijen zijn geselecteerd.
SQL> select deptno
2 , job
3 , extract(year from hiredate)
4 , sum(sal)
5 , grouping(job)
6 , decode(grouping(job),1,job)
7 from emp
8 group by deptno
9 , grouping sets (job,extract(year from hiredate))
10 /
DEPTNO JOB EXTRACT(YEARFROMHIREDATE) SUM(SAL) GROUPING(JOB) DECODE(GR
10 CLERK 1300 0
10 MANAGER 2450 0
10 PRESIDENT 5000 0
20 CLERK 1900 0
20 ANALYST 6000 0
20 MANAGER 2975 0
30 CLERK 950 0
30 MANAGER 2850 0
30 SALESMAN 5600 0
10 1981 7450 1
10 1982 1300 1
20 1980 800 1
20 1981 5975 1
20 1982 3000 1
20 1983 1100 1
30 1981 9400 1
16 rijen zijn geselecteerd.Regards,
Rob. -
GROUP BY GROUPING SETS Clarification of Format
Hello.
I am trying to validate the answers to 2 questions I have listed below.
Would it be possible for someone to assist me with clarifying these 2 questions and answer statements? Please clarify the portion of the answer that is in
Bold Text and Italicized. Why is one answer enclosed in brackets and the other not?
Basically I need to figure out how to determine the syntax of these parenthesis and why they differ from each question. Is it a format issue or is it based on how the question is asked.
Question #1-
You are a developer for a Microsoft SQL Server 2008 R2 database instance used to support a customer service application.
You create tables named complaint, customer, and product as follows:
CREATE TABLE [dbo].[complaint] ([ComplaintID] [int], [ProductID] [int], [CustomerID] [int], [ComplaintDate] [datetime]);
CREATE TABLE [dbo].[customer] ([CustomerID] [int], [CustomerName] [varchar](100), [Address] [varchar](200), [City] [varchar](100), [State] [varchar](50), [ZipCode] [varchar](5));
CREATE TABLE [dbo].[product] ([ProductID] [int], [ProductName] [varchar](100), [SalePrice] [money], [ManufacturerName] [varchar](100));
You need to write a query to sum the sales made to each customer who has made a complaint by the following entries:
·Each customer name
·Each product name
·The grand total of all sales
Which SQL query should you use?
SELECT c.CustomerName, p.ProductName, SUM(p.SalePrice) AS Sales
FROM product p
INNER JOIN complaint com ON p.ProductID = com.ProductID
INNER JOIN customer c ON com.CustomerID = c.CustomerID
GROUP BY GROUPING SETS ((c.CustomerName), (p.ProductName), ());
Question #2 -
You are a developer for a Microsoft SQL Server 2008 R2 database instance.
You create tables named order, customer, and product as follows:
CREATE TABLE [dbo].[order] ([OrderID] [int], [ProductID] [int], [CustomerID] [int],[OrderDate] [datetime]);
CREATE TABLE [dbo].[customer] ([CustomerID] [int], [CustomerName] [varchar](100),[Address] [varchar](200), [City] [varchar](100), [State] [varchar](50),
[ZipCode] [varchar](5));
CREATE TABLE [dbo].[product] ([ProductID] [int], [ProductName] [varchar](100), [SalePrice] [money], [ManufacturerName] [varchar](100));
You need to write a query to sum the sales made to each customer by the following entries:
·The Customer name and product name
·The grand total of all sales
Which SQL query should you use?
SELECT c.CustomerName,p.ProductName,SUM(p.SalePrice) AS Sales
FROM product p
INNER JOIN [order] o ON p.ProductID = o.ProductID
INNER JOIN customer c ON o.CustomerID = CustomerID
GROUP BY GROUPING SETS ((c.CustomerName, p.ProductName), ());
Your help would be highly appreciated. :)
ThanksIts just to identify the GROUPING SET.When you enclose, the grouping would take for the combination.
Ok, it would be better to see with an example as below:
create table T1 (Col1 Varchar(100),Col2 int,Col3 int)
Insert into T1 Select 'SQL',10,100
Insert into T1 Select 'SQL',11,100
Insert into T1 Select 'Oracle',20,500
SELECT p.col1,p.col2,SUM(p.col3) AS Sales
FROM T1 p
GROUP BY GROUPING SETS ((p.Col1,p.Col2), ());/*Oracle 20 500
SQL 10 100
SQL 11 100
NULL NULL 700*/
SELECT p.col1,p.col2,SUM(p.col3) AS Sales
FROM T1 p
GROUP BY GROUPING SETS ((p.Col1),(p.Col2), ());
/*NULL 10 100
NULL 11 100
NULL 20 500
NULL NULL 700
Oracle NULL 500
SQL NULL 200*/
Drop table T1 -
GROUP BY GROUPING SETS for a selected month and for year to date
Below is a code example to demonstrate this question:
declare @test table (ID int, Quantity int, Day date);
insert into @test values
(4, 500, '1/18/2014'),
(4, 550, '1/28/2014'),
(7, 600, '1/10/2014'),
(7, 750, '1/11/2014'),
(7, 800, '1/20/2014'),
(1, 100, '1/2/2014'),
(1, 125, '1/10/2014'),
(8, 300, '1/7/2014'),
(9, 200, '1/17/2014'),
(9, 100, '1/22/2014'),
(4, 900, '2/18/2014'),
(4, 550, '2/28/2014'),
(7, 600, '2/10/2014'),
(7, 700, '2/11/2014'),
(7, 800, '2/20/2014'),
(1, 100, '2/2/2014'),
(1, 150, '2/10/2014'),
(8, 300, '2/7/2014'),
(9, 200, '2/17/2014'),
(9, 100, '2/22/2014'),
(4, 500, '3/18/2014'),
(4, 550, '3/28/2014'),
(7, 600, '3/10/2014'),
(7, 750, '3/11/2014'),
(7, 800, '3/20/2014'),
(1, 100, '3/2/2014'),
(1, 325, '3/10/2014'),
(8, 300, '3/7/2014'),
(9, 200, '3/17/2014'),
(9, 100, '3/22/2014'),
(4, 500, '4/18/2014'),
(4, 550, '4/28/2014'),
(7, 100, '4/10/2014'),
(7, 750, '4/11/2014'),
(7, 800, '4/20/2014'),
(1, 100, '4/2/2014'),
(1, 325, '4/10/2014'),
(8, 300, '4/7/2014'),
(9, 200, '4/17/2014'),
(9, 100, '4/22/2014'),
(4, 500, '5/18/2014'),
(4, 550, '5/28/2014'),
(7, 600, '5/10/2014'),
(7, 750, '5/11/2014'),
(7, 50, '5/20/2014'),
(1, 100, '5/2/2014'),
(1, 325, '5/10/2014'),
(8, 300, '5/7/2014'),
(9, 200, '5/17/2014'),
(9, 100, '5/22/2014');
--detail
select *
from @test;
--aggregation
select
TotalQuantity = sum(Quantity),
[Month] = month(Day)
from @test
group by
grouping sets
(month(Day)),
(year(Day))
go
This is the aggregation query result:
However, the desired result is to return only two rows: one row for month 3 and the other row for year to date (in the picture above YTD is the row that appears with {null} in the Month column). Is there a way to achieve this goal by modifying the
sample code above? The requirement is to only read the data once (do not want a solution that involves a UNION which implies reading the data twice).you can add required filters in having clause. Here is the query -
select
TotalQuantity = sum(Quantity),
[Month] = month(Day)
from @test
group by
grouping sets
(month(Day)),
(year(Day))
having
month(Day) = 3 or month(Day) is null; -
Where Used for Code groups or Selected Sets
Dear all,
can any body plz tell me how can i know which code group or selected set is used in what qualitative MICs.
either any report or transaction...
thanks in advance
zeeshanHi Zeeshan,
According to my information,,,
For Code Group
In QS41/42/43/44, reach up to the second screen "Change View: Codes" Overview. And then click on the "Used in Selected Set" Or short key "CntrlShiftF3"
For Selected Set.
I think no such std sap report is available. But what you can do is use the work bench CWBQM in display mode,,,,,
- CWBQM---> select the "Current Working Area" as "Q_OPR_000000000010".
- Apply the Basic Selection or Additional Selection Criteria" and then press Cntrl+F7.
- the list of the MIC data will be available here.
Or
You have to write done a query SQVI
Or
Develop a customized report.
Regards,
Shyamal -
ORA-2001:The approver group Process MFG Approvals has dynamic query in wron
ERROR ORA-2001:The approver group Process MFG Approvals has dynamic query in
wrong format in 11i
We are setting up the Approver Group 'Process MFG
Approvals" using a dynamic query, like:
SELECT PAPF.EMPLOYEE_NUMBER
FROM PER_ALL_PEOPLE_F PAPF,
fnd_lookup_values FLV
WHERE FLV.MEANING=PAPF.EMPLOYEE_NUMBER
AND lookup_type='SUG_SAMPLE_NOTIFICATION'
AND SYSDATE BETWEEN papf.effective_start_date AND papf.effective_end_date
AND FLV.LOOKUP_CODE= (SELECT GME.PLANT_CODE FROM GME_BATCH_HEADER GME WHERE
GME.BATCH_ID=:transactionId)
- Above query is passing the validation action from within the setup screen.
- However, when this approver group is being invoked via Sample Creation
workflow, there is following error raised:
ORA-20001:The approver group Process MFG Approvals has dynamic query in
wrong format
More, if user is trying to use a more simple query like:
select distinct person_id from PER_ALL_PEOPLE_F where full_name = 'Mr.
Oliverking G' we are getting same error
Any idea, plse, would be gretaly apprciated.
txs
PeterHi,
You need to prefix the value with a text string which indicates what kind of value you are returning.
E.g. if you are returning a user ID, prefix the value with 'user_id:'; if you are returning a person ID, then prefix it with 'person_id:'
There is an article on my blog about creating a dynamic approval group in AME as part 5 in the series on AME: http://www.workflowfaq.com/ame-part-five-defining-a-dynamic-approval-group
HTH,
Matt
WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
Have you read the blog at http://www.workflowfaq.com/blog ?
WorkflowFAQ support forum: http://forum.workflowfaq.com -
Average getting calculated incorrectly using group by grouping sets
Hi All
I am using the group by grouping sets to calulate the running totals of aggregate functions like count, sum & avg.
I get the grand totals of count & sum perfectly right but with avg i am getting the averages incorrectly as the number of rows retrieved by the select query increases.
With few rows (3-4) the averages are round about correct but when the number of rows retreived increase say 5 or more than 5 I get absurd average figures
Here is the query I am using
<code>
select AGENT.NAME,
sum(decode(ACTIVITY.status,'New',1)) cnt,
sum(decode(ACTIVITY.status,'Open',1)) sumopen ,
round(avg( decode (ACTIVITY.status,'Open',ACTIVITY.STATUS_DIFF)),0) avgopen,
sum(decode(ACTIVITY.status,'Sent',1)) sumsent,
round(avg( decode (ACTIVITY.status,'Sent',ACTIVITY.STATUS_DIFF)),0) avgsent,
sum(decode(ACTIVITY.status,'Dead',1)) sumdead,
round(avg( decode (ACTIVITY.status,'Dead',ACTIVITY.STATUS_DIFF)),0) avgdead
from ACTIVITY, REQUEST , AGENT
where
REQUEST.DEALER_NUMBER = AGENT.DEALER_ID
and REQUEST.CONFIRMATION='Y'
and REQUEST.REQUEST_ID = ACTIVITY.REQUEST_ID
and REQUEST.REQUEST_TYPE='B'
and ACTIVITY.ACTIVITY_DATE between to_date('2006-01-01 ','YYYY-MM-DD') and to_date('2006-08-31','YYYY-MM-DD')
group by grouping sets((AGENT.DEALER_ID,AGENT.NAME), ())
</code>
Do let me know your suggestions
RegardsNot sure but may be
See below query
SQL> SELECT deptno,ROUND(AVG(sal))
2 FROM emp
3 GROUP BY ROLLUP(deptno,sal+rownum);
DEPTNO ROUND(AVG(SAL))
10 1300
2450
5000
"2917" ---Sub total
20 800
1100
2975
3000
3000
"2175" ---Sub total
30 950
1250
1250
1500
1600
2850
"1567" ---Sub total
"2073" ----Grand total
18 rows selected.
Now you want
SQL> SELECT (2917+2175+1567)/3 FROM dual;
(2917+2175+1567)/3
2219.66667
While it is
SQL> SELECT ROUND(SUM(sal)/COUNT(*)) FROM emp;
ROUND(SUM(SAL)/COUNT(*))
2073Khurram -
Issue when 2 consolidation group hierarchies used in one single query
Dear experts,
I have an issue.
I need to build a query where we compare our forecast data (figures for year end 12.2009) to our plan 2010 data.
The problem is that we changed (in our consolidation system SEM BCS) our consolidation group hierarchy for next year only , (for the plan : the change has been done from march 2010 on the version P1 used for the plan)
Ex :
In forecast the structure is as below :
We have a zone France/Spain/Portugal that includes :
1. the business unit France 1 and the business unit includes the french company AFrench company Bfrench company C
2. the business unit France 2 with french companies D, E.
3. the business Unit Spain : with spanish company A, B C etc.
4.The business Unit Portugal : with portuguese company A, B, C etc.
Our Plan conso group hierarch is as below :
We have a zone FRANCE (France/Spain/Portugal does not exit anymore) that includes :
1. the Business unit France 1 with french Companies A, B and C
2. the BU France 2 with french companies D, E
In my query i want to compare a business unit profit and Loss Forecast Versus Plan.
If i select as a consolidation group, exemple the business unit France 1 (which no longer has the same Zone above but still exists in the hierarchy), I have the following error message :
"BW server error
Exception condition : "HIERARCHY NOT FOUND" raised."
My consolidation group characteristic is set up in both columns (forecast and Plan) with a hierarchy node variable based on the right hierarchy version and the right hierarchy key date, that is why i am now lost...
I have a doubt regarding the feasability of such query...
Many thanks in advance!!
ArmelleThanks very much for your quick answer Naveen.
Actually i saw with our technical team yesterday that we may have an issue when creating a new conso group hierarchy
SAP note 957506
This problem is caused by program error in the CL_RRHI_INCL_CREATOR_TID class.
The error can occur if a hierarchy contains new characteristic values and if additional hierarchies for the characteristic are activated simultaneously.
We may need a support package to solve this.
As you said, both hierarchies are based on the same characteristic.
I understand that we need pro forma presentation to compare our figures.
But we always ask for Business units level figures, and the BUs level did not change, only the zones level.
Anyway i am blocked for the moment, since nothing can work with this program error (even all my old queries for which the consolidation group is mandatory).
I leave my question opened and will let you know if everything worked (or not) as I had expected. -
Authorisation for MAster Group or Target Group or Profile set
Hi
How can we restrict certain users from accessing certain Master Groups or Target Groups or Profile sets?
For example we may not want employees in Europe to access target grp pr master grp of Customers in US.
How to do that?
Thanks in advance, reward points for any help.
Regards,
MonicaHi Monica,
did u find an answer for this query on Target groups
Please let me know
Thanks
Edmonds -
Issue in creation of group in oim database through sql query.
hi guys,
i am trying to create a group in oim database through sql query:
insert into ugp(ugp_key,ugp_name,ugp_create,ugp_update,ugp_createby,ugp_updateby,)values(786,'dbrole','09-jul-12','09-jul-12',1,1);
it is inserting the group in ugp table but it is not showing in admin console.
After that i also tried with this query:
insert into gpp(ugp_key,gpp_ugp_key,gpp_write,gpp_delete,gpp_create,gpp_createby,gpp_update,gpp_updateby)values(786,1,1,1,'09-jul-12',1,'09-jul-12',1);
After that i tried with this query.but still no use.
and i also tried to assign a user to the group through query:
insert into usg(ugp_key,usr_key,usg_priority,usg_create,usg_update,usg_createby,usg_updateby)values(4,81,1,'09-jul-12','09-jul-12',1,1);
But still the same problem.it is inserting in db.but not listing in admin console.
thanks,
hanuman.Hanuman Thota wrote:
hi vladimir,
i didn't find this 'ugp_seq'.is this a table or column?where is it?
It is a sequence.
See here for details on oracle sequences:
http://www.techonthenet.com/oracle/sequences.php
Most of the OIM database schema is created with the following script, located in the RCU distribution:
$RCU_HOME/rcu/integration/oim/sql/xell.sql
there you'll find plenty of sequence creation directives like:
create sequence UGP_SEQ
increment by 1
start with 1
cache 20
to create a sequence, and
INSERT INTO UGP (UGP_KEY, UGP_NAME, UGP_UPDATEBY, UGP_UPDATE, UGP_CREATEBY, UGP_CREATE,UGP_ROWVER, UGP_DATA_LEVEL, UGP_ROLE_CATEGORY_KEY, UGP_ROLE_OWNER_KEY, UGP_DISPLAY_NAME, UGP_ROLENAME, UGP_DESCRIPTION, UGP_NAMESPACE)
VALUES (ugp_seq.nextval,'SYSTEM ADMINISTRATORS', sysadmUsrKey , SYSDATE,sysadmUsrKey , SYSDATE, hextoraw('0000000000000000'), 1, roleCategoryKey, sysadmUsrKey, 'SYSTEM ADMINISTRATORS', 'SYSTEM ADMINISTRATORS', 'System Administrator role for OIM', 'Default');
as a sequence usage example.
Regards,
Vladimir -
Fast refersh materialized view having group by in it's select query
Hi,
Can any one please tell me from which version of Oracle we can create a fast refresh materialized materialized view having group by in it's select query.
Regards,
Koushiki dont know from which version this feature is started but I know that
in 9i it works and we implemented for DWH projects -
Changing from "Pass Through" as Default in Blend Mode in a Group Folder Layer Set
Hello Forum gurus!
Using a MacBook Pro, 10.5.4. Painting with CS2. My question is two-fold.
When the Group layer folder in a layer set is selected, it is displaying the "Pass Through" blend mode by default. Is there a special convenience to this? (Best use for pass through blend mode)
Also, How may I change the default in this mode to be "Normal" as the setting when creating a Group folder layer set?
Thanks!!
ColeneMatthias, now I understand. We're both right from different perspectives. If you want the adjustment layer (should there be one within the group) to affect all layers below the group (perhaps because that's the way the image looked before you made the group in the first place), then Pass Through is your blend mode. If you want that adjustment layer to affect only those layers within the group (which I often do), then Normal (or some other) is your blend mode.
-
Code groups, codes & selected sets during UD
Dear Friends,
Can I create my own catalog types.
I have created my own catalog types.
1) For Usage Decision (R)
2) For Defets recording (P)
During defect recording the system is picking the code groups & codes created by me and which are assigned . It is not showing other ones.
But during Usage decision it is picking all the code groups, codes & selected sets attached to standard UD catalog "3".
I am unable to understand how the system is behaving like this.
I have created my own notification type Y1. I have created my Catalog profile (YQM000001).
I have assigned this profile to inspection type.
I have assigned this notification type to inspection type.
In the catalog profile YQM000001, I have assigned two catalogs (R & P).
In catalogs & catalog profile for notification type, problems field assigned the catalog type "P".
One more issue while recording the defects I am getting notification type as Y1 (created by me) but the catalog profile is showing standard one "QM0000001".
I am unable to understand these all. Do anybody has got any solution.Dear Anuradha,
There is no need to create separate catalog type for your problem of displaying specific UD codes while giving user decision. You can assign the specific 'UD selected set' from catalog type 3 ( User decision) in SPRO ' Maintain inspection type' for QM. Following is the path you can assign the desired UD option you need to see while recording UD:
SPRO >> Quality Management >> Quality Inspection >> Inspection lot creation >> Maintain inspection types >>execute >> select the inspection type say '01' and view details >> there will be field UD selected set, assign the specific selected set made for your plant and save.
By doing this when you go for giving any UD, codes defined by you only will be displayed (not all).
Didn't understand your issue related to notification, but in same above screen you can also assign notification type for particular insp. type.
Looking at your requirement there is no need to create separate insp type or notification type just make proper use of existing one and do proper assignment.
Please let me know if you have any problem in resolving this.
Best Regards,
Shekhar -
# of tab canvases dependant on the # of groups that come back from a query
Hi,
I'm trying to create a dynamic creation of blocks, and tab canvases dependant on the number of groups that come back from a query. If 4 groups come back then I desire 4 tabs with the appropriate data in each tab.Basically Forms is not intended to build screens programmatically but it is possible to kluj it. Here's what you could do.
Create a form with (say) four tabbed canvases, enough to fill the display. Each canvas has its own block. Then you have video style buttons - Fwd, Bk, FFwd FBk - and just scroll the blocks across when the user clicks the button.
Did you enjoy the use of the word "just"? Sounds easy, doesn't it? In practice, what you need is an array that ties the filter criteria to the canvas number. Then you shuffle the canvases by applying the appropriate WHERE clause using SET_BLOCK_PROPERTY and then executing a query.
The problems with this are obvious and the same as any dynamically generated UI. It will perform badly (each navigation to a canvas will trigger a fresh query, plus there's the overhead of managing the stack). Also it is fragile: there's lots that can go wrong.
So you need to ask yourself what it is you are hoping to achieve. Can you deliver the same business function some other way? As another poster has pointed out, this is just a glorified master-detail form - the filter criterion being the master. Building this as a classic two block master-detail Form is more straightforward and more robust.
Regards, APC
Maybe you are looking for
-
How to use a native library (.so) in EJB
Hi, I know how to package a native library into a connector in iAS. But I don't quite know how to use it. Suppose I provide a wrapper java class for the native library, can I use the java class directly in my EJB (since the classloader of the RA is t
-
So, I'm trying to code this flash cards program, and it's not working. The problem is that, when I change the text of the JTextPane to have multiple lines, the text disappears, and my JTextPane acts like it's empty. I included my SSCCE as a compariso
-
I would like to know about technical details of new ThinkPads T430u and X1 hybrid.
I am interested in T430u and X1 hybrid. I would like to know the difference of both product. If I looking for the thin, light, durable, high-performance, and long-life battery laptop, which one should be suitable for me?
-
JDBC API ( JSR 169 ) Implementation for accessing oracle lite database
We are developing an application using IBM J9 (CDC and Foundation Profile) on Pocket PC 2003 environment with SWT as the front end development. We are using Oracle Lite 9i as the Client database. We have sucessfully installed Oracle Lite and was able
-
Hi! I'm using PostgreSQL as the DB and set for PK an attribute named ID that's of type serial. It's auto-incremented when the row is go to be inserted. I've read in other posts like this one -> Primary key during Insert to set type to DBSequence, but