How to filter data with hidden data? - klipfolio

In my klipfolio data source I have a field version-name. The data in there is numeric and alpha. I only want to see the numeric version. So I created a hidden data which will evaluate to true when the first digit is numeric (this rule is valid in my case):
IN( LEFT( #/issues/fields/fixVersions/name;, 1), ARRAY( 0, CUMULATIVE(REPEAT(1,9))))
but the hidden data does not change my output? Do I need to apply this somewhere to get the current result filtered?

If you want a hidden data slot to act as a filter, right click on the hidden data slot -> Filter... then in the Members tab, select "True". This will filter out all the records that do not have a digit as the first value in the string.

Related

NetSuite System Notes CASE formula returning all notes

I've added a formula(date/time) column to a saved search in NetSuite, to return a system notes' date.
My CASE formula is returning all the system notes row's, and I would like a specific row's date i.e. 'POP Host Int ID' date.
How can I specify the row to return the date from, or remove the rows with no date that are not relevant?
CASE
WHEN {systemnotes.field} = 'POP Host Int ID' AND {systemnotes.type} = 'Set'
THEN {systemnotes.date}
ELSE NULL
END
It appears that my WHEN logic works to identify the record's system notes do contain an entry for 'POP Host Int ID' but in THEN I'm not specifying which row to get the date from so it returns all rows. And I could be wrong on this part.
Example results
Example System Notes for 1 record
Thank you for your assistance.
The CASE statement doesn't determine which rows are returned, only what data is returned for that field. On the other hand, the reference to the systemnotes table creates a join that causes each record result to be repeated for every system note entry.
To avoid this, add {systemnotes.field} = 'POP Host Int ID' and {systemnotes.type} = 'Set' as Filters in the Criteria tab instead of in the WHEN conditions. You can then just add the field under results instead of needing a formula.
Edit in response to comment below:
In cases where you need one result per base record (user), but they don't all have valid values from the joined table (system notes), I'd suggest grouping the results by user, and using aggregation functions for all the columns. EG: For the column in question I'm assuming you are getting one valid result and a lot of blanks per user. If you group by user and set the Summarize function to MAX, you should just get one result where the valid value is returned. If no valid value exists from the system notes, you would still get a result from the user and that field will be blank.
If you are creating a saved search the place to do this is in the criteria section.
The views you've shared are for the System Notes pertaining to a single record.
For those views you could just use the Field selector in the Filters section to select your POP Host Ing ID field.
For a saved search you would use the Advanced view and scroll down the criteria field list. Near the bottom are the System Notes. You can filter on Field, Date etc

Oracle Apex Interactive Report, Disable Column type link on row with 'Disable conditions'

Inquiring if there is a way to disable a link of a row based on a condition set.
for example I have and IR with column a and b, column b type is link, and column a holds the value that will be run in a select statement to determine if the link will be disabled or not.
ex.
col a value = 'new'
col b value = link
select colname .... where value ='new'
if colname = 'Yes' then
disable link in col b
Thank you!
There is no Read-Only property for an IR in APEX. But there is a workaround.
In the interactive report query, you can create a virtual column for the link by specifying the Oracle Apex URL format for the page. For this type also, you need to specify the column as a link, but in the target, you can specify the column name as #MY_LINK#. The advantage of using this type is you can disable the link for specific rows based on a condition and can change the arguments too.
The step by step process on how to achieve this is described in the below blog post
https://www.foxinfotech.in/2020/07/oracle-apex-creating-link-column-in-interactive-report.html

Progress-4GL: How to dynamically add a fill-in in a form and take user input in it?

I've a form in a base QAD mfg/pro (ver 10.2) program. I know the names of form, frame and fields. I'dont have access to base program's code modification. I've a wrapper program that access various fields from the existing form using handles, first-child, next-sibling etc.
What I want to do is to add a fill-in into this form/frame from the wrapper program and during runtime, take user input into that field.
I've been able to create text (for label) and fill-in field (called user) in the frame, however, the field is in't enabled.
create fill-in txt_user
assign
name = "txt_user"
row = 7
column = 19
frame = hWidget
visible = true
side-label-handle = lbl_user.
How can I enable the fill-in field txt_user and take input in it?
To Enable the field set the SENSITIVE property to TRUE. To query the current value, read the INPUT-VALUE property.

QTableWidget setSortingEnabled on specific column Qt

I have a table widget that contains 2 columns. The first column contains timestamps, and the 2nd column contains the message that corresponds with the timestamp. I want the user to be able to click on the header for the timestamp column and reverse the order. I also want the user to be able to click on the message header and have all the messages be put in alphabetical order. Using setSortingEnabled works perfectly for the message header, but due to the format of the timestamp, this will not sort the timestamps correctly. Is there a way to setSortingEnabled() on just the messages column, and when the user clicks on timestamp header it calls a custom function that sorts?
SetSortingEnabled() affects all columns.
You can setSortingEnable(False), create a function with custom sorting for the timestamp-column and standard sorting for the other columns and connect the horizonterHeaders signal sectionClicked() with this function. I tried in pyqt5, it works, but much work with recognizing the actual sortOrder, setting and deleting headerIcons etc..
A much easier way is, to set an appropriate format for the timestamp, right-aligned, fixed length, on the left filled with '0', in python3 e.g.:
ts = '{:0>15}'.format(timestamp)
left filled with spaces works too:
ts = '{: >15}'.format(timestamp)

how get item from each cell in grid

I have form with grid. I defined dataStore with 2 columns (text and checkBox). Grid.store = defined dataStore. Second column is editable (you can change selection on each checkBox). I have some button, and when I click it, I want to get info about each cell. Example if have gird:
Name1 true
Name2 false
I want get info col[0].row[0] is equal 'Name1', col[0].row[1] is equal 'Name2'.
I try iterate on dataStore but it has only value which I put them by hand. The value which was changed on grid by clicking on checkBox didn't save in dataStore.. My question is how to iterate on grid, how get info about each cell.
To iterate across a store in Ext3, you can use dataStore.each()
Supply it an anonymous function and the parameter it receives will be the current record in the store. The data in the current record can be read by using record_var.get(field_name).
So, for example:
var dataStore = myGrid.getStore();
dataStore.each(function(rec){
alert(rec.get(field1));
}

Resources