Filter tables based on query results
Hello,
I have a report from multiple data providers.The first page of it is a summary page for the data providers and it has a small table per data provider.
My question is- is it possible to not show a table if the data provider has not results ?
If so - then how can this be done ?
Follow this steps:
1. Select Table. Do right click
2. Choose Table Format. Select Appeareance Tab.
3.Check "Hide Block" checkbox.
4.Press Edit Button and place this formula:
=NumberOfRows("YOUR PROVIDER NAME HERE") = 0
5.Press Ok. The formula will be displayed under the "Hide block" checkbox. Press Ok.
Apply this to every table you one to hide if its data provider has not results.
If one of your tables hides and you still want to do some additional modifications press "Structure button" to be able to see it.
Edited by: PadawanGirl on Feb 16, 2011 6:01 PM
Similar Messages
-
Filter Table data on Query Result
Dear All
When I execute the following query (in Query Generator) I got 6411 records. But when I want to filer this table, in the drop down list in 'ITEM' column I found only 500 records (i.e. up to the recods starting with 'K' though there are records starting with 'W' in 'ITEM' field).
I am using SAP B1, PL 14.
Can any one suggest how to get all the records in the drop down list of filter window?
My query is as follows:
SELECT distinct D.ITEMCODE + ' - ' + D.DSCRIPTION 'ITEM',
DATENAME(M,H.DOCDATE) + ' - ' + DATENAME(YYYY,H.DOCDATE) 'MONTH',
D.PRICE
FROM PCH1 D INNER JOIN OPCH H ON H.DOCENTRY= D.DOCENTRY
WHERE H.DOCTYPE='I' AND D.ITEMCODE + ' - ' + D.DSCRIPTION IS NOT NULL
ORDER BY 1, 2
Thnaks & with regards
Aloke
Edited by: ALOKE BANDYOPADHYAY on Jul 15, 2011 4:51 PMDear Gordon
I have placed the following problem also in forum since one month without receiving any positive answer. So I am requesting you personally can you help me to solve the problem:
Following is the code I am using for revaluation of items which is giveing "Internal Error 5002':
Dim lMaterialRevaluation As SAPbobsCOM.MaterialRevaluation
lMaterialRevaluation = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oMaterialRevaluation)
For li As Integer = 0 To ls_Lines.Length - 1
If ls_Lines(li).Split(vbTab).Length 5 Then
My.Computer.FileSystem.WriteAllText(ls_OutFileName, lnl_SrlNo & "--> Can't Read in the data in Line " & li + 1, True)
My.Computer.FileSystem.WriteAllText(ls_OutFileName, vbNewLine, True)
lnl_SrlNo += 1
Continue For
End If
ls_ItemCode = ls_Lines(li).Split(vbTab)(0).Trim
ls_WareHouseCode = ls_Lines(li).Split(vbTab)(1).Trim
ld_Price = ls_Lines(li).Split(vbTab)(2).Trim
li_IncAccount = ls_Lines(li).Split(vbTab)(3).Trim
li_DecAccount = ls_Lines(li).Split(vbTab)(4).Trim
lMaterialRevaluation.Lines.SetCurrentLine(li)
lMaterialRevaluation.Lines.ItemCode = ls_ItemCode
lMaterialRevaluation.Lines.WarehouseCode = ls_WareHouseCode
lMaterialRevaluation.Lines.Price = ld_Price
lMaterialRevaluation.Lines.RevaluationIncrementAccount = li_IncAccount
lMaterialRevaluation.Lines.RevaluationDecrementAccount = li_DecAccount
lMaterialRevaluation.Lines.Add()
Next
Dim li_Ret As Integer
li_Ret = lMaterialRevaluation.Add
If li_Ret = 0 Then
MsgBox("Material Revaluation Completed")
System.Runtime.InteropServices.Marshal.ReleaseComObject(lMaterialRevaluation)
Else
oCompany.GetLastError(lErrCode, sErrMsg)
MsgBox(sErrMsg & ", Material Revaluation failed")
End If
Thanks & with regards
Aloke -
Form Filter Based On Query Results
How can I create a filter on a form based on the results of a query.
i.e. The Query [ESS_City] looks at the form's field [Current_User] and generate a list of cities [City_ID] that I want to use to match the form [ESS_QUEUE] field [City_ID]
Query Name: [ESS_City]
Query Field: [City_ID]
Form name: [ESS_Queue]
Form Field to filter with: [City_ID]
Thank you,
Mark MatzkeI use criteria in my queries instead of filters.
I would have a combo in the header of the form to select City_ID. Use that combo as criteria in the query that feeds the form. Have an AfterUpdate event to refresh the form.
Build a little, test a little -
Search directory of PDF's based on Query Results?
Hello - Is it possible to search a directory of .pdf files
based on a
returned list of query results? For example I query a product
database
that returns a list of Product Names and Product ID's. Based
on that
list of query results, I'd like see if a pdf exists in the
directory
that has the same name as the Product ID, and then create a
link to that
.pdf.
Make sense?
Thank you,
Steve MillerI figured it out.
Thank you,
Steve Miller
Steve Miller wrote:
> Hello - Is it possible to search a directory of .pdf
files based on a
> returned list of query results? For example I query a
product database
> that returns a list of Product Names and Product ID's.
Based on that
> list of query results, I'd like see if a pdf exists in
the directory
> that has the same name as the Product ID, and then
create a link to
> that .pdf.
>
> Make sense?
>
> Thank you,
> Steve Miller -
How to embed chart/grafic into bex report (workbook) based on query result?
Hi friends,
Since I have never embedded any Charts/Grafic based on query report, I am wondering if you could share your knowledge?
Thanks for your help in advance!
Regards,
SallyHi Sally,
You can create chart into workbook based on the query data.
Execute the query it will show result in excel sheet. In the tool bar of the sheet you find 'Chart wizard' icon . Select the icon, it will ask for the type of the graph. After select the ranges of the data from result. It will display the graph. Then you can save the workbook.
Graphs can be embedded in different sheets.
Hope it helps.
Regards,
Aditya -
Update 1 column,1 single table based on where results of multiple tables
I would like the my_id column in 1 table updated to the static value of 247 for my_id stored in the 1 single table based on the where clause, which uses the my_id column in it.
The update statement updates all rows in table1, instead of just the rows where
the condition ( (b.my_id=a.my_id)
and ( b.my_name like 'OIS SrClerk%')
and (a.f_id=m.f_id)
and (trunc(m.cr_time) < '02-Apr-2008')) is true
What needs to be changed?
update table1 a
set a.my_id=247
from table1 a, table2 b, table3 m
where
(b.my_id=a.my_id)
and ( b.my_name like 'OIS SrClerk%')
and (a.f_id=m.f_id)
and (trunc(m.cr_time) < '02-Apr-2008')Are you looking for this?
UPDATE table1 A
SET A.my_id = 247
WHERE EXISTS (SELECT 'x'
FROM table2 b,
table3 M
WHERE b.my_id = A.my_id
AND b.my_name LIKE 'OIS SrClerk%'
AND A.f_id = M.f_id
AND TRUNC (M.cr_time) < to_date('02-apr-2008 00:00:00','dd-mon-yyyy HH:MI:SS') )changed date string to to_date
Message was edited by:
devmiral -
How can I export a Oracle DB table or a Query Result to an mdb (MS Access) File ?
Hi,
I would like to export a particular table or a particular data subset (result from a SQL query) to a MDB file, I tried with Oracle SQL Developer but I cannot see mdb as a possible export option.
How can I do to export data to a mdb file ? I'm currently using SQL Developer on GNU/Linux, can you suggest me a link or a tool to do such things ?
I consider an acceptable solution also to use SQL Developer to export data in a certain format and then use another software to open that format and create an mdb. What do you suggest ?Open the (an) MS Access database and:
1) Click on File -> Link tables -> Select ODBC Database(s)
2) On popup window select (or create new) "Machine Data Source" -> Oracle Driver -> Select the TNS alias (service name)
Good luck! -
Using jquery to hide/show field based on query results
I have a form that includes fields for country and state/province. Initially, the state field is hidden. When the user selects a country, I use a bind expression in the state field to get the states in the selected country. I want to display the state field only if the country has states (since some countries don't). Can someone tell me how to do this? Here's the relevant stuff:
<script>
$(document).ready(function() {
$('#stateID').hide();
$('#stateIDLable').hide();
</script>
Country:
<cfselect name="countryID" query="qryCountries" value="countryID" display="country" />
<div id="stateIDLable">State or Province:</div>
<cfselect id="stateID" name="stateID" bind="cfc:geography.getStates({countryID})" />
Thanks.
PeteI presume you have a JavaScript function that handles the results of the cfc binding?
If you don't you will need to incorperate one. Then, as well as populating the second select, this function can use logic to show the second set of controls. -
How to filter Table based of LOV change
Hi Team,
I have one LOV as Location LOV as Input and below the LOV i have one table as Employee table. Employee table have one column as Location_ID
Now I want to filter my table on change of LOV values.
Please suggest me something
Jdev :- 11.1.1.4
Thanks,
RamitHi,
I think your case is a master detail relationship.
Then you can create a view link between the two View objects and then shuttle the view link to the Aplication module
Then drag and drop the first VO from the datacontrol in to the page as a select one choice, then drag and drop the table .
then put an auto submit on the select one choice and put a partial trigger on the table
you will get the filtered table when you chage the choice list data.
Ranjith -
InfoSet query results confusion...
HI All,
We have 2 ODS. One is Billing and the other is Project Sales. In the billing ODS we have billing documents that have the billing date (calmonth) and employee. The projected sales is an ODS that has for each employee for each month, their Projected Sales.
We have created an InfoSet and linked in the billing ODS the calmonth (in billing) to period field (in Projected Sales) and 0SALESEMPLOYEE (in billing) to PERNR (in Projected) ODS.
The Projected Sales ODS has exactly 1 entry for each employee for each month. i.e. employee '12345' for 200501 a projected sales of 10,000. With the above mapping the query results for projected sales is about 50X more. In other words, it shows 30 million when it should be 150,000. I think this has to do with it somehow including results from the billing ODS??
We've read help about interpreting infoset query results and it's quite confusing. It speaks of some filter option to exclude query result set, but can't figure it out.
In addition to the monthly projected sales we want to see for each employee, we want to include all the net sales they had for the same month. So you can see the mapping we did above.
Query would look like this:
Calmonth Employee NetSales ProjSales
200501 123456 220,000 10,000
The projected sales is entirely off by millions of dollars and also the net value isn't calculating correctly. I'm sure out setup is incorrect.
Can someone help us out please.
Thanks
MikeHi Ashish,
What you explained is exactly what is the case.
The billing ODS has many, many entries for the for the employee + calmonth combination while the projected sales only has 1. I've figured out that this is what is happening...multiplying the number of entries in the billing X the Projected Sales.
Is there a way to avoid this with a particular join in InfoSet?
The key for billing ODS has billing number, billing item and fiscal year variant, while the key for projected sales is start period and pernr. So I don't see how a multiprovider would work because the fields are different...am I incorrect?
Thanks for your quick reply,
Mike -
Filter in query result table not populated by criteria previously selected.
Hi Experts,
I'm currently working on the the Upgrade of our BW production line from
release 3.0b to 7.0:
Configuration of target system
BW system : Release 7.0
BEx Analyser : Release 2004s, Support Package9, Patch 1, Revision 321
Sap Gui 6.4
We're especially trying to check the non-regression of the non-converted queries in the new system (release 7.0).
And we get the following issue: After having selected the selection criteria in the selection window, the reminder of selected criteria is not done in the filter part of the target query result. Is it a normal behavior or not ?
Indeed, in the previous system configuration (BW 3.0b), the user is accustomed to seeing just above his result table the selection criteria that he had previously filled in in the selection window.
Please find herewith an example describing the problem.
Thanks in advance for your help.In order to be more clear, hereunder an example:
- I have a field untitled "Business Division"in the selection window.*
- I fill in this field with the value "OND"
- I execute the query with this value for this field.
- The query result correclty appears.
- I click on the "Filter" button to display the Filter table with the columns "Navigation pane" and "Filter criteria".
- In the "Navigation pane", there is the field "Business Division".
- For me, the corresponding "Filter criteria" should be the value "OND", but nothing is displayed...
Thanks in advance foryour help.
Regards,
Steph -
Sending email using PL/SQL based on a query result
Hello all,
I want to create a procedure using PL/SQL, based on a query result.Here is the scenario:
I have multiple tables in Target and Source databases that I want to compare(not the whole table but queries on these tables) and if they differ, I want to shoot an email. I have some ideas how to implement this but not sure whether it is the best approach.
select Acct_id, total from SourceTableA
minus
select Acct_id, total from TargetTableA
select Acct_id, sum from SourceTableB
minus
select Acct_id, sum from TargetTableB
If the result of any of above queries > 0 then I want to shoot an email and want to repeat this procedure in the morning every day.
I know how to implement send_mail procedure using UTL_SMTP package and how to schedule tha job by dbms_job package. But I am not sure how to implement the result of minus query. In case if minus > 0 then I also want to send the name of tables in the email message where source and target tables are not same. Should i use cursor, variable or insert the result in a new table? any help would be highly appreciated. Thanks in advance.
KhanActually these queries are the part of our daily testing that we run everyday manually(after the scheduled ETL load) to see if there are any discrepencies between our datawarehouse tables and source tables. So instead of running these queries manually everyday we want to schedula a procedure that will shoot an email in case of any discrepency and indicate which tables have problems.
-
OBIEE Report - filter based on the result from another analysis
Hi,
I am using OBIEE 11g,
I am trying to use a filter which is based on the result from another analysis. I have an analysis A which is as table 1, and I want to filter the respective columns of analysis B (Table B) based on analysis A to remove the duplicates for march 01, 02, and 07 , but it is not working properly. I took a max of start and end time when I created analysis A. Please let me know if I did anything wrong. thanks.
Table 1
Employee Number
Date
IN
Out
Start Time
End Time
xxxxxxx
2015-02-26
9:00
13:00
00:00:00
00:00:00
2015-02-27
12:00
18:00
00:00:00
00:00:00
2015-02-28
8:00
14:00
00:00:00
00:00:00
2015-03-01
14:00
20:00
14:00:00
20:00:00
2015-03-02
16:00
20:00
16:00:00
20:00:00
2015-03-07
14:06
20:02
14:00:00
20:00:00
2015-03-11
16:00
20:00
16:00:00
20:00:00
2015-03-14
8:00
14:00
00:00:00
00:00:00
2015-03-25
14:00
20:00
16:00:00
20:00:00
Table 2
Employee Number
Date
IN
Out
Start Time
End Time
Hours
xxxxxxx
2015-02-26
9:00
13:00
00:00:00
00:00:00
-3
2015-02-27
12:00
18:00
00:00:00
00:00:00
6
2015-02-28
8:00
14:00
00:00:00
00:00:00
6
2015-03-01
14:00
20:00
00:00:00
00:00:00
6
14:00:00
20:00:00
6
2015-03-02
16:00
20:00
00:00:00
00:00:00
4
16:00:00
20:00:00
4
2015-03-07
14:06
20:02
00:00:00
00:00:00
6
14:00:00
20:00:00
6
2015-03-11
16:00
20:00
16:00:00
20:00:00
4
2015-03-14
8:00
14:00
00:00:00
00:00:00
6
2015-03-25
14:00
20:00
16:00:00
20:00:00
4Why avg here?
What columns you want to show in the report?
for a employee for given date if he have 2 rows then you may sum up hours right?
Employee Number
Date
IN
Out
Start Time
End Time
Hours -
RUN Time error while use filter table in query generator
Hai..
I have 2 Functions under "Scalar valued functions" in SQL Server,i try to call this functions in Query generator its working fine,result also display correctly, but i click filter table system showing Error Message " Run Time Error,Abnormal program termination" then SAP is get closed,i tested this scenario in 3 Database am getting same error , Is this BUG in SAP B1?There is no error number in error messageThis is my function
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date, ,>
-- Description: <Description, ,>
-- =============================================
ALTER function [dbo].[Get_TransObjName](@Obj_type NUMERIC(20,5))
returns varchar(500) as
BEGIN
DECLARE @Obj_type_Name varchar(100)
select @Obj_type_Name =
case @Obj_type
when -2 then 'Opening Balance'
when -3 then 'Closing Balance'
when 1 then 'oChartOfAccounts'
when 2 then 'oBusinessPartners'
when 3 then 'oBanks'
when 4 then 'oItems'
when 5 then 'oVatGroups'
when 6 then 'oPriceLists'
when 7 then 'oSpecialPrices'
when 8 then 'oItemProperties'
when 12 then 'oUsers'
when 13 then 'A/R Invoices'
when 14 then 'A/R Credit Memo'
when 15 then 'A/R DeliveryNotes'
when 16 then 'A/R Returns'
when 17 then 'oOrders'
when 18 then 'A/P Invoice'
when 19 then 'A/P Credit Memo'
when 20 then 'Goods Receipt PO'
when 21 then 'Goods Returns'
when 22 then 'PurchaseOrders'
when 23 then 'Quotations'
when 24 then 'IncomingPayments'
when 25 then 'Deposit'
when 28 then 'oJournalVouchers'
when 30 then 'JournalEntries'
when 31 then 'oStockTakings'
when 33 then 'oContacts'
when 36 then 'oCreditCards'
when 37 then 'oCurrencyCodes'
when 40 then 'oPaymentTermsTypes'
when 42 then 'oBankPages'
when 43 then 'oManufacturers'
when 46 then 'VendorPayments'
when 48 then 'oLandedCostsCodes'
when 49 then 'oShippingTypes'
when 50 then 'oLengthMeasures'
when 51 then 'oWeightMeasures'
when 52 then 'oItemGroups'
when 53 then 'oSalesPersons'
when 56 then 'oCustomsGroups'
when 57 then 'ChecksforPayment'
when 58 then 'Stock List'
when 59 then 'Goods Receipt'
when 60 then 'Goods Issue'
when 64 then 'oWarehouses'
when 65 then 'oCommissionGroups'
when 66 then 'oProductTrees'
when 67 then 'Inventory Transfers'
when 68 then 'oWorkOrders'
when 69 then 'Landed Costs'
when 70 then 'oCreditPaymentMethods'
when 71 then 'oCreditCardPayments'
when 73 then 'oAlternateCatNum'
when 76 then 'Postdated Deposit'
when 77 then 'oBudget'
when 78 then 'oBudgetDistribution'
when 81 then 'oMessages'
when 91 then 'oBudgetScenarios'
when 97 then 'oSalesOpportunities'
when 93 then 'oUserDefaultGroups'
when 101 then 'oSalesStages'
when 103 then 'oActivityTypes'
when 104 then 'oActivityLocations'
when 112 then 'oDrafts'
when 116 then 'oDeductionTaxHierarchies'
when 117 then 'oDeductionTaxGroups'
when 125 then 'oAdditionalExpenses'
when 126 then 'oSalesTaxAuthorities'
when 127 then 'oSalesTaxAuthoritiesTypes'
when 128 then 'oSalesTaxCodes'
when 134 then 'oQueryCategories'
when 138 then 'oFactoringIndicators'
when 140 then 'oPaymentsDrafts'
when 142 then 'oAccountSegmentations'
when 143 then 'oAccountSegmentationCategories'
when 144 then 'oWarehouseLocations'
when 145 then 'oForms1099'
when 146 then 'oInventoryCycles'
when 147 then 'oWizardPaymentMethods'
when 150 then 'oBPPriorities'
when 151 then 'oDunningLetters'
when 152 then 'oUserFields'
when 153 then 'oUserTables'
when 156 then 'oPickLists'
when 158 then 'oPaymentRunExport'
when 160 then 'oUserQueries'
when 162 then 'Inventory Valuation'
when 163 then 'oCorrectionPurchaseInvoice'
when 164 then 'oCorrectionPurchaseInvoiceReversal'
when 165 then 'oCorrectionInvoice'
when 166 then 'oCorrectionInvoiceReversal'
when 170 then 'oContractTemplates'
when 171 then 'oEmployeesInfo'
when 176 then 'oCustomerEquipmentCards'
when 178 then 'oWithholdingTaxCodes'
when 182 then 'oBillOfExchangeTransactions'
when 189 then 'oKnowledgeBaseSolutions'
when 190 then 'oServiceContracts'
when 191 then 'oServiceCalls'
when 193 then 'oUserKeys'
when 194 then 'oQueue'
when 198 then 'oSalesForecast'
when 200 then 'oTerritories'
when 201 then 'oIndustries'
when 202 then 'oProductionOrders'
when 203 then 'A/R Down Payment'
when 204 then 'A/P Down Payment'
when 205 then 'oPackagesTypes'
when 206 then 'oUserObjectsMD'
when 211 then 'oTeams'
when 212 then 'oRelationships'
when 214 then 'oUserPermissionTree'
when 217 then 'oActivityStatus'
when 218 then 'oChooseFromList'
when 219 then 'oFormattedSearches'
when 221 then 'oAttachments2'
when 223 then 'oUserLanguages'
when 224 then 'oMultiLanguageTranslations'
when 229 then 'oDynamicSystemStrings'
when 231 then 'oHouseBankAccounts'
when 247 then 'oBusinessPlaces'
when 250 then 'oLocalEra'
when 280 then 'oSalesTaxInvoice'
when 281 then 'oPurchaseTaxInvoice'
when 300 then 'BoRecordset'
when 305 then 'BoBridge'
when 260 then 'oNotaFiscalUsage'
when 258 then 'oNotaFiscalCFOP'
when 259 then 'oNotaFiscalCST'
when 261 then 'oClosingDateProcedure'
when 10 then 'oBusinessPartnerGroups'
when 278 then 'oBPFiscalRegistryID'
else cast(@Obj_type as char(20)) end
return @Obj_type_Name
END -
Store SQL query results in db table
Hi,
I have a SQL query that produces a report table.
Is it possible to automatically store the query results (or the report table) as a db table - without interrupting the current report building proces?
Thanks,
Dave
Message was edited by:
Dave JudgeHi Dave,
You can also insert records into an existing table:
INSERT INTO TABLEB (colA, colB, colC, etc) SELECT valA, valB, valC, etc FROM VIEWA WHERE etc etc
This can be done during a page process that runs "Before Header" and you can base your report on the TABLEB. Obviously, you will need to maintain that table to ensure that it is only truncated where necessary, that one user doesn't try to access another user's data on that table and that each time your page is loaded it doesn't try to repopulate the table when you don't need it to.
Another possiblity is to use a collection - which is user session based
Andy
Maybe you are looking for
-
CENVAT Clearing Acount not getting cleared through F.13 after MIRO
Dear All, I wanted to clear Cenvat Clearing Account on the basis of Assignment field which should have Purchase Order Number. I maintained Sort Key as "014" Purchase order in Cenvat Clearing Account Master Data. However, RE Documents created by MIRO
-
Thunderbolt 2 external displays support under bootcamp
The faq says win7 and bootcamp would support just 1 external thunderbolt display... I am trying to build a 3 monitors rig to play iriacing, and i really hoped that my 27" imac would do the job by just buying two additional monitors but it seems not t
-
SAVE AS script w/Default file name?
I have created a SAVE AS button on my form however; the default file name is random characters in a temp folder path. How can I change the file name to automatically appear as one of my form field values? Ex: Someone presses the SAVE AS button and th
-
Can apple mail be used from the command line?
Can the Mac Mail application be used from the OSX command line? Has anyone installed a command-line, Linux-like mail application to run on OSX?
-
Nokia 1209 with broken screen i need contacts.
I have a broken screen and i need to copy the contacts from phone to screen. Does anyone know the keystrokes/steps to do this?