Data Validation changing another Data Validation cell - if-statement

In the example sheet below. On Sheet 2 When the drop-down under "Client Remarks" changes to "Finalized By Client" I need Sheet 1 "Course Status" to change to "Finalized By Client". I tried this array formula
=ARRAYFORMULA(IF('Courses | Client Review'!A4 ="Finalized By Client","Finalized By Client",))
but I lose the drop-down menu and I need that to be there. Any help would be appreciated.
Example Sheet: https://docs.google.com/spreadsheets/d/1GqCv9vgzLYDKg9VcaJn9__8789N9rABH49-9CozGUHU/edit?usp=sharing

paste this in U2 cell:
=IF(IFNA(VLOOKUP(A2, {Sheet2!B:B, Sheet2!A:A}, 2, 0))="Finalized By Client",
"Finalized By Client", {"In Queue", "In Progress", "Internal QA", "Client Review"})
and set data validation on cell B2 to:
and then just hide those helper columns:

Related

google calendar: audit and survey problem

How can I retrieve in "Events from calendar log" the contents of the "event title" field in a complete whole way? When I click on the three dots and I select "COMPLETE VLEUR" I do not receive all the content of the "title" or "description" field but only a part that ends with three dots.

Query sheet formula

I have to google sheets. One sheet is a google form response where it says if an item is received and the model number.
The next sheet is an inventory sheet that needs to be checked off. I'm having trouble creating a formula that imports cell info from one sheet to the other.
put sheet name onto singlequotes attach exclamation mark and include range. examples:
'Sheet 1'!A1:D5
'Form Responses 1'!A:Z
Sheet5!A5:A10
then you can put it into query formula:
=QUERY('Form Responses 1'!A:Z; "select A,B,C"; 0)
update:
=ARRAYFORMULA(IF(A2:A="",,IF(""=IFNA(
VLOOKUP(D2:D, 'Form Responses 1'!C2:C, 1, 0)), "no", "yes")))

fill sheet with values if they occure in another sheet

i have 2 sheets:
Sheet 1:
Sheet 1
Sheet 2:
Sheet 2
I want to create a formular that is able to select only the relevant information from sheet 1 as soon as a new entry (Starting with "New Meter ID) is done and append these new relevant information to sheet 2. Sheet 2 Shows how it should look like.
Here is my pseudocode logic:
IF there is a new Value in "New Meter ID":
Select "Old Meter ID", "Building ID", "Address", "active", "p_Name", "POD ID" and put it
into sheet 2.
Anybody has an idea?
UPDTAE
Here is current sheet. My Problem with the filter function is, that the filtered data doesn't start at the beginning of the sheet. In a sheet with 1000 + rows, this will lead to many empty rows between the filtered data.
See Picture 3
Picture 3
try:
=FILTER(Sheet1!B2:I; Sheet1!B2:B<>"")
update:
=FILTER({Sheet1!B2:C, Sheet1!E2:E, Sheet1!G2:I}, Sheet1!B2:B<>"")
or:
=FILTER({Sheet1!B2:C\ Sheet1!E2:E\ Sheet1!G2:I}; Sheet1!B2:B<>"")

Oracle Apex Dynamic action not working for form items

I have a form with items P1_APP and P1_USER.
P.S. P1_USER is select list.
Display John
Return 1
Display Andy
Return 2
I need to disable when user selects John.
When P1_USER = 'John', P1_APP should get disabled which is a multi select list.
I created dynamic action on P1_APP, True Action= Disable,Affected element P1_APP
Client condition : Item =Value
Item= P1_USER
Value= John
However this is not working.
I have used similar logic to disable interactive grid items and was able to do so. Why is this not working for form?
EDIT: In Value now i am putting 1 which is return value for John.
However when i select John. It disables P1_App upon clicking. But remains disabled even when i choose Andy.
This works for me using the following configuration.
Create form and report on EMP - everyone has access to that sample data, it is a good idea to post questions based on that.
In the form P3_DEPTNO is a select list with source
SELECT d.dname, d.deptno FROM dept d
Add a page item to my form P3_APP. This is a select list with "Allow multi selection" enabled. Select list has 2 static values.
Create a dynamic action on change of P3_DEPTNO.
Client side condition: Item = Value
Item: P3_DEPTNO
Value: 30 (note that this is the return value for SALES, not display value)
add true action of "Disable", affected item P3_APP
Click true action and select "Create Opposite Action". Save.
When I run this it work. Selecting SALES in the select list disables the item P3_APP and selecting something else enables it.

How to get the values in items without refreshing the page in apex

I have an item to enter email id, and two more items to get the values of first/last name and department of that user which we have given without refresh the page or without enter.
Item 1: ex : a...z#gmail.com (text field)
Item 2 : ex Mechanical (display only)
Item 3 : ex Abinnaya Moorthy (display only)
This should happen when we have given the email id and as soon as the cursor is out from email id the two item values should display.
I have used dynamic action but not getting exact output, please let me know.
On Item 1 make a following dynamic action:
Event: Change (I would recommend 'change', although based on your question, you might also be interested in 'Mouse Leave', although it would trigger DA even when no change in item value occurred, for example when someone just clicked on it and clicked away)
Selection Type: Item
Item: your Item 1
First true action: Execute PL/SQL Code
inserting values into your items Item 2 and Item 3, while using your Item 1 as a condition in WHERE clause
Page Items to Submit: your Item 1
Page Items to Return: your items Item 2 and Item 3
Second true action: Refresh
Selection Type: Item(s)
Item(s): your items Item1 and Item2
Let's say I have 1 field like an email field above. Then I have 50 display only fields that values are coming from (Source) SQL queries that depends on email field. How to refresh this fields without refreshing page, but also without Setting its value manually? I would only like to trigger them to perform their Source SQL query and refresh values on the page.
Setting their values by SetValue action will result in having same queries in Dynamic Action and in Source SQL Query for each field. Also for 50 fields DA would have hundreds of SQL lines and would become not maintainable.
assuming you are working on page 9, and the email field is :P9_EMAIL_ITEM, and the name fields are :P9_FNAME_ITEM and :P9_LNAME_ITEM
The email field is a text field (it doesn't matter what the source is)
The name fields should be display only, and in properties the setting "Based On" should be "Page Item Value", set the source property to type Null.
On the email text field, create a new dynamic action, set the When properties to: Event -> Change, Selection Type -> Item(s), Item(s) -> P9_EMAIL_ITEM
Under the dynamic actions you'll have a "New" event, with a "True" folder, and inside it a new action (probably "Show"). Change its action to "Set Value".
change the setting property so that "Set Type" will be "SQL statement", and write a statement with the following structure:
select FNAME_COLUMN, LNAME_COLUMN
from RELEVANT_TABLE
where EMAIL_COLUMN = :P9_EMAIL_ITEM
Under "Items to submit" select the P9_EMAIL_ITEM.
in the Affected Elements properties set Selection type -> Item(s) and Item(s) -> P9_FNAME_ITEM, P9_LNAME_ITEM
In "Execution Options" select NO for Fire on Initialization
what we did on step 5 is "refreshing" the relevant items, without refreshing the page
I just tested it out and here's what works very well:
On Item 1, create a DA on 'Loose Focus'
Create two true actions for 'Set Value', for both Item 2 and Item 3.
Select Settings > Set Type as SQL Statement.
Write query to fetch item 2 and item 3, base on item 1 (I suggest comparing lower cases of both to make it case in-sensitive.)
Items to Submit -> Item 1
And viola, it's done!