Customizing the Table of related products
Working with a sensitive layout, I have a problem with the table of related products using the {tag_relatedproducts}. I got the layout of small product to respond well, but not when it appears in the productTable productItem table of the elements. Tips for each productItem stack, with every other compensation?
Thanks in advance!
Never mind. I simply applied the following CSS
TR .productItem {}
Width: 100%;
height: auto;
Clear: both;
display: block;
}
Tags: Business Catalyst
Similar Questions
-
InDesign CS5 - customizing the table of contents
Hello
I have a book of 200 pages that uses x 3 table of contents for different purposes. All the works that I expect.
However, one of my OCD contains a list of advertisers that lists the name of the advertiser and is the relative page number.
Apart from the text main pages are ads that appear on the IFC, the IBC and the OBC in the book.
I have the cover pages set up as OBC/column spinal/OFC and IFC/column spinal/IBC with personalized and prefixes section page sizes.
Is there any way to prevent the table of contents to generate number page after prefix in these cases, I guess that the pages are auto numbered to the table of contents feature?
Announcer 1... IBC6
Advertiser 2... .. OBC1
Advertiser 3... IFC4
Steve
I'm not sure I understand what you're asking, but I think you are saying that you want the section prefix, but not page numbers, for ads. As far as I know, you cannot automate the removal of the numbers, but there is nothing prevents you to change the table of contents to remove them manually (or with find/replace using GREP) after the table of contents was generated.
-
Hello.
I use the two screws 'ImageToArray' (ITA) and 'ArrayToImage' (ATI) to image processing and I have noticed something strange I want to share with you.
I am acquiring data from a GiGe camera 16bits. If I wire the output image from the camera to the ITA VI, and then I wire the output of ITA directly at the entrance of ATI, I can't return the image!
Look at the files that I have attached. Image2 should simply display the same image as Image1, shouldn't it...? But it doesn't!
I missed something, maybe...?
Is anyone have an explanation/solution?
(If it could be of some importance, please note that the dynamic camera is 12 bits. But I don't think that changes anything if it was 16-bit "full"...)
For your information, if I try to do exactly the same with the 8 bits of data, then it works perfectly fine. When the camera returns only if 16-bit data there is a pb.
Best regards.
Luke
I think that your camera deliver I16 image, but you use U16 - so the matrix is empty and you don't see anything.
Try instead to use I16:
(and check your image types and control outputs error)
Andrey.
-
How to maintain the synchronization of the hierarchy of the table with customer-specific data
Series of paintings in our system, we have:
Promotions (id, descr, datefrom, dateto,...)
PromotionClients (promotionId, clientId) = list of clients whose promotion is valid
PromotionProducts (promotionId, itemId) = list of products on sale
The synchronization logic is simply that all promotion tables must be synchronized just to the customers present in the PromotionClients table. So each select element for these tables of publication contains something like "... and there are (select 1 from c PromotionClients where c.clientId =: CLIENTID). It works fine until there are some changes in the PromotionClients table. After the change of PromotionClients table starts to sync, but other tables do not - there is in fact no updates on their respective folders.
Is there a solution to this problem other than to manually create the triggers for the PromotionClients table that would execute model-update on each related table? I mean - is there an existing function in OracleLite that woud let set a few references - to load to a point of publication/table?
And in the face of similar problem - there is also Promotions.datefrom/dateto limitation. Promotion tables must be synchronized at the time where actual date is between Promotions.datefrom and dateto. When someone modifies some of these values and so the promotion valid for the time related tables does not automatically update and so they do not start to synchronize. Just the Promotions table begins to synchronize. So we might need to implement another trigger to perform updates dummy on the tables of PromotionClients + products, Promotions.datefrom/dateto update.
I do not like the personalized relaxation approach - it just duplicates the synchronization logic and it is inconvenient to maintain the synchronization logic in two places (pubitem selects + custom triggers). I would like to find a solution of OL-native - as referring to load tables for each publication element that would cause triggers to OL to also catch the person in charge of the lines of tables (which were not actually modified) to be marked as dirty and synchronized to the client. Is there a solution like this? Or is there an alternative better than custom triggers?When you trigger an event in a related table, it gets registered for PGM compose the data in this table. If there is a suspicion, MGP will compose the data in these tables as well.
So if you have something like a REGION_MAPPING table that maps the users in various locations and if you change the table data and want other tables that are joined with him to compose the data, and then add a hint of dependency to the tables mapping them to REGION_MAPPING. If these tables is regularly updated and data are being composed for the child tables, then you don't need the trick, just good practice to add it.
-
Is there a liquid tag for related products?
It doesn't seem to be liquid tag for related products. I am now using {tag_relatedproducts}.
I would use {{relatedproducts}} because I would use Reiunnaitre = "true" to get rid of the default table.
Am I missing something or is there no liquid tags for related products? It would be useful to have a.
If she is not there, is there another way to use a list instead of a table for related products?
Thank you.
That's what said Liam...
For related products as a liquid, use a collection on your {tag_relatedproducts}:
{tag_relatedproducts, 4, true model = "" collection "relatedProducts" = "}
{% If relatedProducts.items-%}
{% for article on relatedProducts.items-%}
{{ item | json }}
{% endfor}
{endif %}NB: Please take note of the specific command model = "" before = "yourVariableName" in this case. " Trust me, you exchange these autour, in some cases, product related collection will be empty. I can't emphasize this point enough.
Hope this helps
-Stephen
-
How the comprehensibility of the tables gets reduced?
How comprehensibility of the tables gets reduced if Gets the size of the table and relational tree depth increases. How can I show that the size of the table and the depth of relatonal tree increase reduced the comprehensibility.user1151621 wrote:
How the clarity of the schema gets reduced if the size of the table and the relational tree depth increases.You started with a very vague and confusing issue. When asked for clarification, you didn't change the word 'table' to the 'schema '. The question is still vague and confused. When asked further clarification, you didn't repeat the same question.
Go back to the drawing board and rephrase the question.
We do not know what you mean by "understanding of the schema.
We do not know what you mean by 'reduction' of "understanding of the schema.
We do not know what you mean by "relational tree depth."
We do not know how the size of the table or the "relational tree depth" refers to "understanding of the schema. -
Hi, I'm developing a simple mobile app in DW CC 2015 using JQuery Mobile. LIKE I need the list view with description of the product, functionality and image, I would like to connect with database instead of "writing" all the tables in the bearings inside the Jquery page. In the future I would also be able to add, to remove the DB records. Any help, tutorial... Thanks TG
I would like to connect with the database instead of "writing" all the tables in the bearings inside the Jquery page
This is usually done with a CMS (content management system). There are commercial products CMS like WordPress, Joomla and perch. You create one or several layouts and then create pages of these page layouts using the CMS. In this way, it is possible to have hundreds of pages, each with unique content, but a page layout that can be managed in a place of sharing.
CMSs on shelf don't require programming skills. Otherwise, some of us write our own CMS with custom functions, but this requires back-end, as with PHP programming.
-
Custom template for related products?
So, this is the first time I try to customize an ecommerce solution beyond the normal stuff of the BC. Customer wants a specific view for related products, so my first thought was to use a custom template, but it doesn't seem to work.
So I almost with the help of the model of module, a decline in the amount of 1 - and hoping I can use a custom template for the display of the small product instead since I use that related products.
I forgot something? Is it possible to use a custom template for the {tag_relatedproducts}?
Thank you Joel however I have more control over the layout as a few styles of it. I ended up jumping in with the beta version of liquid to get what I need, what gave me some other customizations.
TAGS cannot take a custom template variable, I chose to store it in a tag "capture." So based on some conflicts of naming of my catalog images, I was able to target specific catalogs, then browse related products and build them up as I wanted.
Here is an example of what I chose to go with.
{capture products %} %
{tag_productlist, true true, 3,}
{% for %} endcapture
model {module_catalogue catalogId = "{{this.id"}} "=" "collection ="cat"}
{tag_name}
{% If {cat.imageUrl} contains 'show' and ({{this.id}} == {{tag_productlist_5_8.catalogId}}%}}
{tag_productlist, true true, 3,}
{% elsif {cat.imageUrl} contains "display" %}
{% for %} tag_productlist_5_8.items products
{% endfor %}
{% products.items %} elsif
{tag_cataloguelist, true true, 2,}
{% for %} tag_catalogueList_3_9.items products
{% endfor %}
{% other %}
{tag_cataloguelist, true true, 2,}
{tag_productlist, true true, 3,}
{% endif %}
-
impact of production if I reduce space on the table...
Hello experts.
I am running Oracle 11.2 and seen in OEM I have a table that is candidate to shrink the space.
According to OEM, I can gain 5 G by the decrease in the table.
The table is 16G, so if I reduce the table, then it should reduce about 11 g, right?
This table is the primary table used by our application, impact on production is very important.
Good, then I wonder what is the impact of production on the table while I shrink space on the table.
I'll test now in my test environment.
First of all, I found that I had a function based index to be deleted until I can reduce the table.
So I ran dbms_metadata for syntax to recreate the FBI, then dropped the FBI.
Then I ran change movement line of table owner.tablename enable;
Then I ran alter table shrink space cascade owner.tablename;
While I'm under the table command shrink, I opened another session and I asked the table and even made some updates on the table.
I was very surprised that the table is not locked and is always accessible for update and select statements.
In fact, I don't see any noticeable impact of the retractable table command.
Obviously, I'm not in the production environment with hundreds of simultaneous users, but my question is what kind of impact should I expect see if I have it in production with people hitting this table? (No, this isn't an IOT.)
Any ideas?
Published by: 974632 on February 19, 2013 05:54
NOTE: The command table shrink took: passed: 00:43:17.19
Re-create the function based index took: passed: 00:00:28.80No, the shrinkage is invalid index.
This means that when you use the CASCADE option, index will be narrowed as much too. When you use shrink, you use the clause 'movement of table XXXX line activate edit' which can cause invalid objects such as triggers or procedures related to the XXXX table.
Also, if you issue the following statement "alter table
enable/disable row movement;" it will invalidate any stored procedure that references that table. But, once you reference that invalid stored procedure, Oracle recompiles it
from: http://asktom.oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:35203106066718
Hi all
I would like to pass a table to a cluster on my network. My group is typedef'ed, but I would avoid to pollute my project with an another redundant typedef.
Is it possible to use the option "From Custom Control... ' of the shared variable with an array without saving the table as a new .ctl file?
Oh, I didn't know you were using shared variables. I thought that you were just considered another option with TCP/IP or UDP or something like that. In this case, you will need to create a second custom control. This control would be a table with the cluster of typedef in there. Not need to make this new control itself a typedef however. Sorry, I know you were hoping for a different answer. I doubt a single file will really be "clutter" your project well
What is the name of the table that has the name of the custom in the Oracle database Section?
What is the name of the table that has the name of the custom in the Oracle database Section?
Thank you
Nefertari
The names of the custom Sections are stored in commonExtendedAttributeML, the extended attribute table.
Single SQL query for the analysis of the date of customs declaration under the table of Stock codes
Dear all,
Please tell us a single SQL query for the below,
We have a Table of Stock as shown below,
STOCK_TABLE
ITEM_CODE
(item code)
BAT_NO
(lot no.)
TXN_CODE
(transaction code)
DOC_NO
(number)
BOE_DT
(date of the customs declaration)
I1
B1
I1
I2
I3
B70
I4
B80
I5
B90
T102
1234
JULY 2, 2015
I6
B100
We have to find the date of customs declaration (i.e. the date when the items have come under this particular table) for items that are not attached to any document (that is, who have TXN_CODE, DOC_NO and BOE_DT fields with a NULL value).
For each item in the table of actions, which is not attached to any document, the customs declaration date is calculated as follows.
- If (code section, lot number) combination is present under HISTORY_TABLE, the date of customs declaration will receive the UPDT_DT, the transaction code (TXN_CODE) is an IN or transactions (which can be analyzed from the TRANSACTIONS table).
- If (code section, lot number) combination is NOT currently at the HISTORY_TABLE (or) the transaction code respective to item - batch number combination code is an operation then customs declaration date will be the date of the document (DOC_DT) that we receive from one of the 3 tables IN_TABLE_HEAD that contains the element of that particular lot.
- If the case 1 and case 2 fails, our customs declaration date will be the last date of document (DOC_DT) that we receive from one of the 3 tables IN_TABLE_HEAD containing that particular item and the BAT_NO in expected results will be that corresponding to this document, as appropriate, to another NULL.
- If the case 1 or case 2 is successful, the value of the last field (in the output expected, shown further below) BATCH_YN will be 'Y', because it fits the lot. Otherwise it will be 'n'.
HISTORY_TABLE
ITEM_CODE
BAT_NO
TXN_CODE
DOC_NO
UPDT_DT
I1
B1
T1
1234
JANUARY 3, 2015
I1
B20
T20
4567
MARCH 3, 2015
I1
B30
T30
7890
FEBRUARY 5, 2015
I2
B40
T20
1234
JANUARY 1, 2015
TRANSACTION
TXN_CODE
TXN_TYPE
T1
IN
T20
OFF
T30
ALL THE
T50
IN
T80
IN
T90
IN
T60
ALL THE
T70
ALL THE
T40
ALL THE
IN_TABLE_HEAD_1
H1_SYS_ID
(primary key)
TXN_CODE
DOC_NO
DOC_DATE
H1ID1
T1
1234
JANUARY 1, 2015
H1ID2
T70
1234
FEBRUARY 1, 2015
IN_TABLE_ITEM_1
I1_SYS_ID
H1_SYS_ID
(foreign key referencing H1_SYS_ID in IN_TABLE_HEAD_1)
ITEM_CODE
I1ID1
H1ID1
I1
I1ID2
H1ID1
I100
I1ID3
H1ID2
I3
IN_TABLE_BATCH_1
B1_SYS_ID
TXN_CODE DOC_NO
(now in IN_TABLE_HEAD_1)
BAT_NO
B1ID1
T1
1234
B1 / can be empty
B1ID2
T70
1234
B70
IN_TABLE_HEAD_2
H2_SYS_ID
(primary key)
TXN_CODE
DOC_NO
DOC_DATE
H2ID1
T30
4567
FEBRUARY 3, 2015
H2ID2
T60
1234
JANUARY 3, 2015
IN_TABLE_ITEM_2
I2_SYS_ID
H2_SYS_ID
(foreign key referencing H2_SYS_ID in IN_TABLE_HEAD_2)
ITEM_CODE
I2ID1
H2ID1
I1
I2ID2
H2ID1
I200
I2ID3
H2ID2
I2
IN_TABLE_BATCH_2
B2_SYS_ID
I2_SYS_ID
(foreign key referencing I2_SYS_ID in IN_TABLE_ITEM_2)
BAT_NO
B2ID1
I2ID1
B30 / null
B2ID2
I2ID2
B90
B2ID2
I2ID3
B60
IN_TABLE_HEAD_3
H3_SYS_ID
(primary key)
TXN_CODE
DOC_NO
DOC_DATE
H3ID1
T50
1234
JANUARY 2, 2015
H3ID2
T80
1234
JANUARY 3, 2015
H3ID3
T90
1234
JANUARY 4, 2015
H3ID4
T40
1234
AUGUST 5, 2015
IN_TABLE_ITEM_3
I3_SYS_ID
H3_SYS_ID
(foreign key referencing H3_SYS_ID in IN_TABLE_HEAD_3)
ITEM_CODE
BAT_NO
I3ID1
H31D1
I2
B50
I3ID2
H3ID2
I4
B40
I3ID3
H3ID3
I4
I3ID4
H3ID4
I6
There is no IN_TABLE_BATCH_3
Please find below the expected results.
OUTPUT
ITEM_CODE
BAT_NO
TXN_CODE
DOC_NO
BOE_DT
BATCH_YN
I1
B1
T1
1234
JANUARY 3, 2015
THERE
I1
B30
T30
7890
FEBRUARY 5, 2015
N
I2
B60
T60
1234
JANUARY 3, 2015
N
I3
B70
T70
1234
FEBRUARY 1, 2015
THERE
I4
T90
1234
JANUARY 4, 2015
N
I6
T40
1234
AUGUST 5, 2015
N
Controls database to create the tables above and insert the records.
CREATE TABLE stock_table()item_code VARCHAR2()80),bat_no VARCHAR2()80),txn_code VARCHAR2()80),
doc_no VARCHAR2 (80), boe_dt DATE );
INSERT EN stock_table
VALUES ('I1', 'B1', '', '', '');
INSERT EN stock_table
VALUES ('I1', '', '', '', '');
INSERT IN stock_table
VALUES ('I2', '', '', '', '');
INSERT EN stock_table
VALUES ('I3', 'B70', '', '', '');
INSERT EN stock_table
VALUES ('I4', 'B80', '', '', '');
INSERT EN stock_table
VALUES ('I5', 'B90', 'T102', '1234', '02-JUL-2015');
INSERT EN stock_table
VALUES ('I6', 'B100', '', '', '');
SELECT *
FROM stock_table
CREATE TABLE history_table()item_code VARCHAR2()80),bat_no VARCHAR2()80),txn_code VARCHAR2()80),
doc_no VARCHAR2 (80), updt_dt DATE );
INSERT IN history_table
VALUES ('I1', 'B1', 'T1', '1234', '03-JAN-2015');
INSERT IN history_table
VALUES ('I1', 'B20', 'T20', '4567', '03-MAR-2015');
INSERT IN history_table
VALUES ('I1', 'B30', 'T30', '7890', '05-FEB-2015');
INSERT IN history_table
VALUES ('I2', 'B40', 'T20', '1234', '01-JAN-2015');
SELECT *
FROM history_table
CREATE TABLE transaction1()txn_code VARCHAR()80),txn_type VARCHAR()80));
INSERT INTO transaction1
VALUES ('T1', 'IN');
INSERT INTO transaction1
VALUES ('T20', 'OUT');
INSERT INTO transaction1
VALUES ('T30', 'ALL');
INSERT INTO transaction1
VALUES ('T40', 'ALL');
INSERT INTO transaction1
VALUES ('T50', 'IN');
INSERT INTO transaction1
VALUES ('T60', 'ALL');
INSERT INTO transaction1
VALUES ('T70', 'ALL');
INSERT INTO transaction1
VALUES ('T80', 'IN');
INSERT INTO transaction1
VALUES ('T90', 'IN');
SELECT *
FROM transaction1
CREATE TABLE in_table_head_1()h1_sys_id VARCHAR2()80) PRIMARY KEY,txn_code VARCHAR2()80),
doc_no VARCHAR2 (80), doc_dt DATE );
CREATE TABLE in_table_head_2()h2_sys_id VARCHAR2()80) PRIMARY KEY,txn_code VARCHAR2()80),
doc_no VARCHAR2 (80), doc_dt DATE );
CREATE TABLE in_table_head_3()h3_sys_id VARCHAR2()80) PRIMARY KEY,txn_code VARCHAR2()80),
doc_no VARCHAR2 (80), doc_dt DATE );
INSERT IN in_table_head_1
VALUES ('H1ID1', 'T1', '1234', '01-JAN-2015');
INSERT IN in_table_head_1
VALUES ('H1ID2', 'T70', '1234', '01-FEB-2015');
INSERT IN in_table_head_2
VALUES ('H2ID1', 'T30', '4567', '03-FEB-2015');
INSERT IN in_table_head_2
VALUES ('H2ID2', 'T60', '1234', '03-JAN-2015');
INSERT IN in_table_head_3
VALUES ('H3ID1', 'T50', '1234', '02-JAN-2015');
INSERT IN in_table_head_3
VALUES ('H3ID2', 'T80', '1234', '03-JAN-2015');
INSERT IN in_table_head_3
VALUES ('H3ID3', 'T90', '1234', '05-JAN-2015');
INSERT IN in_table_head_3
VALUES ('H3ID4', 'T40', '1234', '05-AUG-2015');
CREATE TABLE in_table_item_1()i1_sys_id VARCHAR2()80) PRIMARY KEY,
h1_sys_id VARCHAR2 (80) REFERENCES in_table_head_1()h1_sys_id),item_code VARCHAR2()80));
CREATE TABLE in_table_item_2()i2_sys_id VARCHAR2()80) PRIMARY KEY,
h2_sys_id VARCHAR2 (80) REFERENCES in_table_head_2()h2_sys_id),item_code VARCHAR2()80));
CREATE TABLE in_table_item_3(i3_sys_id VARCHAR2(80) PRIMARY KEY,
h3_sys_id VARCHAR2 (80) REFERENCES in_table_head_3()h3_sys_id),item_code VARCHAR2()80),
bat_no VARCHAR2 (80));
INSERT IN in_table_item_1
VALUES ('I1ID1', 'H1ID1', 'I1');
INSERT IN in_table_item_1
VALUES ('I1ID2', 'H1ID1', 'I100');
INSERT IN in_table_item_1
VALUES ('I1ID3', 'H1ID2', 'I3');
INSERT IN in_table_item_2
VALUES ('I2ID1', 'H2ID1', 'I1');
INSERT IN in_table_item_2
VALUES ('I2ID2', 'H2ID1', 'I200');
INSERT IN in_table_item_2
VALUES ('I2ID3', 'H2ID2', 'I2');
INSERT IN in_table_item_3
VALUES ('I3ID1', 'H3ID1', 'I2','B50');
INSERT IN in_table_item_3
VALUES ('I3ID2', 'H3ID2', 'I4','B40');
INSERT IN in_table_item_3
VALUES ('I3ID3', 'H3ID3', 'I4','');
INSERT IN in_table_item_3
VALUES ('I3ID4', 'H3ID4', 'I6','');
SELECT *
FROM in_table_item_1
SELECT *
FROM in_table_item_2
SELECT *
FROM in_table_item_3
CREATE TABLE in_table_batch_1()b1_sys_id VARCHAR2()80) PRIMARY KEY,
txn_code VARCHAR2 (80), doc_no VARCHAR2 (80), bat_no VARCHAR2 (80));
CREATE TABLE in_table_batch_2()b2_sys_id VARCHAR2()80) PRIMARY KEY,
i2_sys_id VARCHAR2 (80) REFERENCES in_table_item_2()i2_sys_id),bat_no VARCHAR2()80));
INSERT IN in_table_batch_1
VALUES ('B1ID1', 'T1', '1234', 'B1');
INSERT IN in_table_batch_1
VALUES ('B1ID2', 'T70', '1234', 'B70');
INSERT IN in_table_batch_2
VALUES ('B2ID1', 'I2ID1', 'B30');
INSERT IN in_table_batch_2
VALUES ('B2ID2', 'I2ID2', 'B90');
INSERT IN in_table_batch_2
VALUES ('B2ID3', 'I2ID3', 'B60');
Please advise a solution for the same.
Thank you and best regards,
Séverine Suresh
very forced (question subfactoring used to allow easy testing/verification - could work with these test data only)
with
case_1 as
(select s.item_code,
s.bat_no,
h.txn_code,
h.doc_no,
h.updt_dt boe_dt,
cases where s.bat_no = h.bat_no then 'Y' else ' n end batch_yn.
cases where h.txn_code is not null
and h.doc_no is not null
and h.updt_dt is not null
then 'case 1' '.
end refers_to
from (select item_code, bat_no, txn_code, doc_no, boe_dt
of w_stock_table
where bat_no is null
or txn_code is null
or doc_no is null
or boe_dt is null
) s
left outer join
w_history_table h
On s.item_code = h.item_code
and s.bat_no = h.bat_no
and exists (select null
of w_transaction1
where txn_code = nvl (s.txn_code, h.txn_code)
and txn_type in ('IN', 'ALL')
)
),
case_2 as
(select s.item_code,
NVL (s.bat_no, h.bat_no) bat_no.
NVL (s.txn_code, h.txn_code) txn_code.
NVL (s.doc_no, h.doc_no) doc_no.
NVL (s.boe_dt, h.updt_dt) updt_dt.
cases where s.bat_no = h.bat_no then 'Y' else ' n end batch_yn.
cases where h.txn_code is not null
and h.doc_no is not null
and h.updt_dt is not null
then 'case 2'.
end refers_to
from (select item_code, bat_no, txn_code, doc_no, boe_dt
of case_1
where refers_to is null
) s
left outer join
w_history_table h
On s.item_code = h.item_code
and exists (select null
of w_transaction1
where txn_code = nvl (s.txn_code, h.txn_code)
and txn_type in ('IN', 'ALL')
)
and not exists (select null
of case_1
where item_code = h.item_code
and bat_no = h.bat_no
and txn_code = h.txn_code
and doc_no = h.doc_no
and updt_dt = h.updt_dt
)
),
case_31 as
(select s1.item_code,
NVL (S1.bat_no, W1.bat_no) bat_no.
NVL (S1.txn_code, W1.txn_code) txn_code.
NVL (S1.doc_no, W1.doc_no) doc_no.
NVL (S1.updt_dt, W1.doc_dt) updt_dt.
cases where s1.bat_no = w1.bat_no then 'Y' else ' n end batch_yn.
cases where w1.txn_code is not null
and w1.doc_no is not null
and w1.doc_dt is not null
then "case 31'.
end refers_to
from (select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn, refers_to
of case_2
where refers_to is null
) s1
left outer join
(select i1.item_code, h1.txn_code, h1.doc_no, h1.doc_dt, b1.bat_no
of w_in_table_item_1 i1
inner join
w_in_table_head_1 h1
On i1.h1_sys_id = h1.h1_sys_id
inner join
w_in_table_batch_1 b1
On h1.txn_code = b1.txn_code
and h1.doc_no = b1.doc_no
) w1
On s1.item_code = w1.item_code
),
case_32 as
(select s2.item_code,
NVL (S2.bat_no, W2.bat_no) bat_no.
NVL (S2.txn_code, W2.txn_code) txn_code.
NVL (S2.doc_no, W2.doc_no) doc_no.
NVL (S2.updt_dt, W2.doc_dt) updt_dt.
cases where s2.bat_no = w2.bat_no then 'Y' else ' n end batch_yn.
cases where w2.txn_code is not null
and w2.doc_no is not null
and w2.doc_dt is not null
then "case 32'.
end refers_to
from (select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn, refers_to
of case_2
where refers_to is null
) s2
left outer join
(select i2.item_code, h2.txn_code, h2.doc_no, h2.doc_dt, b2.bat_no
of w_in_table_item_2 i2
inner join
w_in_table_head_2 h2
On i2.h2_sys_id = h2.h2_sys_id
inner join
w_in_table_batch_2 b2
On i2.i2_sys_id = b2.i2_sys_id
) w2
On s2.item_code = w2.item_code
),
case_33 as
(select s3.item_code,
w3.bat_no,
NVL (S3.txn_code, w3.txn_code) txn_code.
NVL (S3.doc_no, w3.doc_no) doc_no.
NVL (S3.updt_dt, w3.doc_dt) updt_dt.
cases where s3.bat_no = w3.bat_no then 'Y' else ' n end batch_yn.
cases where w3.txn_code is not null
and w3.doc_no is not null
and w3.doc_dt is not null
then "case 33'.
end refers_to
from (select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn, refers_to
of case_2
where refers_to is null
) s3
left outer join
(select i3.item_code, h3.txn_code, h3.doc_no, h3.doc_dt, i3.bat_no
of w_in_table_item_3 i3
inner join
w_in_table_head_3 h3
On i3.h3_sys_id = h3.h3_sys_id
) w3
On s3.item_code = w3.item_code
)
Select item_code, bat_no, txn_code, doc_no, boe_dt, batch_yn
of case_1
where refers_to is not null
Union of all the
Select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn
of case_2
where refers_to is not null
Union of all the
Select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn
from (select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn,
ROW_NUMBER() over (partition by item_code of updt_dt desc order) rn
from (select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn
of case_31
where refers_to is not null
Union of all the
Select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn
of case_32
where refers_to is not null
Union of all the
Select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn
of case_33
where refers_to is not null
)
)
where rn = 1
ITEM_CODE BAT_NO TXN_CODE DOC_NO BOE_DT BATCH_YN I1 B1 T1 1234 JANUARY 3, 2015 THERE I1 B30 T30 7890 FEBRUARY 5, 2015 N I2 B60 T60 1234 JANUARY 3, 2015 N I3 B70 T70 1234 FEBRUARY 1, 2015 THERE I4 - T90 1234 JANUARY 5, 2015 N I6 - T40 1234 AUGUST 5, 2015 N Concerning
Etbin
Where to put the tables/sources of custom data in ODI
We have a GR 11, 2 BIAPPS environment where the source is EBS 12.1.3.
We include some tables custom as source in ODI.
The tables are not part of EBS 12.1.3 (since a developed custom application), but they are accessible to the user apps EBS. The paintings are found in a scheme called "xxap" in the same database as EBS 12.1.3. The apps user is used to connect to the schema of the EBS in ODI.
My question is, where in ODI must find these tables to meet standards for customizations?
Cant' find a reference to this in the documentation.
Shouldn't we
1. create a new schema schema/logic Server/physical data and create a data model for that
2. Add a new submodel to the EBS 12.1.3 datamodel and use the EBS data server/existing schemas.
3. Add a new physical schema in the source existing EBS dataserver whose schema is set to "xxap" and create a custom for the datamodel folder
or something else.
Wan't to ensure that the application of patches/upgrades at a later date will not affect our customization.
According to this, it's good to put them directly in the EBS model in a folder 'custom objects '.
http://www.rittmanmead.com/2014/01/customisations-in-bi-apps-11-1-1-7-1-part-2-category-2-changes/
Transformation to define the schema and user on Tables in relational and physical
I imported my Designer SDDM 4.0.1.836 deposit. Now, I want to APP_SYS of subviews allows to define the schema on the tables in the relational model and the user on the physical model. Our application in designer systems are 90% based scheme. Here's what I have so far based on the example of OE and HR plans that I imported, built logical, then back to relational. At this point, I have the tables by subview... Line 24 is obviously incorrect. Can someone give me a step by step approach to understand what I need to set the schema of the table and the user? I looked through the read me file, xml files, the index and searched the known universe and am still confused.
importPackage(javax.swing); // variable to keep a status message for later var message=""; var schema=""; // Get all subviews for Relational subviews = model.getListOfSubviews().toArray(); for (var isub = 0; isub<subviews.length;isub++){ subview = subviews[isub]; message = message + '\n'+isub+" "+ subviews[isub]; if(subviews[isub]!=null){ if(subview == "HR_ERD"){ shema = "HR"; }else if(subview == "OE_ERD"){ schema = "OE"; } tables = model.getTableSet().toArray(); for (var t = 0; t<tables.length;t++){ table = tables[t]; //check for presentation in subview tv = table.getFirstViewForDPV(subviews[isub]); if(tv!=null){ table.setSchemaObject(schema); message = message + '\n '+ t +" " +shema+"."+ tables[t] ; } } } } JOptionPane.showMessageDialog(null, message); //Packages.oracle.dbtools.crest.swingui.ApplicationView.log(message);
Hi Marcus,
First of all, you must make sure that the schema already exists in your relational model.
You can use the method
public void setSchema (String schemaName)
to associate your Table with this scheme.
(This method is defined on ObjetConteneur, so it can also be used to make and index).
If you already have a user of your physical model that implements your schema, it is not normally necessary to create a user on the TableProxyOracle in the physical model.
However if you do not want to set, then the method to use is
public void setUser (user UserOracle)
David
12 c: queryListener custom af:table component - how to get the filter values?
Hello
in a queryListener custom on an element of af: table, I am trying to print the values of the filter fields (for example to do a validation)
public void onQuery(QueryEvent pQueryEvent) { RichTable vRt = (RichTable)pQueryEvent.getComponent(); CollectionModel vModel = (CollectionModel)vRt.getValue(); JUCtrlHierBinding vData = (JUCtrlHierBinding)vModel.getWrappedData(); ConjunctionCriterion vCc = pQueryEvent.getDescriptor().getConjunctionCriterion(); for (Criterion vCriterion: vCc.getCriterionList()) { if (vCriterion instanceof AttributeCriterion) { AttributeCriterion vAttCriterion = (AttributeCriterion)vCriterion; AttributeDescriptor vAttDescriptor = vAttCriterion.getAttribute(); System.out.println("Type: " + vAttDescriptor.getType()); System.out.println("Name: " + vAttDescriptor.getName()); System.out.println("Value: " + vAttCriterion.getValue()); } } JSFUtil.invokeMethodExpression("#{bindings." + vData.getIteratorBinding().getName().replace("Iterator", "Query") + ".processQuery}", Object.class, QueryEvent.class, pQueryEvent); }
However... the value of the filterfield (System.out.println ("Value:" + vAttCriterion.getValue ());) is always null after the seizure of a filter value and pressing on enter the af: table.
The table is the filter properly.
How can I get the values of the filter fields in the queryListener?
Kind regards
Koen Verhulst
Keon, in my blog JDev 12 c: how to reset a filter on an af:table channel 12 c | JDev & amp; ADF Goodies that I use
/**
* method to reset filter attributes on an af:table
* @param actionEvent event which triggers the method
*/
public
void
resetTableFilter(ActionEvent actionEvent) {
FilterableQueryDescriptor queryDescriptor = (FilterableQueryDescriptor) getEmpTable().getFilterModel();
if
(queryDescriptor !=
null
&& queryDescriptor.getFilterConjunctionCriterion() !=
null
) {
ConjunctionCriterion cc = queryDescriptor.getFilterConjunctionCriterion();
List
lc = cc.getCriterionList(); for
(Criterion c : lc) {
if
(c
instanceof
AttributeCriterion) {
AttributeCriterion ac = (AttributeCriterion) c;
ac.setValue(
null
);
}
}
getEmpTable().queueEvent(
new
QueryEvent(getEmpTable(), queryDescriptor));
}
}
to reset the values. You should be able to get the values of the same way.and print the values to set them to null instead.
Timo
Maybe you are looking for
-
My laptop just put update for Windows 10. A previous version of Firefox I open multiple windows at the same time.
-
How to put across a 4-20mA signal
Hello First of all, I don't know where to look for so that I could be in the wrong place. If someone could help me find a way or a manual, would be great. I have a cRIO with 9203 module receive a signal 4-20ma with a flow meter. I added the cRIO in L
-
Stop in the pc game: fate.
I installed the Fate pc game. During the game, my computer is going to close, and then restart. Have had the game for more than two months. This has just begun. What can I do to fix this?
-
"Random selection" for "Transitions" in Windows Movie Maker?
For all that I can tell, Windows Movie Maker doesn't have a 'Random' selection for transitions. It is this true or am I missing where the selection within the program?
-
You cannot change the file association for .exe owner program
Just bought new Win 7 Dell desktop running Home premium OS from an old XP computer file transfer. I am a developer of s/w using a proprietary application that compiles the files of .xpa. Using 'open with' when I try to associate the file .xpa at ou