Xlwings and accessing Excel radio button value - xlwings

I have an Excel worksheet that contains a radio button. If I try to access the value of the cell where the radio button is located, the value is None.
sht = 0
cell = 'D36'
pythoncom.CoInitialize()
app = xw.App(visible=False)
wb = xw.Book(file2)
Radio =wb.sheets[sht].range(cell).value
If I print chk, value is None

Related

Get Select list Item value in IG report column for DML operation

I have a Select list filter on the top of the page. I want its return value to get into any column which I create in IG report automatic DML process.
Suppose, Select list has a value "Step", when I add a row in IG report, that value should be saved into DB for one column which is hidden on UI.
I tried but sometimes it stores the value which I selected in Select list item as my last selection not the current one. Do I need to create Application item for this? Please help. TIA
In this case there is a table ig_tickes with a status column. On the page there is a page item P131_STATUS (select list) with values "OPEN" and "CLOSED". There is an interactive grid on table ig_tickets with column STATUS hidden. Functionality is that user selects a value from the select list and then clicks "Add Row".
Give the interactive grid a static id of "tickets"
Create a dynamic action on change of P131_STATUS with a true action of type "execute javascript code" and code:
var model = apex.region("tickets").call("getViews").grid.model;
model.getOption("fields").STATUS.defaultValue = apex.item( "P131_STATUS" ).getValue();
That's all there is to it.

Dialog Return Item value is not returned

I am using Oracle APEX 21.1. I've created a report with a form. The query of the report is...
SELECT DECODE(I.visit_type_id, 1, 'فحص', 'متابعة') process_patient,
I.VISIT_ID,
I.PATIENT_ID,
I.VISIT_DATE,
I.VISIT_TYPE_ID,
I.REFERRED_FROM_ID,
I.EXAMINATION_FOLLOWUP_ID,
P.NAME PATIENT_NAME,
P.AGE,
C.NAME CITY
FROM
(SELECT V.ID VISIT_ID,
V.PATIENT_ID,
V.VISIT_DATE,
V.VISIT_TYPE_ID,
V.REFERRED_FROM_ID,
E.ID EXAMINATION_FOLLOWUP_ID
FROM PATIENT_VISIT V
LEFT JOIN EXAMINATION E ON E.VISIT_ID = V.ID
WHERE VISIT_TYPE_ID = 1
UNION ALL SELECT V.ID VISIT_ID,
V.PATIENT_ID,
V.VISIT_DATE,
V.VISIT_TYPE_ID,
NULL REFERRED_FROM_ID,
F.ID FOLLOW_UP_ID
FROM PATIENT_VISIT V
LEFT JOIN FOLLOW_UP F ON F.VISIT_ID = V.ID
WHERE VISIT_TYPE_ID = 2 ) I
JOIN PATIENT P ON P.ID = I.PATIENT_ID
LEFT JOIN CITY C ON C.ID = P.CITY_ID;
As you can see, there are 2 modal pages that should open based on visit_type_id which is the parameter to the DECODE function. This is the part where the problem resides. In modal page 2, I created an item and a process to set the item's value to the REQUEST VALUE :P2_REQUEST := :REQUEST. In page 14(the report page), I've created an item P14_REQUEST and a Dialog Closed dynamic action with the When section's Selection Type set to javaScript expression and the expression = window. Then added a true action (Set Value) with type = dialog return item. The item is P2_REQUEST and the affected element is P14_REQUEST. The value of the request is returned successfully to P14_REQUEST. The problem is about the second page(5). When I do the same steps aforementioned, the value of the request is not returned at all. Is there a bug or something prevent working with multiple modal pages?
I have created a simulation on apex.oracle.com - a report(7) that calls 2 modal pages(9 and 10), when you update any value in any modal page and submits the page, the request value should be returned to P7_REQUEST. Unfortunately, that does not happen now using either pages. Maybe I am missing something.
ws= ESLAM_WS
un= forhelp
pwd= Forhelppwd$
app= help
pages= 7, 9 and 10
Unfortunately, I forgot to set Items to return attribute of the Close Dialog process.

Interactive grid - write values ​in text field when clicked

With a query I have 3 values ​​that I would like to process further. With the LOV, I only get a return value. Or you can use a plug-in, I've read.
How can I transfer the values ​​from column 1 to text field 1, column 2 to text field 2 and column 3 to text field 3 by clicking on any row in an interactive grid?
I currently have a dynamic action stored in the interactive grid - when you "click".
With "True" I have selected the action "Set value" and as Set Type "Dialog Return Item". Unfortunately, it doesn't work that way.
I am not yet very fit in dealing with APEX and I hope your help.
Marja
add three page items page_item1, page_item2 and page_item1
You can create DA on the interactive grid on event selection change
Event
and action execute JavaScript code
JavaScript code
then write this code
var model = this.data.model;
for ( i = 0; i < this.data.selectedRecords.length; i++ ) {
$s("page_item1", $v("page_item1") += model.getValue( this.data.selectedRecords[i], "COLUMN1"));
$s("page_item2", $v("page_item2") += model.getValue( this.data.selectedRecords[i], "COLUMN2"));
$s("page_item3", $v("page_item3") += model.getValue( this.data.selectedRecords[i], "COLUMN3"));
}
`

Sitecore getProperty field values of a drop link

I've defined a list of Bootstrap column Values that allows the editor to define column width as a rendering parameter.
This is done by having a folder of Sitecore items and when I set the drop link to point at that folder I therefore get a drop down with numbers 1>12 for the editor to select.
I'm looking to obtain the field value of the droplink (labelled "Setting Value") but I am only receiving the GUID of the selected value how do I cast this to an item to be able to obtain its field values.
Thanks in advance
compiledClass += "col-md-" + GetProperty("Column Width Medium Device");
#{
var widthParameter = RenderingContext.Current.Rendering.Parameters["Width"];
var selectedWidthItemId = new Sitecore.Data.ID(widthParameter);
var widthItem = Sitecore.Context.Database.GetItem(selectedWidthItemId);
var widthValue = widthItem["Width value"];
var compiledClass = "";
compiledClass += "col-md-" + widthValue;
}
<div>
CompiledClass is: #compiledClass
</div>
Example assumes that your rendering parameters template contains 'Width' droplink field. And items within folder (source for droplink field) have 'Width value' field.

how to refresh combobox items in vb .net

how to refresh combobox items in vb .net
If you're talking about a comboBox on a WinForm that's been assigned to a list of objects using the datasource property, I found that you must nullify the datasource setting and re-assign it every time your list changes.
i.e.
attendanceDataFiles.DataSource = Nothing
attendanceDataFiles.DataSource = myFileList.files
attendanceDataFiles.DisplayMember = "displayName"
attendanceDataFiles.ValueMember = "fileName"
This is another way to refresh combo box items if your combo box's content is from MySql Database. You can customize your results in the query.
comboboxname.Items.clear() 'empty combo box content first
query = "select code, description from tbl_mode_of_payment where cat = 'LICENSE'" 'mysql query that retrieves payment code and its description based on category
cmd = New MySqlCommand(query, con)
reader = cmd.ExecuteReader()
While reader.Read
comboboxname.Items.Add(reader.GetString("code") + " - " + reader.GetString("description")) 'add results into the combo box
End While
con.Close()
Textbox1.Item.Clear()
then
call.item_tb()