Is there a property for record count?
I want to navigate to another block if the current record is the LAST record. I can get the value of the current record but can't figure out how to get the value of # of records returned. Surely there's a block property for this, but I can't find it!
Hi,
:system.last_record will have the value 'TRUE' if the cursor is on the last record of some block.
/Michael
Similar Messages
-
Is there a property for mixed signal graphs to control Y scrollbar visibility​?
Anyone know if it's possible? I can control the X-scale scrollbar visibility with a property but can't find one for Y-scale and have to do it from the front panel 'Visible Items > Y Scrollbar' context menu. I'd like to be able to configure it at runtime ... clues?
Hi Mike,
I read the property node for the bar plots (after having setting it by hand to the one you like) and it appears that the value of that bar plot is 8. I also set it to a different bar plot by and hand then wrote "8" to the property node and that does seem to change it to the last (left to right) vertical bar graph. I am running LV 7.1. If you look at the context help it does seem to indicate that the only values for vertical bar graphs are 1-3 but try writing "8" and see what happens.
Cheers,
--Russ -
Viewer TOTAL record count display CRViewer9
Post Author: niblick
CA Forum: General
A application written in a previous version of Crystal Reports (7 or 8 ?) displays the TOTAL record count in the viewer (not in the report). I had to upgrade the reports to version 9 (RDC - CRViewer9) and when I preview the report there is no TOTAL record count in the viewer. How do I enable this in Crystal Reports 9?
Thankscheck inbox. forwarded the updated template
-
Alv report (record counter)
hiii
dear all i written below code for record count but not getting no of records beyond 9 , it gives * ..
data : wa_listheader1 type slis_listheader.
data : Lin type i,
LINCHAR type c.
DESCRIBE TABLE ITab LINES LIN.
LINCHAR = LIN.
CLEAR wa_listheader1.
wa_listheader1-TYP = 'A'.
LS_LINE-KEY = ' '.
CONCATENATE 'NO. OF RECORDS :' LINCHAR INTO wa_listheader1-INFO SEPARATED BY SPACE .
APPEND wa_listheader1 TO it_listheader.
suggest any required change....Change the length of LINCHAR ...
data : wa_listheader1 type slis_listheader.
data : Lin type i,
LINCHAR(3) type c. -
Best mic for recording live music with video ipod?
i believe there are mics for recording sound, and believe there are even some which are made for great sound quality such as live music.
if so, which one is the best?
thanks.This is sort of like asking what is the best motorized vehicle.
There are different mikes for different purposes, instruments, etc. I'd get on Google and look for recording websites.
Myself, I like various Neumann's for certain applications. -
Maximum record counts and property counts
Hello,
I am looking for the document/link that mentions maximum record counts and maximum property counts for each record.
let say there are 1.5million records and each record has 2000 properties. Not sure if it can be handled nicely.
Mdex version is 6.2.1 at this point. but can upgrade if higher version can handle more.
Thanks,Jeremy is pretty much correct. There are no limitations except by performance.
Start with the Performance Tuning Guide - here is a link to the 6.4.1 document:
http://docs.oracle.com/cd/E41223_01/Mdex.641/pdf/PerfTuningGuide.pdf
For your questions, start with Chapter 5 and read how properties/dimensions affect performance and this will help drive how you architect your queries and pipeline configuration/index setup to be most efficient. -
Record count is different for Full load and Init with data transfer
Hi all,
We have a data source for which delta is enabled on Calendar Day.
If I run the full load record count is 2670.But If I run the delta record count is 2665.5 records are missing.
Would you please help on this.Why those records are missing.Hi,
Actually for Full Load say you have 50 records. When you run it will upload 50 records.
Now if you run delta if there is no records changes it wouldnt update because there is no update in the existing records.
only delta is done when there is changes in the records. -
Showing Dimension counts for record results.
Hi experts,
In my application, I want to show dimension counts for record results. Support results contains 50 records, Out of 50 records, with Color=Red has 15 records. Therefore I want to display the Red Color results as -
Color:
Red (15)
Silver(5)
Like wise for other dimensions as well. As per the Endeca documentations, I guess "Drs" parameter is there to achieve it. If this is true then can you guys explain how the required functionality can be achieved using endea_jspref application . Or using presentation api, what kind of code should be written.
Any input/ideas will be highly appreciated.
Regards,
HoqueHi,
in my code level i used like below to display num of records
if you use RefinementMenu cartridge(in jsp RefinementMenu.jsp) you will get refinements in that content.
<c:forEach items="${content.refinements}" var="refinement">
<li>
<dsp:include page="/renderNavLink.jsp">
<dsp:param name="navAction" value="${refinement}"/>
<dsp:param name="text" value="${refinement.label} (${refinement.count}) "/>
</dsp:include>
</li>
</c:forEach>
in above ${refinement.label} :: means the lable name(color:red,silver) and
(${refinement.count}) :: means the no of records it has( red(10), silver(12))
in renderlink.jsp i used to render content or navigation based on your click(red or silver)
i think so it may help you from endeca Stuff.
Regards
Y.V.L -
What is the "Count" property for Servlet in Console?
Wondering what the "Count" property for Servlet means in the Console. Is it instances
or current uses? In other words, if the number is >1 does this mean that the Servlet
implements the single-threaded model?
Thanks,
-Danielbtw one of the nice things about java is if you can't find the answer
in the API or you are not sure what the API is saying you can always
look at the source for the class your are looking at. the source files
are in a file called src.zip or src.jar depending on the version.
anyway just to make sure i understood i looked at the properties method
in question.
public String getProperty(String key) {
Object oval = super.get(key);
String sval = (oval instanceof String) ? (String)oval : null;
return ((sval == null) && (defaults != null)) ? defaults.getProperty(key) : sval;
public String getProperty(String key, String defaultValue) {
String val = getProperty(key);
return (val == null) ? defaultValue : val; -
Hi gurur's in BDC for recording other than SHDB any process is there
hi gurur's in BDC for recording other than SHDB any process is there
Hi,
I think as such there is no other process. You can do the recording through transaction SM35 as well, go there and click on new recording. You can do the recording this way also but this is not different from SHDB.
Reward if this clarifies your doubt.
Regards,
Lalit Kabra -
Delete Allowed Property For Current Record
I have a requirement where I need to make a record allowed proeprty delete_allowed as false.
Eg:
If :variable:='YES' then
SET_ITEM_INSTANCE_PROPERTY('block_name.item',CURRENT_RECORD,UPDATE_ALLOWED,PROPERTY_FALSE);
end if;
I cannot set delete_allowed property here, so how can I set delete allowed property to false?
if I use
SET_ITEM_PROPERTY('block_name.item',ENABLED,PROPERTY_FALSE);
it will set property for all the records in the block, I have a multi-record block
I am using Oracle Forms 10g
ThanksThanks for the reply.
Yes I was thinking of doing this.
if I put a validation in key-delrec trigger, then do I need to explicitly call a commit or any other method to delete a record if condition is not true?
Eg:
If :variable:='YES' then
Message(' DELETE IS NOT ALLOWED');
Raise Form_Trigger_Failure;
ELSE
commit or delete_record;
End if; -
How to caculate the records count for a measurement with a filter?
I have a fact table which add relationship to a datetime dimension. I create a measurement based on the fact table, like [MeasureA]. I want to calculate the record counts of [measureA] of today, how to write the mdx query? Thanks!
Hi Lavandula,
According to your description, you want to calculate the numbers of the record of a measure for a specific day, right? In this case, you can use
Count function which returns the number of cells in a set to achieve you requirement. Here is a sample query on Adventure Works for your reference.
WITH
MEMBER [Measures].[SetCount] AS
COUNT([Product].[Product].[Product].Members)
SELECT
{[Measures].[SetCount]} ON COLUMNS
FROM
[Adventure Works]
Besides, if you want to count the cell numbers with a condition, you can use
Filter funtion inside the Count function.
WITH MEMBER [Measures].[High Volume Products Count] AS
Count(Filter([Product].[Product].[Product], [Measures].[Internet Order Quantity] > 5))
SELECT [Customer].[Customer Geography].[Country] ON 0
, [Date].[Calendar].[Date].MEMBERS ON 1
FROM [Adventure Works]
WHERE [Measures].[High Volume Products Count]
Regards,
Charlie Liao
TechNet Community Support -
Is there a method for counting words?
Hi!
Is there a method for counting words?
How do I read specific data ( row, column ) out of an array?
Thx
LebiteThere's could be a better way, but this is how I would do it:
String[][] myArray = { {"Blah Blah Blah"},
{"Blah Blah Blah"},
{"Blah Blah Blah"} };
int tokens = 0;
for(int i = 0; i < myArray.length; i++)
for(int j = 0; j < myArray.length; j++)
StringTokenizer st = new StringTokenizer(myArray[i][j]);
tokens += st.countTokens();
System.out.println(tokens); -
DB_GET_BOTH_RANGE fails when there is only one record for a key
Using the DB_GET_BOTH_RANGE flag doesn't seem to work when there is a
single record for a key.
Here's a sample Python program that illustrates the problem. If you
don't know Python, then consider this to be pseudo code. :)
from bsddb3 import db
import os
env = db.DBEnv()
os.mkdir('t')
env.open('t',
db.DB_INIT_LOCK | db.DB_INIT_LOG | db.DB_INIT_MPOOL |
db.DB_INIT_TXN | db.DB_RECOVER | db.DB_THREAD |
db.DB_CREATE | db.DB_AUTO_COMMIT)
data = db.DB(env)
data.set_flags(db.DB_DUPSORT)
data.open('data', dbtype=db.DB_HASH,
flags=(db.DB_CREATE | db.DB_THREAD | db.DB_AUTO_COMMIT |
db.DB_MULTIVERSION),
txn = env.txn_begin()
#data.put('0', '6ob 0 rev 6', txn)
data.put('0', '7ob 0 rev 7', txn)
#data.put('0', '8ob 0 rev 8', txn)
data.put('1', '9ob 1 rev 9', txn)
txn.commit()
cursor = data.cursor()
print cursor.get('0', '7', flags=db.DB_GET_BOTH_RANGE)
cursor.close()
data.close()
env.close()
This prints None, indicating that the record who's key is '0' and
who's data begins with '7' couldn't be found. If I uncomment wither of
the commented out puts, so that there is more than one record for the
key, then the get with DB_GET_BOTH_RANGE works.
Is this expected behavior? or a bug?You can use the DB_SET flag which will look for an exact key match. If
you use it with the DB_MULTIPLE_KEY flag, it will return multiple keys
after the point it gets a match. If you can post here how all your
LIKE QUERIES look, I may be able to provide you with the suited
combination of the flags you can use for them.I'm not doing like queries. I'm using BDB as a back end for an object
database. In the object database, I keep multiple versions of object
records tagged by timestamp. The most common query is to get the
current (most recent version) for an object, but sometimes I want the
version for a specific timestamp or the latest version before some
timestamp.
I'm leveraging duplicate keys to implement a nested mapping:
{oid -> {timestamp -> data}}
I'm using a hash access method for mapping object ids to a collection
of time stamps and data. The mapping of timestamps to data is
implemented as duplicate records for the oid key, where each record is
an 8-byte inverse timestamp concatenated with the data. The inverse
timestamps are constructed in such a way that they sort
lexicographically in inverse chronological order. So there are
basically 3 kinds of query:
A. Get the most recent data for an object id.
B. Get the data for an object id and timestamp.
C. Get the most recent data for an object id who's timestamp is before
a given timestamp.
For query A, I can use DB->get.
For query B, I want to do a prefix match on the values. This can be
thought of as a like query: "like <inverse-time-stamp>%", but it can
also be modelled as a range search: "get the smallest record that is >=
a given inverse time stamp". Of course, after such a range search,
I'd have to check whether the inverse time stamp matches.
For query C, I really want to do a range search on the inverse time
stamp prefixes. This cannot be modelled as a like query.
I could model this instead as {oid+timestamp -> data}, but then I'd
have to use the btree access method, and I don't expect that to scale
as I'll have hundreds of millions of objects.
We tried using BDB as a back end for our database (ZODB) several years
ago and it didn't scale well. I think there were 2 reasons for
this. First, we used the btree access method for all of our
databases. Second, we used too many tables. This time, I'm hoping that
the hash access method and a leaner design will provide better
scalability. We'll see. :)
If you want to start
on a key partial match you should use the DB_SET_RANGE flag instead of
the DB_SET flag.I don't want to do a key partial match.
Indeed, with DB_GET_BOTH_RANGE you can do partial
matches in the duplicate data set and this should be used only if you
look for duplicate data sets.I can't know ahead of time whether there will be duplicates for an
object. So, that means I have to potentially do the query 2 ways,
which is quite inconvenient.
As you saw, the flags you can use with cursor.get are described in
detailed here.But it wasn't at all clear from the documentation that
DB_GET_BOTH_RANGE wouldn't work unless there were duplicates. As I
mentioned earlier, I think if this was documented more clearly and
especially of there was an example of how one would work around the
behavior, someone would figure out that behavior wasn't very useful.
What you should know is that the usual piece of
information after which the flags are accessing the records, is the
key. What I advice you is to look over Secondary indexes and Foreign
key indexes, as you may need them in implementing your queries.I don't see how secondary indexes help in this situation.
BDB is
used as the storage engine underneath RDBMS. In fact, BDB was the
first "generic data storage library" implemented underneath MySQL. As
such, BDB has API calls and access methods that can support any RDBMS
query. However, since BDB is just a storage engine, your application
has to provide the code that accesses the data store with an
appropriate sequence of steps that will implement the behavior that
you want.Yup.
Sometimes you may find it unsatisfying, but it may be more
efficient than you think.Sure, I just think the notion that DB_GET_BOTH_RANGE should fail if
the number of records for a key is 1 is rather silly. It's hard for me
to imagine that it would be less efficient to handle the non duplicate
case. It is certainly less efficient to handle this at the application
level, as I'm likely to have to implement this with multiple database
queries. Hopefully, BDB's cache will mitigate this.
Thanks again for digging into this.
Jim -
Is there any limit for DAQ_Start(​)'s count parameter?
Is there any limit for DAQ_Start()'s count (the fifth) parameter? It seems that the limit is between 16 million and 18 million. I use PCI-MIO-16E-1 and LabWindows/CVI.
Hello,
This depends on whether you are performing a single-buffered or double-buffered acquisition.
In a single-buffered acquisition, the "count" corresponds to the number of samples the DAQ device acquires and is an unsigned 32-bit value. The largest number that this number can represent is (2^32)-1.
In a double-buffered acquisition, the "count" corresponds to the size (in number of samples) of buffer that fills up in a circular fashion. It must be an even number. The range of this value depends on the DAQ device you are using and can be referenced by the chart located in the NI-DAQ Function Reference Help file. To access this file, go to your desktop and click [Start]>>[Programs]>>[National Instruments]>>[NI-DAQ]>>[Traditional NI-DAQ Function Reference
Help]. Then, search for "DAQ_Start" without the quotations.
I hope this helps clear up any confusion. Please let me know if you need any further assistance. Have a great day!
Regards,
Joe Des Rosier
National Instruments
Maybe you are looking for
-
After upgrading to windows 7, HP CP1215 only prints in black and white !! any Idea any one?? Connected to a Dell 1525 laptop via usb cable
-
Fact table mapping/loading
I am new to OWB and trying to use OWB 9.0.4 to create a star schema on a oracle 9.2 DB. Using OWB client, I successfuly created dims and a fact table on the target DB. But I got stuck with how to use OWB to map the fact table with dims and source tab
-
Add/Edit/Delete Tree Nodes using CL_GUI_ALV_TREE
Hi All, I am looking for an example of program with CL_GUI_ALV_TREE that have a functionality of add a tree node, edit a tree node, and delete a tree node. I have already looked the BCALV_TREE* demo program but could not able to find a program to add
-
i cant unlock my phone baceues my phone broken and i cant back up baceues i forget password on my computet in itunes
-
Google maps Pan and zoom icon removal from a web page.
Hi, I need to display a web page using mx:html tag which has a google map in it. Is there a way to remove the pan and zoom icons from the webpage using Flex. I tried to access the div elements of the map through Javascript methods in flex . But I